Function report |
Source Code:kernel\signal.c |
Create Date:2022-07-28 09:16:14 |
| Last Modify:2020-03-17 13:28:47 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kill_something_info() interprets pid in interesting ways just like kill(2).* POSIX specifies that kill(-1,sig) is unspecified, but what we have* is probably wrong. Should make it like BSD or SYSV.
Proto:static int kill_something_info(int sig, struct kernel_siginfo *info, pid_t pid)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | sig | |
| struct kernel_siginfo * | info | |
| pid_t | pid |
| 1555 | If pid > 0 Then |
| 1559 | Return ret |
| 1566 | read_lock( & tasklist_lock) |
| 1567 | If pid != -1 Then |
| 1570 | Else |
| 1575 | If task_pid_vnr(p) > 1 && Not same_thread_group(p, current process) Then |
| 1586 | read_unlock( & tasklist_lock) |
| 1588 | Return ret |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE2 | sys_kill - send a signal to a process*@pid: the PID of the process*@sig: signal to be sent |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |