Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ddebug_proc_write

Proto:static ssize_t ddebug_proc_write(struct file *file, const char __user *ubuf, size_t len, loff_t *offp)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
const char __user *ubuf
size_tlen
loff_t *offp
702  If len == 0 Then Return 0
704  If len > File_ops->write method for /dynamic_debug/control. Gathers the* command text from userspace, parses and executes it. - 1 Then
705  pr_warn("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  Return -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  If IS_ERR(tmpbuf) Then Return PTR_ERR(tmpbuf)
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  If ret < 0 Then Return ret
718  offp += len
719  Return len