⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 readme.alloc_syscall

📁 fsmlabs的real time linux的内核
💻 ALLOC_SYSCALL
字号:
The concept shown here is what psc does to get a system call without needingto patch the kernel source for psc - so this is simply all stolen from psc/psc.c .This shows how to allocate a system call without requireing a patch to the kernel - and this should be more or less arch independant - what this doesis go down the syscall table from the top searching for a unused syscall number and then assigns the new syscall to that number - thats simply. Theproblem is that the user-space app does not know that number and it wouldnot be too practical if we would need to recompile our apps all the time - sowe use a /proc file to pass the system call number we get to user-space appsThat is what syscall_check then does.alloc_syscall.o: kernel module to allocate a free system call number int                 the kernels system call table.syscall_check: user-space application that grabs the syscall number from /proc               and then invokes this system call.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -