Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:fs\select.c Create Date:2022-07-28 20:07:05
Last Modify:2020-03-18 10:25:38 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:SYSCALL_DEFINE3

Proto:SYSCALL_DEFINE3(poll, struct pollfd __user *, ufds, unsigned int, nfds, int, timeout_msecs)

Type:

Parameter:Nothing

1050  struct timespec64 end_time, * to = NULL
1053  If timeout_msecs >= 0 Then
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  If ret == -start if no handler.. Then
1064  restart_block = restart_block
1065  fn = do_restart_poll
1066  ufds = ufds
1067  nfds = nfds
1069  If timeout_msecs >= 0 Then
1070  tv_sec = seconds
1072  has_timeout = 1
1073  Else has_timeout = 0
1076  ret = -start by calling sys_restart_syscall
1078  Return ret