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
504  __user * p
507  If Not (f_mode & Has write method(s) ) Then Return -EINVAL
510  old_fs = get_fs()
511  set_fs(KERNEL_DS)
512  p = buf
513  If count > MAX_RW_COUNT Then count = MAX_RW_COUNT
515  ret = __vfs_write(file, p, count, pos)
516  set_fs(old_fs)
517  If ret > 0 Then
518  snotify_modify - file was modified
519  add_wchar(current process, ret)
521  inc_syscw(current process)
522  Return ret
Caller
NameDescribe
write_pipe_buf
dump_emitCore dumping helper functions. These are the only things you should* do on a core-file: use only these functions to write out all the* necessary info.