relmajor Device Configuration Subroutine

Purpose

Releases the major number associated with the specified device driver instance name.

Syntax

#include <cf.h> #include <sys/cfgodm.h> #include <sys/cfgdb.h> int relmajor ( device_driver_instance_name) char *device_driver_instance_name;

Parameter

Item Description
device_driver_instance_name Points to a character string containing the device driver instance name.

Description

The relmajor device configuration subroutine is one of the designated access routines to the Customized Device Driver (CuDvDr) object class. To ensure that unique major numbers are generated, the CuDvDr object class is locked exclusively by this routine until the major number has been released.

The relmajor routine deletes the object containing the major number of the device driver instance name.

Return Values

Item Description
0 Indicates successful completion.
-1 Indicates a failure to release the major number.

Files

Item Description
/usr/lib/libcfg.a Archive of device configuration subroutines.