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:40:38
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static inline bool kdb_check_flags(kdb_cmdflags_t flags, int permissions, bool no_args)

Type:bool

Parameter:

TypeParameterName
kdb_cmdflags_tflags
intpermissions
boolno_args
208  permissions &= KDB_ENABLE_MASK
209  permissions |= KDB_ENABLE_ALWAYS_SAFE
212  If no_args Then permissions |= 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  Return permissions & flags
Caller
NameDescribe
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.