Re: how to make system calls from kernel module?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 





On Sat, Jun 20, 2009 at 10:34 PM, Razvan Deaconescu <razvan@xxxxxxxxxxxxxxxxxx> wrote:
On Sat, 2009-06-20 at 09:59 -0700, krushnaal pai wrote:
> how to make system calls from kernel module?
>
> or
>
> how to include library headers in modules so as to use open,read write
> functtions?

(Most of the time) You cannot. You could resort to some sort of hacks to
use system call handlers but it is not advisable. You should use kernel
specific functions to solve your problems.

AFAIK, you can invoke  system call service routine ..  'sys_xyz' directly from your kernel code path, but only after calling set_fs (this will bypass access_ok security check).

Thanks,
Chetan Nanda

Razvan


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux