![]() |
![]() |
![]() |
Default handler for _IO_FDINFO messages
#include <sys/iomgr.h> int iofunc_fdinfo_default( resmgr_context_t * ctp, io_fdinfo_t * msg, iofunc_ocb_t * ocb );
libc
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.
Reply value to the resource manager layer (error value or _RESMGR_NPARTS(1)).
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | Yes |
Thread | Yes |
iofdinfo(), iofunc_fdinfo_default(), resmgr_pathname()
![]() |
![]() |
![]() |