Re: System calls within the kernel??

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

 



On Saturday 27 April 2002 06:12 am, you wrote:
> Can someone help me in figuring out "how to make a system call within the
> kernel"???

	Oh, like all others, i will tell you that doing a system call from within 
kernel is not exactly desirable most of the times.  However, since you need 
it,  you can use the public sys_call_table[] array of function pointers.

extern void * sys_call_table[];

A call to sys_call_table[__NR_whatever] is what you need. 

regards
Sridhar
-- 
Anyone can do any amount of work provided it isn't the work he is supposed to 
be doing
		-- Murphy's Laws on Work

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