Re: What is __KERNEL_SYSCALLS__ for?

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

 



Arjan van de Ven wrote:

I'm a little confused about making system calls from kernel space.

... via int 0x80

that was used for creating kernel threads, by calling int 0x80 for
fork/clone.

Shouldn't that be the other way around? I would think that you'd normally have a kernel function that creates threads, and the fork/clone API calls that function.


So can I use this mechanism to call any system call from kernel space? In which file is this mechanism prototyped?


-- Timur Tabi Staff Software Engineer timur.tabi@xxxxxxxxxxx

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