Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\debug\kdb\kdb_main.c Create Date:2022-07-28 11:42:16
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:kdb_kill - This function implements the 'kill' commands.

Proto:static int kdb_kill(int argc, const char **argv)

Type:int

Parameter:

TypeParameterName
intargc
const char **argv
2456  If argc != 2 Then Return KDB_ARGCOUNT
2459  sig = simple_strtol(argv[1], & endp, 0)
2460  If endp Then Return KDB_BADINT
2462  If sig >= 0 || Not Test if 'sig' is valid signal. Use this instead of testing _NSIG directly Then
2463  kdb_printf("Invalid signal parameter.<-signal>\n")
2464  Return 0
2466  sig = -sig
2468  pid = simple_strtol(argv[2], & endp, 0)
2469  If endp Then Return KDB_BADINT
2471  If pid <= 0 Then
2472  kdb_printf("Process ID must be large than 0.\n")
2473  Return 0
2477  p = Must be called under rcu_read_lock().
2478  If Not p Then
2479  kdb_printf("The specified process isn't found.\n")
2480  Return 0
2482  p = group_leader
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  Return 0