R: system call

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

 



I think these questions are more C newbie related than kernel one.
 
asmlinkage means that the first google answer point to kernelnewbies FAQ and the second answer point to a topic with a subject "what's the meaning of asmlinkage?"
 
The void parameter in a C function prototype means that you need a good C programming language book.
 
To start programming in kernel land you *must* take familiar with C language.
 
Ciao ciao
--
sp0nge http://angel-lsm.sf.net

________________________________

Da: kernelnewbies-bounce@xxxxxxxxxxxx per conto di Ashok Sharma
Inviato: mar 14/03/2006 15.17
A: kernelnewbies@xxxxxxxxxxxx
Oggetto: system call



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

Also what is meant by asmlinkage

Regards
Ashok










               
___________________________________________________________
NEW Yahoo! Cars - sell your car and browse thousands of new and used cars online! http://uk.cars.yahoo.com/

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