Kernel Functions for Drivers net_getnetid(9F)
NAME
net_getnetid - returns the instance identifier
SYNOPSIS
#include
netid_t net_getnetid(const net_data_t net);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).PARAMETERS
net value returned from a successful call tonet_protocol_lookup(9F).
DESCRIPTION
The net_getnetid() function returns the instance identifier
for the protocol instance returned via a call tonet_protocol_lookup(9F).
RETURN VALUES
The net_getnetid() function returns the value of the
instance identifier.CONTEXT
The net_getnetid() function may be called from user, ker-
nel, or interrupt context.ATTRIBUTES
See attributes(5) for descriptions of the following attri-
butes:____________________________________________________________
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
|_____________________________|_____________________________|
| Availability | SUNWcs ||_____________________________|_____________________________|
| Interface Stability | Committed ||_____________________________|_____________________________|
SEE ALSO
net_protocol_lookup(9F)
SunOS 5.11 Last change: 1 May 2008 1