函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Check whether the flags of the current command and the permissions* of the kdb console has allow a command to be run.

函数原型:static inline bool kdb_check_flags(kdb_cmdflags_t flags, int permissions, bool no_args)

返回类型:bool

参数:

类型参数名称
kdb_cmdflags_tflags
intpermissions
boolno_args
208  permissions与等于KDB_ENABLE_MASK
209  permissions或等于KDB_ENABLE_ALWAYS_SAFE
212  如果no_argspermissions或等于permissions左移Shifted versions of the command enable bits are be used if the command* has no arguments (see kdb_check_flags). This allows commands, such as* go, to have different permissions depending upon whether it is called* with an argument.
215  flags或等于 Enable everything
217  返回:permissions按位与flags
调用者
名称描述
kdbgetaddrargkdbgetaddrarg - This function is responsible for parsing an* address-expression and returning the value of the expression,* symbol name, and offset to the caller
kdb_parse
kdb_helpkdb_help - This function implements the 'help' and '?' commands.