Invoking a system using syscall()
From: sudipm.mukherjee@gmail.com (Sudip Mukherjee)
Date: 2014-06-07 06:15:38
From: sudipm.mukherjee@gmail.com (Sudip Mukherjee)
Date: 2014-06-07 06:15:38
On Sat, Jun 7, 2014 at 11:20 AM, Dipanjan Das [off-list ref] 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 . -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140607/7f05acd2/attachment-0001.html