函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Open an eventpoll file descriptor.

函数原型:static int do_epoll_create(int flags)

返回类型:int

参数:

类型参数名称
intflags
2024  struct eventpoll * ep = NULL
2028  BUILD_BUG_ON - break compile if a condition is true(Flags for epoll_create1. != O_CLOEXEC)
2030  如果flags按位与Flags for epoll_create1. 的反则返回:负EINVAL
2035  error等于ep_alloc( & ep)
2036  如果error小于0则返回:error
2042  fd等于get_unused_fd_flags(O_RDWR | (flags & O_CLOEXEC))
2043  如果fd小于0则
2044  error等于fd
2045  转到:out_free_ep
2047  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
2049  如果是错误
2050  error等于错误
2051  转到:out_free_fd
2053  file等于file
2054  fd_install(fd, file)
2055  返回:fd
2057  out_free_fd :
2058  put_unused_fd(fd)
2059  out_free_ep :
2060  ep_free(ep)
2061  返回:error
调用者
名称描述
SYSCALL_DEFINE1
SYSCALL_DEFINE1