当前位置: 技术问答>linux和unix
内核发送信号给进程的问题,高手来拿分了
来源: 互联网 发布时间:2016-03-20
本文导语: 我内核态的驱动里要发送信号给进程(我只知道进程的PID),用哪个函数? 是不是 send_sig(int sig, struct task_struct *p, int priv) ? 它的参数怎么写? 第二个的task_struct 指针如何得到? | ...
我内核态的驱动里要发送信号给进程(我只知道进程的PID),用哪个函数? 是不是 send_sig(int sig, struct task_struct *p, int priv) ?
它的参数怎么写? 第二个的task_struct 指针如何得到?
它的参数怎么写? 第二个的task_struct 指针如何得到?
|
KILL(2) Linux Programmer's Manual KILL(2)
NAME
kill - send signal to a process
SYNOPSIS
#include
#include
int kill(pid_t pid, int sig);
DESCRIPTION
The kill() system call can be used to send any signal to any process
group or process.
NAME
kill - send signal to a process
SYNOPSIS
#include
#include
int kill(pid_t pid, int sig);
DESCRIPTION
The kill() system call can be used to send any signal to any process
group or process.
|
find_task_by_pid(pid)
您可能感兴趣的文章:
本站(WWW.)旨在分享和传播互联网科技相关的资讯和技术,将尽最大努力为读者提供更好的信息聚合和浏览方式。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。
本站(WWW.)站内文章除注明原创外,均为转载、整理或搜集自网络。欢迎任何形式的转载,转载请注明出处。