Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Open an eventpoll file descriptor.

Proto:static int do_epoll_create(int flags)

Type:int

Parameter:

TypeParameterName
intflags
2024  struct eventpoll * ep = NULL
2028  BUILD_BUG_ON - break compile if a condition is true(Flags for epoll_create1. != O_CLOEXEC)
2030  If flags & ~Flags for epoll_create1. Then Return -EINVAL
2035  error = ep_alloc( & ep)
2036  If error < 0 Then Return error
2042  fd = get_unused_fd_flags(O_RDWR | (flags & O_CLOEXEC))
2043  If fd < 0 Then
2044  error = fd
2045  Go to 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  If IS_ERR(file) Then
2050  error = PTR_ERR(file)
2051  Go to out_free_fd
2053  file = file
2054  fd_install(fd, file)
2055  Return fd
2057  out_free_fd :
2058  put_unused_fd(fd)
2059  out_free_ep :
2060  ep_free(ep)
2061  Return error
Caller
NameDescribe
SYSCALL_DEFINE1
SYSCALL_DEFINE1