]> git.saurik.com Git - apple/ld64.git/blame - unit-tests/test-cases/kext-basic/mykext.c
ld64-95.2.12.tar.gz
[apple/ld64.git] / unit-tests / test-cases / kext-basic / mykext.c
CommitLineData
55e3d2f6
A
1#include <mach/mach_types.h>
2
3
4int my_global = 3;
5extern int extern_global;
6
7kern_return_t mykext_start (kmod_info_t * ki, void * d) {
8 ++my_global;
9 ++extern_global;
10 return KERN_SUCCESS;
11}
12
13
14kern_return_t mykext_stop (kmod_info_t * ki, void * d) {
15 --my_global;
16 --extern_global;
17 return KERN_SUCCESS;
18}