MAC_PRIVATE_MINOR(9F) Kernel Functions for Drivers MAC_PRIVATE_MINOR(9F)

mac_private_minorreturn the first minor number that is available for driver private use

#include <sys/mac_provider.h>

minor_t
mac_private_minor(void);

illumos DDI specific

None.

The () function is used by MAC device drivers to determine the lower bound of the minor number space that is available for driver private use. The driver is free to use any minor number greater than or equal to the returned value. All other values are reserved for use by the mac(9E) framework.

The () function may be called from a driver's attach(9E) entry point, e.g., to create minor nodes for use by the driver. See the Custom Device Nodes section of mac(9E) for more details.

mac_private_minor() function can be called from or context.

Upon successful completion, the mac_private_minor() function returns a valid minor number.

mac(9E)

January 30, 2023 OmniOS