pathconf I/O function handler
QNX SDP8.0Getting Started with the QNX OSDeveloperUser
Prototype:
int (*pathconf) ( resmgr_context_t *ctp,
io_pathconf_t *msg,
RESMGR_OCB_T *ocb )
Classification:
I/ODefault handler:
iofunc_pathconf_default()Helper functions:
iofunc_pathconf()Client functions:
fpathconf(), pathconf()Messages:
_IO_PATHCONFData structure:
struct _io_pathconf {
uint16_t type;
uint16_t combine_len;
short name;
uint16_t zero;
};
typedef union {
struct _io_pathconf i;
} io_pathconf_t;
Description:
The handler for this message is responsible for returning the value of the configurable parameter name for the resource associated with this OCB. Use the default function and add additional cases for the name member as appropriate for your device.Returns:
The status via the helper macro _IO_SET_PATHCONF_VALUE() and the data via message reply.Referenced by:
resmgr_io_funcs_t I/O tablePermission checking:
The default implementation iofunc_pathconf_default() and helper function iofunc_pathconf() do not perform any permission checking.
Page updated: