函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:helper for ddebug_dyndbg_(boot|module)_param_cb

函数原型:static int ddebug_dyndbg_param_cb(char *param, char *val, const char *modname, int on_err)

返回类型:int

参数:

类型参数名称
char *param
char *val
const char *modname
inton_err
917  sep等于strchr(param, '.')
918  如果sep
920  sep等于'\0'
921  modname等于param
922  param等于sep加1
924  如果strcmp(param, "dyndbg")则返回: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  返回:0
调用者
名称描述
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.