Re: Invoking a system using syscall()

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

 



On Sat, Jun 7, 2014 at 11:20 AM, Dipanjan Das <mail.dipanjan.das@xxxxxxxxx> wrote:

Hi,

I want to invoke getpid() system call using syscall. Here's the code snippet below. But, I can't find anything in dmesg|tail output.

#include <sys/types.h>

int main()
{
       pid_tret = syscall(20);
       return 0;
}
 
Have you seen the code of the system call sys_getpid ? I dont find anything there which will print in dmesg .. ofcourse you can modify the code and then you will get the output in dmesg . 
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies@xxxxxxxxxxxxxxxxx
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

[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