Because mmap(9E) does not have a parameter that can be used to pass data model information, the driver's mmap(9E) entry point can be written to use the new DDI function ddi_mmap_get_model(9F). This function returns one of the following values to indicate the application's data type model:
DDI_MODEL_ILP32 - Application expects the ILP32 data model.
DDI_MODEL_ILP64 - Application expects the LP64 data model.
DDI_FAILURE - Function was not called from mmap(9E).
As with ioctl(9E) and devmap(9E), the model bits can be passed to ddi_model_convert_from(9F) to determine whether data conversion is necessary, or the model can be handed to STRUCT_INIT().
Alternatively, migrate the device driver to support the devmap(9E) entry point.