函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:system_enable_write

函数原型:static ssize_t system_enable_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos)

返回类型:ssize_t

参数:

类型参数名称
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  如果ret则返回: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  如果ret小于0则返回:ret
1182  如果val不等于0且val不等于1则返回:负EINVAL
1189  如果systemname等于name
1192  ret等于__ftrace_set_clr_event(tr, NULL, name, NULL, val)
1193  如果ret则转到:out
1196  ret等于cnt
1198  out :
1199  ppos加等于cnt
1201  返回:ret