Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

minor - get minor component of device number (extension)

&pagelevel(4)&pagelevel

Syntax

#include <sys/types.h>
#include <sys/mkdev.h>

minor_t minor(dev_t device);

Description minor() returns the minor component of the device number for a named device.

Return val.

Formatted device number

if successful.

NODEV

if an error occurs. errno is set to indicate the error.

Errors

minor() will fail if:

EINVAL      The device argument is NODEV.

See also

makedev(), major(), mknod(), stat().