making use of syscalls from kernelspace

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

 



hi list!

im having a problem coding a LKM for the 2.6 kernel series.

the problem is related to file creation from kernel space.
i tried to call sys_creat() for example with the __asm__() template but the syscall failed for some reason.
the file simply wasnt created.
using a function ptr to the memory address of the exportet symbol "sys_creat" didnt work aswell.

maybe you have an idea of how i could create a file from kernel space?
im kinda stuck.

thanks a lot
threadhead

_____________________________________________________________________
Der WEB.DE Virenschutz schuetzt Ihr Postfach vor dem Wurm Netsky.A-K!
Kostenfrei fuer alle FreeMail Nutzer. http://f.web.de/?mc=021157


--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           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