ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/libeio/eio.pod
(Generate patch)

Comparing libeio/eio.pod (file contents):
Revision 1.27 by root, Sun Jul 24 03:32:54 2011 UTC vs.
Revision 1.28 by root, Mon Sep 26 16:54:25 2011 UTC

233 233
234The C<void *data> member simply stores the value of the C<data> argument. 234The C<void *data> member simply stores the value of the C<data> argument.
235 235
236=back 236=back
237 237
238Memmbers not explicitly described as accessible must not be
239accessed. Specifically, there is no gurantee that any members will still
240have the value they had when the request was submitted.
241
238The return value of the callback is normally C<0>, which tells libeio to 242The return value of the callback is normally C<0>, which tells libeio to
239continue normally. If a callback returns a nonzero value, libeio will 243continue normally. If a callback returns a nonzero value, libeio will
240stop processing results (in C<eio_poll>) and will return the value to its 244stop processing results (in C<eio_poll>) and will return the value to its
241caller. 245caller.
242 246
243Memory areas passed to libeio must stay valid as long as a request 247Memory areas passed to libeio wrappers must stay valid as long as a
244executes, with the exception of paths, which are being copied 248request executes, with the exception of paths, which are being copied
245internally. Any memory libeio itself allocates will be freed after the 249internally. Any memory libeio itself allocates will be freed after the
246finish callback has been called. If you want to manage all memory passed 250finish callback has been called. If you want to manage all memory passed
247to libeio yourself you can use the low-level API. 251to libeio yourself you can use the low-level API.
248 252
249For example, to open a file, you could do this: 253For example, to open a file, you could do this:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines