I am trying to understand how a system call works in the Linux kernel. One of my questions is: how can I get the pid of the process making the system call?
eg. I look at a call read()(read synchronization), which, it seems to me, is defined in fs / read_write.c as
ssize_t do_sync_read(struct file *filp, char __user *buf, size_t len, loff_t *ppos)
source
share