]>
Commit | Line | Data |
---|---|---|
55e3d2f6 A |
1 | #include <mach/mach_types.h> |
2 | ||
a645023d | 3 | extern void extern_func(); |
55e3d2f6 A |
4 | |
5 | int my_global = 3; | |
6 | extern int extern_global; | |
7 | ||
8 | kern_return_t mykext_start (kmod_info_t * ki, void * d) { | |
9 | ++my_global; | |
10 | ++extern_global; | |
a645023d | 11 | extern_func(); |
55e3d2f6 A |
12 | return KERN_SUCCESS; |
13 | } | |
14 | ||
15 | ||
16 | kern_return_t mykext_stop (kmod_info_t * ki, void * d) { | |
17 | --my_global; | |
18 | --extern_global; | |
19 | return KERN_SUCCESS; | |
20 | } |