Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\sched\debug.c Create Date:2022-07-28 09:43:54
Last Modify:2020-03-17 13:39:02 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:sched_feat_write

Proto:static ssize_t sched_feat_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
135  If cnt > 63 Then cnt = 63
138  If copy_from_user( & buf, ubuf, cnt) Then Return -EFAULT
141  buf[cnt] = 0
142  cmp = strstrip(buf)
145  inode = file_inode(filp)
146  cpus_read_lock()
147  inode_lock(inode)
148  ret = sched_feat_set(cmp)
149  inode_unlock(inode)
150  cpus_read_unlock()
151  If ret < 0 Then Return ret
154  ppos += cnt
156  Return cnt