pathconf I/O function handler

Updated: April 19, 2023

Prototype:

int (*pathconf) ( resmgr_context_t *ctp,
                 io_pathconf_t *msg,
                 RESMGR_OCB_T *ocb ) 

Classification:

I/O

Default handler:

iofunc_pathconf_default()

Helper functions:

iofunc_pathconf()

Client functions:

fpathconf(), pathconf()

Messages:

_IO_PATHCONF

Data 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 table

Permission checking:

The default implementation iofunc_pathconf_default() and helper function iofunc_pathconf() do not perform any permission checking.