函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:anon_inode_getfile - creates a new file instance by hooking it up to an* anonymous inode, and a dentry that describe the "class"* of the file*@name: [in] name of the "class" of the new file*@fops: [in] file operations for the new file*@priv: [in] private

函数原型:struct file *anon_inode_getfile(const char *name, const struct file_operations *fops, void *priv, int flags)

返回类型:struct file

参数:

类型参数名称
const char *name
const struct file_operations *fops
void *priv
intflags
80  如果是错误则返回:错误号
83  如果owner且非判断模块是否处于活动状态则返回:错误号
90  get additional reference to inode; caller must already hold one.
91  file等于alloc_file_pseudo(anon_inode_inode, anon_inode_mnt, name, flags & (O_ACCMODE | O_NONBLOCK), fops)
93  如果是错误则转到:err
96  f_mapping等于i_mapping
98  needed for tty driver, and maybe others 等于priv
100  返回:file
102  err :
103  放置一个索引节点
104  module_put(owner)
105  返回:file
调用者
名称描述
anon_inode_getfdanon_inode_getfd - creates a new file instance by hooking it up to an* anonymous inode, and a dentry that describe the "class"* of the file*@name: [in] name of the "class" of the new file*@fops: [in] file operations for the new file*@priv: [in] private
io_uring_get_fdAllocate an anonymous fd, this is what constitutes the application* visible backing of an io_uring instance. The application mmaps this* fd to gain access to the SQ/CQ ring details. If UNIX sockets are enabled,
copy_process创建进程
do_epoll_createOpen an eventpoll file descriptor.