函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\kdb\kdb_main.c Create Date:2022-07-27 12:46:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:kdb_kill - This function implements the 'kill' commands.

函数原型:static int kdb_kill(int argc, const char **argv)

返回类型:int

参数:

类型参数名称
intargc
const char **argv
2456  如果argc不等于2则返回:KDB_ARGCOUNT
2459  sig等于simple_strtol(argv[1], & endp, 0)
2460  如果endp则返回:KDB_BADINT
2462  如果sig大于等于0或非Test if 'sig' is valid signal. Use this instead of testing _NSIG directly
2463  kdb_printf("Invalid signal parameter.<-signal>\n")
2464  返回:0
2466  sig等于负sig
2468  pid等于simple_strtol(argv[2], & endp, 0)
2469  如果endp则返回:KDB_BADINT
2471  如果pid小于等于0则
2472  kdb_printf("Process ID must be large than 0.\n")
2473  返回:0
2477  p等于Must be called under rcu_read_lock().
2478  如果非p
2479  kdb_printf("The specified process isn't found.\n")
2480  返回:0
2482  p等于线程组主管
2483  kdb_send_sig - Allows kdb to send signals without exposing* signal internals. This function checks if the required locks are* available before calling the main signal code, to avoid kdb* deadlocks.
2484  返回:0