Function report |
Source Code:kernel\exit.c |
Create Date:2022-07-28 09:03:41 |
| Last Modify:2020-03-17 11:17:32 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:kernel_waitid
Proto:static long kernel_waitid(int which, pid_t upid, struct waitid_info *infop, int options, struct rusage *ru)
Type:long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | which | |
| pid_t | upid | |
| struct waitid_info * | infop | |
| int | options | |
| struct rusage * | ru |
| 1498 | If options & ~( WNOHANG | Don't reap, just poll status. | WEXITED | WSTOPPED | WCONTINUED | Don't wait on children of other threads in this group | Wait only on non-SIGCHLD children | Wait on all children, regardless of type ) Then Return -EINVAL |
| 1501 | If Not (options & ( WEXITED | WSTOPPED | WCONTINUED)) Then Return -EINVAL |
| 1505 | Case which == First argument to waitid: |
| 1506 | type = PIDTYPE_MAX |
| 1507 | Break |
| 1509 | type = PIDTYPE_PID |
| 1514 | Break |
| 1534 | Default |
| 1535 | Return -EINVAL |
| 1546 | Return ret |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE5 | |
| COMPAT_SYSCALL_DEFINE5 |
| 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 |