Re: making use of syscalls from kernelspace

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

 



On Thu, Mar 18, 2004 at 22:35:32 +0100, threadhead@web.de wrote:
> 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.

You shoulnd't. But if you really, really, really, have to, just look at
the code of sys_open (sys_creat just calls sys_open) and call the workhorse.

-------------------------------------------------------------------------------
						 Jan 'Bulb' Hudec <bulb@ucw.cz>

Attachment: signature.asc
Description: Digital signature


[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