Re: making a system call from module?

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

 



Hi,

krushnaal pai schrieb:
how to make a system call from module?
Someone told me that you shouldn't do that because it's to dangerous...
Also how can we include the c library headers in our modules,so as to use the open,read functions of c library?

the lib that offers these user-space functions is not available for kernel modules... but there exists something like an replacement, have a look into the kernel sources. The lib will not offer function for reading files, reading files (normally) requires a file handle, and a file handle is bound to a process, but kernel module ain't process.


--
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