函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:SYSCALL_DEFINE3

函数原型:SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds, int, timeout_msecs)

返回类型:

参数:

1050  struct timespec64 end_time, * to = NULL
1053  如果timeout_msecs大于等于0则
1054  to等于end_time
1055  poll_select_set_timeout - helper function to setup the timeout value*@to: pointer to timespec64 variable for the final timeout*@sec: seconds (from user space)*@nsec: nanoseconds (from user space)* Note, we do not use a timespec for the user space value
1059  ret等于do_sys_poll(ufds, nfds, to)
1061  如果ret恒等于负start if no handler..
1064  restart_block等于restart_block
1065  fn等于do_restart_poll
1066  ufds等于ufds
1067  nfds等于nfds
1069  如果timeout_msecs大于等于0则
1070  tv_sec等于 seconds
1071  tv_nsec等于 nanoseconds
1072  has_timeout等于1
1073  否则has_timeout等于0
1076  ret等于负start by calling sys_restart_syscall
1078  返回:ret