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