Writing Device Drivers for Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

IOV_GET_PARAM_INFO Ioctl

The general flow of control for a driver that calls the IOV_GET_PARAM_INFO() ioctl is as follows:

  1. Keep an array of iov_param_desc_t structures which contain description for each of the configurable params that are supported by the structure. See the iov_param_desc structure for the structure description.

  2. Copy out the array of iov_param_desc_t structures to the arg parameter. The fields in the iov_param_desc_t structure are static and can be defined at compile time.

    The number of elements in the array is the num_params value returned by the IOV_GET_VER_INFO() ioctl call. The size of the buffer is sizeof (iov_param_desc_t) * num_params