Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:system_enable_write

Proto:static ssize_t system_enable_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
1168  dir = needed for tty driver, and maybe others
1169  system = subsystem
1170  const char * name = NULL
1174  ret = kstrtoul_from_user(ubuf, cnt, 10, & val)
1175  If ret Then Return ret
1178  ret = racing_update_buffers - used by tracing facility to expand ring buffers* To save on memory when the tracing is never used on a system with it* configured in
1179  If ret < 0 Then Return ret
1182  If val != 0 && val != 1 Then Return -EINVAL
1189  If system Then name = name
1192  ret = __ftrace_set_clr_event(tr, NULL, name, NULL, val)
1193  If ret Then Go to out
1196  ret = cnt
1198  out :
1199  ppos += cnt
1201  Return ret