mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-10-01 00:09:34 +02:00
Add printf to kext start/stop
This commit is contained in:
1 parent
7697a32562
commit
2249085af6
1 file changed
+3
@@ -1,14 +1,17 @@
|
||||
#include <mach/mach_types.h>
|
||||
#include <libkern/libkern.h>
|
||||
|
||||
kern_return_t HelloWorld_start(kmod_info_t * ki, void *d);
|
||||
kern_return_t HelloWorld_stop(kmod_info_t *ki, void *d);
|
||||
|
||||
kern_return_t HelloWorld_start(kmod_info_t * ki, void *d)
|
||||
{
|
||||
printf("HelloWorld from kext start");
|
||||
return KERN_SUCCESS;
|
||||
}
|
||||
|
||||
kern_return_t HelloWorld_stop(kmod_info_t *ki, void *d)
|
||||
{
|
||||
printf("HelloWorld from kext stop");
|
||||
return KERN_SUCCESS;
|
||||
}
|
||||
Reference in new issue
Block a user