函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:event_enable_write

函数原型:static ssize_t event_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
1090  ret等于kstrtoul_from_user(ubuf, cnt, 10, & val)
1091  如果ret则返回:ret
1094  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
1095  如果ret小于0则返回:ret
1099  :val恒等于0
1100  :val恒等于1
1101  ret等于负ENODEV
1102  mutex_lock( & event_mutex)
1103  file等于event_file_data(filp)
1104  如果此条件成立可能性大(为编译器优化)(file)则ret等于ftrace_event_enable_disable(file, val)
1106  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.
1107  退出
1109  默认
1110  返回:负EINVAL
1113  ppos加等于cnt
1115  返回:如果retret否则cnt