Re: system call

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

 



On Tue, 2006-03-14 at 14:17 +0000, Ashok Sharma wrote:
> Please explain the System call
> 
> asmlinkage long sys_getpid(void)
> {
> return current-> tgetid;
> }
> 
> I would like to know what the   void   argument means 
> 
> and how it different from sys_getpid()

"void" in this context is the same as having no argument.  I believe it
keeps the compiler happy.

> Also what is meant by asmlinkage

See "What is asmlinkage?" in the FAQ:
http://www.kernelnewbies.org/faq/


Avishay Traeger
http://www.fsl.cs.sunysb.edu/~avishay/


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