开发者

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 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜