Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:subsystem_filter_write

Proto:static ssize_t subsystem_filter_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *filp
const char __user *ubuf
size_tcnt
loff_t *ppos
1539  dir = needed for tty driver, and maybe others
1543  If cnt >= PAGE_SIZE Then Return -EINVAL
1546  buf = memdup_user_nul(ubuf, cnt)
1547  If IS_ERR(buf) Then Return PTR_ERR(buf)
1550  err = apply_subsystem_event_filter(dir, buf)
1551  kfree(buf)
1552  If err < 0 Then Return err
1555  ppos += cnt
1557  Return cnt