kill_proc_info 在哪里定义的?
内核API函数kill_proc_info(int sig, struct siginfo *info, pid_t pid)的头文件是什么
what is header file for the kernel API function kill_proc_info(int sig, struct siginfo *info, pid_t pid)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
您可能可以在
linux/signal.c
和include/linux/sched.h
中找到它You can probably found this in
linux/signal.c
andinclude/linux/sched.h
Grep 是你的朋友。或者使用交叉引用之一,例如 http://lxr.linux.no 或 http://www.cs.fsu.edu/~baker/devices/lxr/http/来源/。
广告编辑(最初的问题没有说“API”):
实际上,该函数不是 API。它是
signal.c
的实现细节。它不是 API,因为没有EXPORT_SYMBOL
[_GPL
] 声明,因此不能从模块化代码中调用它。Grep is your friend. Or use one of the cross-references like http://lxr.linux.no or http://www.cs.fsu.edu/~baker/devices/lxr/http/source/.
Ad edit (the original question did not say "API"):
Actually, that function is not an API. It's an implementation detail of
signal.c
. It is not an API, because there is noEXPORT_SYMBOL
[_GPL
] declaration for it, so it's not callable from modular code.[编辑]
man
不起作用 - 但是,man Kill_proc_info
进入您最喜欢的搜索引擎会起作用。另请注意,发布在某些人的浏览器中无法正确呈现的页面也会导致否决。[/edit]
man
是你的朋友[edit]
谷歌是你的朋友(这就是我找到第一个答案的方式 - 在下面的评论中),但我们不允许在这里使用它作为答案。拥有一批懒惰的人比要求他们尝试使用他们所获得的工具更好 - IOW,授人以鱼胜于授人以鱼
[/编辑]
[edit]
man
won't work - however,man kill_proc_info
into your favorite search engine will. note too that posting a page that doesn't render correctly in somebodies browser will also result in a downvote.[/edit]
man
is your friend[edit]
google is your friend (which is how I found the first answer - in the comments below) but we're not allowed to use that as an answer here. Better to have a repository of lazy people than to request they attempt to use the tools that they are given - IOW, better to give a man a fish than teach him how to fish
[/edit]