Releases the minor or major number, or both, for a device instance.
The reldevno device configuration subroutine is one of the designated access routines to the Customized Device Driver (CuDvDr) object class. This object class is locked exclusively by this routine until its completion. All minor numbers associated with the device instance name are deleted from the CuDvDr object class. That is, each object is deleted from the class. This releases the minor numbers for reuse.
The major number is released for reuse if the following two conditions exist:
If you prefer to release the major number yourself, then the relmajor device configuration subroutine can be called. In this case, you should also set the release parameter to False. All special files, including symbolically linked special files, corresponding to the deleted objects are deleted from the file system.
0 | Indicates successful completion. |
-1 | Indicates a failure to release the minor number or major number, or both. |
/usr/lib/libcfg.a | Archive of device configuration subroutines. |
The genmajor device configuration subroutine, genminor device configuration subroutine, relmajor device configuration subroutine.
Customized Device Driver (CuDvDr) object class.
List of Device Configuration Subroutines.