1net_inject_alloc(9F) Kernel Functions for Drivers net_inject_alloc(9F)
2
3
4
6 net_inject_alloc - allocate a net_inject_t structure
7
9 #include <sys/neti.h>
10
11 net_inject_t *net_inject_alloc(const int version);
12
13
15 Solaris DDI specific (Solaris DDI).
16
18 version must always be the symbol NETI_VERSION.
19
20
22 The net_inject_alloc() function allocates a net_inject_t structure,
23 returning a pointer for the caller to use.
24
26 Upon success, net_inject_alloc() returns a pointer to the allocated
27 net_inject_t structure. On failure, hook_alloc() returns a NULL
28 pointer.
29
31 The net_inject_alloc() function may be called from user, kernel, or
32 interrupt context.
33
35 See attributes(5) for descriptions of the following attributes:
36
37
38
39
40 ┌─────────────────────────────┬─────────────────────────────┐
41 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
42 ├─────────────────────────────┼─────────────────────────────┤
43 │Availability │SUNWcsu │
44 ├─────────────────────────────┼─────────────────────────────┤
45 │Interface Stability │Committed │
46 └─────────────────────────────┴─────────────────────────────┘
47
49 net_inject_free(9F), net_inject_t(9S)
50
51
52
53SunOS 5.11 1 May 2008 net_inject_alloc(9F)