[Previous] [Contents] [Next]

iofunc_fdinfo_default()

Default handler for _IO_FDINFO messages

Synopsis:

#include <sys/iomgr.h>

int iofunc_fdinfo_default( resmgr_context_t * ctp, 
                  io_fdinfo_t * msg, 
                  iofunc_ocb_t * ocb );

Library:

libc

Description:

The iofunc_fdinfo_default() function provides the default handler for the client's iofdinfo() call, which is received as an _IO_FDINFO message by the resource manager. This function can be placed directly into the io_funcs table that's passed to resmgr_attach() at the fdinfo position.

The iofunc_fdinfo_default() function calls iofunc_fdinfo() and resmgr_pathname() to do the actual write, and (if installed in the io_funcs table) replies back to the client.

Returns:

Reply value to the resource manager layer (error value or _RESMGR_NPARTS(1)).

Errors:

EMSGSIZE
Insufficient space available in the server's buffer to receive the entire message.

Classification:

QNX 6

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

See also:

iofdinfo(), iofunc_fdinfo_default(), resmgr_pathname()


[Previous] [Contents] [Next]