Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:tracing_clock_write

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

Type:ssize_t

Parameter:

TypeParameterName
struct file *filp
const char __user *ubuf
size_tcnt
loff_t *fpos
6661  m = needed for tty driver, and maybe others
6662  tr = private
6667  If cnt >= size of buf Then Return -EINVAL
6670  If copy_from_user(buf, ubuf, cnt) Then Return -EFAULT
6673  buf[cnt] = 0
6675  clockstr = strstrip(buf)
6677  ret = tracing_set_clock(tr, clockstr)
6678  If ret Then Return ret
6681  fpos += cnt
6683  Return cnt