Kernel functions net_kstat_create(9F) NAME net_kstat_create - create and initialize a new kstat for a specific instance of IP SYNOPSIS #include #include #include kstat_t *net_kstat_create( netid_t netid, char *module, int instance, char *name, char *class, uchar_t type, ulong_t ndata, uchar_t ks_flag ); INTERFACE LEVEL Solaris DDI specific (Solaris DDI) PARAMETERS net IP instance identifier DESCRIPTION For a more complete discussion of this function and its parameters, see kstat_create(9f). RETURN VALUES If successful, kstat_create() returns a pointer to the allo- cated kstat. NULL is returned upon failure. CONTEXT net_kstat_create() can be called from user or kernel con- text. ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Interface Stability | Committed | |_____________________________|_____________________________| SEE ALSO hook(9s) net_kstat_delete(9f) kstat_delete(9f) kstat_create(9f) kstat_named(9S) SunOS 5.11 Last change: 25 March 2008 1