Writing Device Drivers for Oracle® Solaris 11.2

Exit Print View

Updated: September 2014
 
 

Context Management Operation

The general steps for performing device context management are as follows:

  1. Define a devmap_callback_ctl(9S) structure.

  2. Allocate space to save device context if necessary.

  3. Set up user mappings to the device and driver notifications with devmap_devmem_setup(9F).

  4. Manage user access to the device with devmap_load(9F) and devmap_unload(9F).

  5. Free the device context structure, if needed.