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