函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:It only serves as a signal handler and a callback to* accept or refuse the setting of a flag.* If you don't implement it, then the flag setting will be* automatically accepted.

函数原型:static int nop_set_flag(struct trace_array *tr, unsigned int old_flags, unsigned int bit, int set)

返回类型:int

参数:

类型参数名称
struct trace_array *tr
unsigned intold_flags
unsigned intbit
intset
70  如果bit恒等于TRACE_NOP_OPT_ACCEPT
71  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
74  返回:0
77  如果bit恒等于TRACE_NOP_OPT_REFUSE
78  printk - print a kernel message*@fmt: format string* This is printk(). It can be called from any context. We want it to work.* We try to grab the console_lock. If we succeed, it's easy - we log the* output and call the console drivers
81  返回:负EINVAL
84  返回:0