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

NAME


mac_private_minor - return the first minor number that is available for
driver private use

SYNOPSIS


#include <sys/mac_provider.h>

minor_t
mac_private_minor(void);

INTERFACE LEVEL


illumos DDI specific

PARAMETERS


None.

DESCRIPTION


The mac_private_minor() 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 mac_private_minor() 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.

CONTEXT


mac_private_minor() function can be called from user or kernel context.

RETURN VALUES


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

SEE ALSO


mac(9E)

illumos January 30, 2023 illumos

tribblix@gmail.com :: GitHub :: Privacy