函数逻辑报告

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
532  old_fs等于获取当前进程地址空间上限()
533  设置寄存器值(fs)
535  res等于vfs_write(file, (__forceconstchar__user * )buf, count, pos)
536  设置寄存器值(fs)
538  返回:res
调用者
名称描述
fork_usermode_blobrk_usermode_blob - fork a blob of bytes as a usermode process*@data: a blob of bytes that can be do_execv-ed as a file*@len: length of the blob*@info: information about usermode process (shouldn't be NULL)* If info->cmdline is set it will be used as