RE: syscall doubt

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

 



Hi:
He simply means that at max syscalls on Intel platform can have 5 args.
However as in 2.6.0-test2 syscalls can have 6 args. See asm/unistd.h for details.

-Manu

> ----------
> From: 	kernelnewbies-bounce@nl.linux.org[SMTP:kernelnewbies-bounce@nl.linux.org] on behalf of Mandeep Singh Sandhu[SMTP:mandeep_sandhu@infosys.com]
> Sent: 	Thursday, December 11, 2003 10:34 AM
> To: 	kernelnewbies@nl.linux.org
> Subject: 	syscall doubt
> 
> Hi all,
> 
> I was going thru an article in "Kernel Korner - Implementation of System Calls".
> There the author had mentioned something like the syscall can have only 5 arguments
> on intel platforms. The exact excerpt is as follows..
> 
> "........each call is associated with one number. This number is passed in the %eax
> processor register indicating the number of arguments, and each argument of the system
> call (a function) is passed in %ebx, %ecx, %edx, %esi or %edi--up to five arguments on
> Intel platforms. The macro definitions corresponding to each _syscallN, depending on the
> value of N, can be found in unistd.h."
> 
> 
> Can NE one explain the above para??
> what does he mean when he says "...each argument of the system call (a function)"
> Does he mean each arg of the sys call is a function pointer???
> 
> THANX
> mandeep
> 
> 
> -----Original Message-----
> From: Greg KH [mailto:greg@kroah.com]
> Sent: Wednesday, December 10, 2003 8:49 PM
> To: Vanitha Ramaswami
> Cc: 'kernelnewbies@nl.linux.org'
> Subject: Re: Sharing a global variable between a user space application
> and a Kernel module
> 
> 
> On Wed, Dec 10, 2003 at 03:02:10PM +0800, Vanitha Ramaswami wrote:
> > Hello,
> > 
> > How do i access a global variable defined in a user space application
> > from a kernel module.?
> 
> Short answer:
> 	You can't.
> 
> Long answer:
> 	you must write code to be able to export/import that variable
> 	through some means (proc, sysfs, sysctl, etc.)
> 
> 
> greg k-h
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 
--
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