函数逻辑报告

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

函数名称:COMPAT_SYSCALL_DEFINE6

函数原型:COMPAT_SYSCALL_DEFINE6(io_pgetevents_time64, compat_aio_context_t, ctx_id, compat_long_t, min_nr, compat_long_t, nr, struct io_event __user *, events, struct __kernel_timespec __user *, timeout, const struct __compat_aio_sigset __user *, usig)

返回类型:

参数:

2247  struct __compat_aio_sigset ksig = {0, }
2252  如果timeoutget_timespec64( & t, timeout)则返回:负EFAULT
2255  如果usigcopy_from_user( & ksig, usig, ksig的长度)则返回:负EFAULT
2258  ret等于set_compat_user_sigmask(A pointer passed in from user mode. This should not* be used for syscall parameters, just declare them* as pointers because the syscall entry code will have* appropriately converted them already., sigsetsize)
2259  如果ret则返回:ret
2262  ret等于do_io_getevents(ctx_id, min_nr, nr, events, timeout ? & t : NULL)
2264  interrupted等于signal_pending(当前进程)
2265  restore_saved_sigmask_unless(interrupted)
2266  如果interrupted且非retret等于负start if no handler..
2269  返回:ret