aboutsummaryrefslogtreecommitdiffstats
path: root/package/button-hotplug
Commit message (Expand)AuthorAgeFilesLines
* button-hotplug: add autoload featureGabor Juhos2011-08-151-0/+1
* package/button-hotplug: use brodcast_ueventGabor Juhos2010-08-312-9/+5
* massive: replace occurences of .$(LINUX_KMOD_SUFFIX) with .ko after r21950Claudio Mignanti2010-07-121-1/+1
* remove obsolete kernel dependencies and version checksFelix Fietkau2010-06-261-1/+0
* package/button-hotplug: bump release number (missed from r21074)Nicolas Thill2010-05-211-1/+1
* package/button-hotplug: handle KEY_RESTART and KEY_WPS_BUTTON codes as wellGabor Juhos2010-04-211-21/+52
* fix kernel modules compile (as in [13724])Nicolas Thill2009-01-081-1/+0
* fix button-hotplug build on kernel versions where BIT_MASK is not defined (< ...Nicolas Thill2008-09-241-0/+4
* [package] button-hotplug: fix compile warningsGabor Juhos2008-07-261-4/+4
* button-hotplug does not build for 2.4 kernelsFlorian Fainelli2008-07-161-0/+1
* [package] add button-hotplug driver, will be usable to check status of button...Gabor Juhos2008-06-074-0/+374
talic } /* Name.Label */ .highlight .nn { color: #bb0066; font-weight: bold } /* Name.Namespace */ .highlight .py { color: #336699; font-weight: bold } /* Name.Property */ .highlight .nt { color: #bb0066; font-weight: bold } /* Name.Tag */ .highlight .nv { color: #336699 } /* Name.Variable */ .highlight .ow { color: #008800 } /* Operator.Word */ .highlight .w { color: #bbbbbb } /* Text.Whitespace */ .highlight .mb { color: #0000DD; font-weight: bold } /* Literal.Number.Bin */ .highlight .mf { color: #0000DD; font-weight: bold } /* Literal.Number.Float */ .highlight .mh { color: #0000DD; font-weight: bold } /* Literal.Number.Hex */ .highlight .mi { color: #0000DD; font-weight: bold } /* Literal.Number.Integer */ .highlight .mo { color: #0000DD; font-weight: bold } /* Literal.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
.TH io_cancel 2 2002-09-03 "Linux 2.4" "Linux AIO"
.SH NAME
io_cancel \- Cancel io requests
.SH SYNOPSIS
.nf
.B #include <errno.h>
.sp
.br
.B #include <libaio.h>
.sp
.br
.BI "int io_cancel(io_context_t ctx, struct iocb *iocb)"
.br
.sp
struct iocb {
	void		*data; /* Return in the io completion event */
	unsigned	key;	/* For use in identifying io requests */
	short		aio_lio_opcode;
	short		aio_reqprio; 	/* Not used */
	int		aio_fildes;
};
.fi
.SH DESCRIPTION
Attempts to cancel an iocb previously passed to io_submit.  If
the operation is successfully cancelled, the resulting event is
copied into the memory pointed to by result without being placed
into the completion queue.
.PP
When one or more requests are asynchronously processed, it might be
useful in some situations to cancel a selected operation, e.g., if it
becomes obvious that the written data is no longer accurate and would
have to be overwritten soon.  As an example, assume an application, which
writes data in files in a situation where new incoming data would have
to be written in a file which will be updated by an enqueued request.
.SH "RETURN VALUES"
0 is returned on success , otherwise returns Errno.
.SH ERRORS
.TP
.B EFAULT 
If any of the data structures pointed to are invalid.
.TP
.B EINVAL 
If aio_context specified by ctx_id is
invalid.  
.TP
.B EAGAIN
If the iocb specified was not
cancelled.  
.TP
.B ENOSYS 
if not implemented.
.SH "SEE ALSO"
.BR io(3),
.BR io_fsync(3),
.BR io_getevents(3),
.BR io_prep_fsync(3),
.BR io_prep_pread(3),
.BR io_prep_pwrite(3),
.BR io_queue_init(3),
.BR io_queue_release(3),
.BR io_queue_run(3),
.BR io_queue_wait(3),
.BR io_set_callback(3),
.BR io_submit(3),
.BR errno(3)