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:kernel_write

Proto:ssize_t kernel_write(struct file *file, const void *buf, size_t count, loff_t *pos)

Type:ssize_t

Parameter:

TypeParameterName
struct file *file
const void *buf
size_tcount
loff_t *pos
532  old_fs = get_fs()
533  set_fs(KERNEL_DS)
535  res = vfs_write(file, (__forceconstchar__user * )buf, count, pos)
536  set_fs(old_fs)
538  Return res