Invoking a system using syscall()
From: Kristofer Hallin <hidden>
Date: 2014-06-07 06:15:01
From: Kristofer Hallin <hidden>
Date: 2014-06-07 06:15:01
Invoking a syscall won't necessarily print anything to the kernel log. On 7 Jun 2014 07:50, "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;
}
_______________________________________________
Kernelnewbies mailing list
Kernelnewbies at kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20140607/9e19c4f8/attachment.html