SR-IOV device drivers can use the pci_param_get_ioctl(9F) interface to extract the parameters for the PF and VF devices from the arg argument if they implement the IOV_VALIDATE_PARAM ioctl.
int pci_param_get_ioctl(dev_info_t *dip, intptr_t arg, int mode,pci_param_t *php)
where:
A pointer to the dev_info structure
Argument obtained from the driver's ioctl call
Argument obtained from the driver's ioctl call
A pointer to the param handle, pci_param_t, which is a handle obtained from calling the pci_param_get()or pci_param_get_ioctl() interfaces
The driver should call the pci_param_free() interface to free the param handle returned in this call after retrieving the parameters.