mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-03-30 14:00:16 +02:00
Add printf to kext start/stop
This commit is contained in:
@@ -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