All system calls that user processes invoke finally map down to aQuote:> 1) Can a kernel module use system calls? meaning: is there some
> kernel implementation of an interface, which gives device
> drivers and modules functionality similar to system calls
> for user processes (the ones which are relevant to the kernel) ?
well defined kernel routine. From the kernel module you may directly
invoke these routine. However, make sure that you also perform the
necessary intialization/setup that syscall path may have performed.
I had used this approach in SunOS 4.0.1 long back to create a file and
write in the file, all from within the kernel module.