函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\read_write.c Create Date:2022-07-29 10:31:22
Last Modify:2020-03-18 10:18:51 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__kernel_write

函数原型:ssize_t __kernel_write(struct file *file, const void *buf, size_t count, loff_t *pos)

返回类型:ssize_t

参数:

类型参数名称
struct file *file
const void *buf
size_tcount
loff_t *pos
504  __userp
507  如果非f_mode按位与Has write method(s) 的值则返回:负EINVAL
510  old_fs等于获取当前进程地址空间上限()
511  设置寄存器值(fs)
512  p等于buf
513  如果count大于MAX_RW_COUNTcount等于MAX_RW_COUNT
515  ret等于__vfs_write(file, p, count, pos)
516  设置寄存器值(fs)
517  如果ret大于0则
518  snotify_modify - file was modified
519  add_wchar(当前进程, ret)
521  inc_syscw(当前进程)
522  返回:ret
调用者
名称描述
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.
do_acct_process