Function report | 
Source Code:fs\select.c | 
Create Date:2022-07-28 20:07:04 | 
| Last Modify:2020-03-18 10:25:38 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:do_poll
Proto:static int do_poll(struct poll_list *list, struct poll_wqueues *wait, struct timespec64 *end_time)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct poll_list * | list | |
| struct poll_wqueues * | wait | |
| struct timespec64 * | end_time | 
| 877 | slack = 0 | 
| 878 | busy_flag = If net_busy_loop_on() Then POLL_BUSY_LOOP Else 0 | 
| 879 | busy_start = 0 | 
| 882 | If end_time && Not seconds && Not nanoseconds Then | 
| 887 | If end_time && Not timed_out Then slack = select_estimate_accuracy(end_time) | 
| 890 | cycle | 
| 892 | bool can_busy_loop = false | 
| 921 | _qproc = NULL | 
| 922 | If Not count Then | 
| 924 | If signal_pending(current process) Then count = -start if no handler.. | 
| 931 | If can_busy_loop && Not need_resched() Then | 
| 932 | If Not busy_start Then | 
| 933 | busy_start = busy_loop_current_time() | 
| 934 | Continue | 
| 936 | If Not poll/select we use the global sysctl_net_ll_poll value Then Continue | 
| 939 | busy_flag = 0 | 
| 951 | If Not poll_schedule_timeout(wait, TASK_INTERRUPTIBLE, to, slack) Then timed_out = 1 | 
| 954 | Return count | 
| Name | Describe | 
|---|---|
| do_sys_poll | 
| Source code conversion tool public plug-in interface  | X | 
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion  |