Index Index for
Section 9
Index Alphabetical
listing for M
Bottom of page Bottom of
page

minor(9r)

NAME

minor - General: Returns the device minor number

SYNOPSIS

#include <sys/types.h> int minor( dev_t device );

ARGUMENTS

device Specifies the number of the device whose associated minor device number the minor interface will obtain.

DESCRIPTION

The minor interface returns the device minor number associated with the device specified by the device argument. Device driver writers use the dev_t data type to represent a device's major and minor numbers. This data type is an abstraction of the internal representations of the major and minor numbers. Driver writers do not need to know how the system internally represents the major and minor numbers. To ensure maximum portability of the device driver, use the minor interface to extract the minor number portion of this internal representation.

RETURN VALUES

Upon successful completion, minor returns the minor number portion of the dev_t passed as the argument.

SEE ALSO

Kernel Interfaces: major(9r), makedev(9r)

Index Index for
Section 9
Index Alphabetical
listing for M
Top of page Top of
page