函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Implement the event wait interface for the eventpoll file. It is the kernel* part of the user space epoll_wait(2).

函数原型:static int do_epoll_wait(int epfd, struct epoll_event __user *events, int maxevents, int timeout)

返回类型:int

参数:

类型参数名称
intepfd
struct epoll_event __user *events
intmaxevents
inttimeout
2246  如果maxevents小于等于0或maxevents大于EP_MAX_EVENTS则返回:负EINVAL
2250  如果非access_ok - Checks if a user space pointer is valid*@addr: User space pointer to start of block to check*@size: Size of block to check* Context: User context only. This function may sleep if pagefaults are* enabled.(events, maxevents * sizeof(structepoll_event))则返回:负EFAULT
2254  f等于fdget(epfd)
2255  如果非file则返回:负EBADF
2262  error等于负EINVAL
2263  如果非is_file_epoll(file)则转到:error_fput
2270  ep等于 needed for tty driver, and maybe others
2273  error等于p_poll - Retrieves ready events, and delivers them to the caller supplied* event buffer.*@ep: Pointer to the eventpoll context.*@events: Pointer to the userspace buffer where the ready events should be* stored.
2275  error_fput :
2276  fdput(f)
2277  返回:error
调用者
名称描述
SYSCALL_DEFINE4
SYSCALL_DEFINE6Implement the event wait interface for the eventpoll file. It is the kernel* part of the user space epoll_pwait(2).
COMPAT_SYSCALL_DEFINE6