]> git.saurik.com Git - apple/ld64.git/blob - unit-tests/test-cases/kext-basic/mykext.c
51de101de5f49e226eb384670308fdcb96feca6d
[apple/ld64.git] / unit-tests / test-cases / kext-basic / mykext.c
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 }