函数逻辑报告

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_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

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

返回类型:int

参数:

类型参数名称
const char *name
const struct file_operations *fops
void *priv
intflags
131  error等于get_unused_fd_flags(flags)
132  如果error小于0则返回:error
134  fd等于error
136  file等于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
137  如果是错误
138  error等于错误
139  转到:err_put_unused_fd
141  fd_install(fd, file)
143  返回:fd
145  err_put_unused_fd :
146  put_unused_fd(fd)
147  返回:error
调用者
名称描述
bpf_map_new_fd
bpf_prog_new_fd
bpf_tracing_prog_attach
bpf_raw_tracepoint_open
__btf_new_fd
do_inotify_inity syscalls
SYSCALL_DEFINE2anotify syscalls
do_signalfd4
SYSCALL_DEFINE2
do_eventfd
resolve_userfault_fork
SYSCALL_DEFINE1
pidfd_createpidfd_create() - Create a new pid file descriptor.*@pid: struct pid that the pidfd will reference* This creates a new pid file descriptor with the O_CLOEXEC flag set.* Note, that this function can only be called after the fd table has
fscontext_create_fdAttach a filesystem context to a file and an fd.