The general flow of control for a driver that calls the IOV_GET_PARAM_INFO() ioctl is as follows:
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.
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