net_kstat_create - create and initialize a new kstat for a specific instance of IP
#include <sys/types.h> #include <sys/kstat.h> #include <sys/neti.h> kstat_t *net_kstat_create(netid_t netid, char *module, int instance, char *name, char *class, uchar_type type, ulong_t ndata, uchar_t ks_flag);
Solaris DDI specific (Solaris DDI).
IP instance identifier. −.
The net_kstat_create() function allocates and initializes a kstat(9S) structure. See kstat_create(9F) for a complete discussion of this function.
If successful, net_kstat_create() returns a pointer to the allocated kstat. NULL is returned upon failure.
The net_kstat_create() function may be called from user or kernel context.
See attributes(5) for descriptions of the following attributes:
ddi_get_instance(9F), kstat_create(9F), kstat_delete(9F), net_kstat_delete(9F), hook_t(9S), kstat_named(9S)