Kernel functions net_instance(9s) NAME net_instance_t - packet event structure passed through to hooks SYNOPSIS #include INTERFACE LEVEL Solaris DDI specific (Solaris DDI) DESCRIPTION The net_instance data structure is used to define a collec- tion of instances to be called when relevant events happen within IP. The value returned by the nin_create function is stored internally and passed back to both the nin_destroy and nin_shutdown functions as the second argument. The netid_t passed through to each function can be used to uniquely identify each instance of IP. STRUCTURE MEMBERS char *nin_name; void *(*nin_create)(const netid_t); void (*nin_destroy)(const netid_t, void *); void (*nin_shutdown)(const netid_t, void *); nin_name name of the owner of the instance. nin_create function to be called when a new instance of IP is created. nin_destroy function to be called when an instance of IP is being destroyed. nin_shutdown function to be called in advance of destroy being called. ATTRIBUTES See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Interface Stability | Committed | |_____________________________|_____________________________| SEE ALSO netinfo(9f), SunOS 5.10 Last change: DD Month 2007 1