Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tracepoint_printk_sysctl

Proto:int tracepoint_printk_sysctl(struct ctl_table *table, int write, void __user *buffer, size_t *lenp, loff_t *ppos)

Type:int

Parameter:

TypeParameterName
struct ctl_table *table
intwrite
void __user *buffer
size_t *lenp
loff_t *ppos
2647  mutex_lock( & tracepoint_printk_mutex)
2648  save_tracepoint_printk = tracepoint_printk
2650  ret = read a vector of integers
2656  If Not Pipe tracepoints to printk Then tracepoint_printk = 0
2659  If save_tracepoint_printk == tracepoint_printk Then Go to out
2662  If tracepoint_printk Then static_key_enable( & key)
2664  Else static_key_disable( & key)
2667  out :
2668  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
2670  Return ret