Lipika Deka
Lipika Deka

Reputation: 3884

Finding process id of a process inside a syscall wrapper

Say I have a wrapper function for each file system related system calls e.g, open(), close(), creat() etc and inside each wrapper function I need to find out the process id of the process making the syscall. Would be gratefull for some pointers. Thanks....

Upvotes: 0

Views: 150

Answers (1)

sarnold
sarnold

Reputation: 104080

You're probably looking for the getpid(2) system call; but Jeremiah asks good questions. :)

Upvotes: 3

Related Questions