Query: makedev
OS: opensolaris
Section: 3c
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
makedev(3C) Standard C Library Functions makedev(3C)NAMEmakedev, major, minor - manage a device numberSYNOPSIS#include <sys/types.h> #include <sys/mkdev.h> dev_t makedev(major_t maj, minor_t min); major_t major(dev_t device); minor_t minor(dev_t device);DESCRIPTIONThe makedev() function returns a formatted device number on success and NODEV on failure. The maj argument is the major number. The min argument is the minor number. The makedev() function can be used to create a device number for input to mknod(2). The major() function returns the major number component from device. The minor() function returns the minor number component from device.RETURN VALUESUpon successful completion, makedev() returns a formatted device number. Otherwise, NODEV is returned and errno is set to indicate the error.ERRORSThe makedev() function will fail if: EINVAL One or both of the arguments maj and min is too large, or the device number created from maj and min is NODEV. The major() function will fail if: EINVAL The device argument is NODEV, or the major number component of device is too large. The minor() function will fail if: EINVAL The device argument is NODEV.ATTRIBUTESSee attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+SEE ALSOmknod(2), stat(2), attributes(5) SunOS 5.11 29 Dec 1996 makedev(3C)
Related Man Pages |
---|
makedev(3) - linux |
gnu_dev_makedev(3) - linux |
minor(3c) - sunos |
gnu_dev_makedev(3) - suse |
gnu_dev_minor(3) - suse |
Similar Topics in the Unix Linux Community |
---|
stuck....! |
VG major number in HACMP |