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 [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to