On Wed, Apr 28, 2010 at 8:09 AM, Joel Fernandes <agnel.joel@xxxxxxxxx> wrote:
On Tue, Apr 27, 2010 at 7:55 AM, rahul patil <rahul.deshmukhpatil@xxxxxxxxx> wrote:
Though it is bad idea to call a system call from kernel space
is it possible any how to call a system call from kernel space?Generally a better idea to user kernel interfaces directly instead of sys calls. Further most sys call functions are not exported so you can't call them from your kernel module. You'll have to EXPORT_SYMBOL them and recompile your kernel which is kind of ugly.
If you can tell us which syscalls you'd like to make, maybe we can suggest some alternatives
-Joel