mirror of
https://github.com/Karmaz95/Snake_Apple.git
synced 2026-08-15 21:40:18 +02:00
Add printf to kext start/stop
This commit is contained in:
@@ -1,14 +1,17 @@
|
|||||||
#include <mach/mach_types.h>
|
#include <mach/mach_types.h>
|
||||||
|
#include <libkern/libkern.h>
|
||||||
|
|
||||||
kern_return_t HelloWorld_start(kmod_info_t * ki, void *d);
|
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_stop(kmod_info_t *ki, void *d);
|
||||||
|
|
||||||
kern_return_t HelloWorld_start(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;
|
return KERN_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
kern_return_t HelloWorld_stop(kmod_info_t *ki, void *d)
|
kern_return_t HelloWorld_stop(kmod_info_t *ki, void *d)
|
||||||
{
|
{
|
||||||
|
printf("HelloWorld from kext stop");
|
||||||
return KERN_SUCCESS;
|
return KERN_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user