The IOCC_UNIT_CONTROL CommandCode consists of all the CommandModifiers responsible for controlling the ownership of a unit. The following table describes the CommandModifiers.

┌────────────────────────┬────────────────────────────────────┐
│CommandModifier         │Description                         │
├────────────────────────┼────────────────────────────────────┤
│IOCM_ALLOCATE_UNIT      │Assigns ownership of the specified  │
│                        │unit to the caller.  A unit must be │
│                        │allocated prior to accepting any    │
│                        │other direct call commands. Once    │
│                        │allocated, a unit cannot be assigned│
│                        │to another owner until that unit is │
│                        │deallocated.  It is the             │
│                        │responsibility of the owner to      │
│                        │coordinate sharing of a unit.       │
├────────────────────────┼────────────────────────────────────┤
│IOCM_DEALLOCATE_UNIT    │Removes the caller's ownership of   │
│                        │the specified unit.  Once           │
│                        │deallocated, a unit can be assigned │
│                        │to another owner.                   │
├────────────────────────┼────────────────────────────────────┤
│IOCM_CHANGE_UNITINFO    │Modifies the specified unit's       │
│                        │UNITINFO portion of the DEVICETABLE │
│                        │structure with the information      │
│                        │passed by the caller.               │
└────────────────────────┴────────────────────────────────────┘
Remarks