Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tracing_thresh_write

Proto:static ssize_t tracing_thresh_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *filp
const char __user *ubuf
size_tcnt
loff_t *ppos
5906  tr = needed for tty driver, and maybe others
5909  mutex_lock( & race_types_lock is used to protect the trace_types list.)
5910  ret = tracing_nsecs_write( & tracing_thresh, ubuf, cnt, ppos)
5911  If ret < 0 Then Go to out
5914  If update_thresh Then
5915  ret = update_thresh(tr)
5916  If ret < 0 Then Go to out
5920  ret = cnt
5921  out :
5922  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.
5924  Return ret