Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\read_write.c Create Date:2022-07-28 20:01:21
Last Modify:2020-03-18 10:18:51 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:ksys_write

Proto:ssize_t ksys_write(unsigned int fd, const char __user *buf, size_t count)

Type:ssize_t

Parameter:

TypeParameterName
unsigned intfd
const char __user *buf
size_tcount
602  f = fdget_pos(fd)
603  ret = -EBADF
605  If file Then
606  ppos = le_ppos returns &file->f_pos or NULL if file is stream
607  If ppos Then
608  pos = ppos
609  ppos = pos
611  ret = vfs_write(file, buf, count, ppos)
612  If ret >= 0 && ppos Then f_pos = pos
614  fdput_pos(f)
617  Return ret
Caller
NameDescribe
rd_load_image
compr_flush
SYSCALL_DEFINE3