函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:tracing_set_trace_write

函数原型:static ssize_t tracing_set_trace_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
5836  tr等于 needed for tty driver, and maybe others
5842  ret等于cnt
5844  如果cnt大于MAX_TRACER_SIZEcnt等于MAX_TRACER_SIZE
5847  如果copy_from_user(buf, ubuf, cnt)则返回:负EFAULT
5850  buf[cnt]等于0
5853 i大于0且Note: isspace() must return false for %NUL-terminator (buf[i])循环buf[i]等于0
5856  err等于tracing_set_tracer(tr, buf)
5857  如果err则返回:err
5860  ppos加等于ret
5862  返回:ret