[Previous] [Contents] [Next]

iofunc_sync_default()

Default handler for _IO_SYNC messages

Synopsis:

#include <sys/iofunc.h>

int iofunc_sync_default( resmgr_context_t *ctp,
                         io_sync_t *msg,
                         iofunc_ocb_t *ocb );

Library:

libc

Description:

The function iofunc_sync_default() function implements POSIX semantics for the client's sync() call, which is received as an _IO_SYNC message by the resource manager. This function can be placed directly into the io_funcs table passed to resmgr_attach(), at the sync position.

The iofunc_sync_default() function calls iofunc_sync_verify() to do the actual work, and (if installed in the io_funcs table) issues the reply back to the client.

Returns:

EINVAL
The resource doesn't support syncing.
EOK
The client has read access to this resource.

Classification:

QNX 6

Safety:
Cancellation point No
Interrupt handler No
Signal handler Yes
Thread Yes

See also:

iofunc_openfd_default(), iofunc_sync(), iofunc_sync_verify()


[Previous] [Contents] [Next]