开发者

Finding process id of a process inside a syscall wrapper

开发者 https://www.devze.com 2023-02-18 01:44 出处:网络
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 th开发者_运维知识库e pro

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 th开发者_运维知识库e process making the syscall. Would be gratefull for some pointers. Thanks....


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

0

精彩评论

暂无评论...
验证码 换一张
取 消