Syscalls in module

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

 



I have created a module in which i am trying to create file.
i hav used  :

mm_segmen_t old_fs;
old_fs = get_fs();
set_fs(KERNEL_DS);

/* syscalls go here  */
 fd = sys_open( my_file, O_CREAT | O_WRONLY, 0 );

set_fs(old_fs);


It is compiled without error and when i try to insert it
then i get an error saying.
Unable to insert module -1 unknown symbol in module.
i looked in /var/log/messages and found
unknown symbol : sys_open and sys_write
these are the system calls that i have used in my module.
i have also tried EXPORT_SYMBOL, but of no use.

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