Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\anon_inodes.c Create Date:2022-07-28 20:19:23
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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

Proto:int anon_inode_getfd(const char *name, const struct file_operations *fops, void *priv, int flags)

Type:int

Parameter:

TypeParameterName
const char *name
const struct file_operations *fops
void *priv
intflags
131  error = get_unused_fd_flags(flags)
132  If error < 0 Then Return 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  If IS_ERR(file) Then
138  error = PTR_ERR(file)
139  Go to err_put_unused_fd
141  fd_install(fd, file)
143  Return fd
145  err_put_unused_fd :
146  put_unused_fd(fd)
147  Return error
Caller
NameDescribe
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
fscontext_create_fdAttach a filesystem context to a file and an fd.