Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\dynamic_debug.c Create Date:2022-07-28 07:15:56
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:helper for ddebug_dyndbg_(boot|module)_param_cb

Proto:static int ddebug_dyndbg_param_cb(char *param, char *val, const char *modname, int on_err)

Type:int

Parameter:

TypeParameterName
char *param
char *val
const char *modname
inton_err
917  sep = strchr(param, '.')
918  If sep Then
920  sep = '\0'
921  modname = param
922  param = sep + 1
924  If strcmp(param, "dyndbg") Then Return on_err
927  handle multiple queries in query string, continue on error, returnlast error or number of matching callsites. Module name is eitherin param (for boot arg) or perhaps in query string.
929  Return 0
Caller
NameDescribe
ddebug_dyndbg_boot_param_cbhandle both dyndbg and $module.dyndbg params at boot
ddebug_dyndbg_module_param_cbmodprobe foo finds foo.params in boot-args, strips "foo.", and* passes them to load_module(). This callback gets unknown params,* processes dyndbg params, rejects others.