From 2249085af68c2b5bbac50130239a8737cf831604 Mon Sep 17 00:00:00 2001 From: Karmaz95 Date: Sun, 8 Dec 2024 13:14:19 +0100 Subject: [PATCH] Add printf to kext start/stop --- X. NU/custom/HelloKext/src/HelloWorld.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/X. NU/custom/HelloKext/src/HelloWorld.c b/X. NU/custom/HelloKext/src/HelloWorld.c index 027c17b..2c4a9ff 100644 --- a/X. NU/custom/HelloKext/src/HelloWorld.c +++ b/X. NU/custom/HelloKext/src/HelloWorld.c @@ -1,14 +1,17 @@ #include +#include 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; }