diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-10-10 10:30:38 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-10-10 10:30:38 +0200 |
| commit | 212c57ea05bf918dc26fe8864ad617f2f6259cea (patch) | |
| tree | 85b51997582d9b21469549c2644308588582d744 /dev/kernel/ArchKit | |
| parent | 59f37ac002635171892925f163783689ec23c1fc (diff) | |
feat: kernel: dispatch structures have two new methods.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/ArchKit')
| -rw-r--r-- | dev/kernel/ArchKit/ArchKit.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/dev/kernel/ArchKit/ArchKit.h b/dev/kernel/ArchKit/ArchKit.h index 2042bded..9c45b6bb 100644 --- a/dev/kernel/ArchKit/ArchKit.h +++ b/dev/kernel/ArchKit/ArchKit.h @@ -75,6 +75,9 @@ struct HAL_DISPATCH_ENTRY final { Kernel::Bool fHooked; rt_syscall_proc fProc; + BOOL IsKernCall() { return NO; } + BOOL IsSysCall() { return YES; } + operator bool() { return fHooked; } }; @@ -86,6 +89,9 @@ struct HAL_KERNEL_DISPATCH_ENTRY final { Kernel::Bool fHooked; rt_kerncall_proc fProc; + BOOL IsKernCall() { return YES; } + BOOL IsSysCall() { return NO; } + operator bool() { return fHooked; } }; |
