Function report |
Source Code:fs\select.c |
Create Date:2022-07-28 20:07:06 |
| Last Modify:2020-03-18 10:25:38 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:We can actually return ERESTARTSYS instead of EINTR, but I'd* like to be certain this leads to no problems. So I return* EINTR just for safety.* Update: ERESTARTSYS breaks at least the xview clock binary, so
Proto:static int compat_core_sys_select(int n, compat_ulong_t __user *inp, compat_ulong_t __user *outp, compat_ulong_t __user *exp, struct timespec64 *end_time)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | n | |
| compat_ulong_t __user * | inp | |
| compat_ulong_t __user * | outp | |
| compat_ulong_t __user * | exp | |
| struct timespec64 * | end_time |
| 1189 | fdt = files_fdtable(files) |
| 1219 | zero_fd_set(n, res_in) |
| 1220 | zero_fd_set(n, res_out) |
| 1221 | zero_fd_set(n, res_ex) |
| 1227 | If Not ret Then |
| 1228 | ret = -start if no handler.. |
| 1229 | If signal_pending(current process) Then Go to out |
| 1231 | ret = 0 |
| 1234 | If compat_set_fd_set(n, inp, res_in) || compat_set_fd_set(n, outp, res_out) || compat_set_fd_set(n, exp, res_ex) Then ret = -EFAULT |
| 1238 | out : |
| 1241 | out_nofds : |
| 1242 | Return ret |
| Name | Describe |
|---|---|
| do_compat_select | |
| do_compat_pselect |
| 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 |