Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:static int nop_set_flag(struct trace_array *tr, unsigned int old_flags, unsigned int bit, int set)

Type:int

Parameter:

TypeParameterName
struct trace_array *tr
unsigned intold_flags
unsigned intbit
intset
70  If bit == TRACE_NOP_OPT_ACCEPT Then
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  Return 0
77  If bit == TRACE_NOP_OPT_REFUSE Then
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  Return -EINVAL
84  Return 0