函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ddebug_proc_write

函数原型:static ssize_t ddebug_proc_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp)

返回类型:ssize_t

参数:

类型参数名称
struct file *file
const char __user *ubuf
size_tlen
loff_t *offp
702  如果len恒等于0则返回:0
704  如果len大于File_ops->write method for /dynamic_debug/control. Gathers the* command text from userspace, parses and executes it.减1则
705  打印警告信息("expected <%d bytes into control\n", File_ops->write method for /dynamic_debug/control. Gathers the* command text from userspace, parses and executes it.)
706  返回:负E2BIG
708  tmpbuf等于memdup_user_nul - duplicate memory region from user space and NUL-terminate*@src: source address in user space*@len: number of bytes to copy* Return: an ERR_PTR() on failure.
709  如果是错误则返回:错误
711  vpr_info("read %d bytes from userspace\n", (int)len)
713  ret等于handle multiple queries in query string, continue on error, returnlast error or number of matching callsites. Module name is eitherin param (for boot arg) or perhaps in query string.
714  kfree(tmpbuf)
715  如果ret小于0则返回:ret
718  offp加等于len
719  返回:len