Calling syscalls from the kernel
Calling syscalls from the kernel
Posted Jul 14, 2014 9:33 UTC (Mon) by drysdale (guest, #95971)In reply to: Calling syscalls from the kernel by roblucid
Parent article: Anatomy of a system call, part 1
That's roughly my understanding too. System calls typically check all their (user-provided) arguments carefully, and also copy any needed chunks of memory from __user * pointers -- all of which is inefficient for internal usage. So it's more common to have an inner function that the rest of the kernel calls, and the syscall wraps.
