函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:SYSCALL_DEFINE6

函数原型:SYSCALL_DEFINE6(io_pgetevents, aio_context_t, ctx_id, long, min_nr, long, nr, struct io_event __user *, events, struct __kernel_timespec __user *, timeout, const struct __aio_sigset __user *, usig)

返回类型:

参数:

2110  struct __aio_sigset ksig = {NULL, }
2115  如果timeout此条件成立可能性小(为编译器优化)(get_timespec64( & ts, timeout))则返回:负EFAULT
2118  如果usigcopy_from_user( & ksig, usig, ksig的长度)则返回:负EFAULT
2121  ret等于The api helps set app-provided sigmasks
2122  如果ret则返回:ret
2125  ret等于do_io_getevents(ctx_id, min_nr, nr, events, timeout ? & ts : NULL)
2127  interrupted等于signal_pending(当前进程)
2128  restore_saved_sigmask_unless(interrupted)
2129  如果interrupted且非retret等于负start if no handler..
2132  返回:ret