[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Kernel and Subsystems Technical Reference, Volume 2

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

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

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

Files

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

Related Information

The genmajor device configuration subroutine, reldevno device configuration subroutine.

Customized Device Driver (CuDvDr) object class.

List of Device Configuration Subroutines.


[ Previous | Next | Contents | Home | Search ]