Writing Device Drivers

Data Sharing in ioctl()

To determine whether there is a model mismatch between the application and the driver, the driver uses the FMODELS mask to determine the model type from the ioctl() mode argument. The following values are OR-ed into mode to identify the application data model:

The code examples in I/O Control Support for 64-Bit Capable Device Drivers show how this can be handled using ddi_model_convert_from(9F).