Function report |
Source Code:kernel\exit.c |
Create Date:2022-07-28 09:03:38 |
| Last Modify:2020-03-17 11:17:32 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:do_wait
Proto:static long do_wait(struct wait_opts *wo)
Type:long
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct wait_opts * | wo |
| 1427 | private = current process |
| 1428 | add_wait_queue( & wait_chldexit, & child_wait) |
| 1429 | repeat : |
| 1436 | notask_error = -ECHILD |
| 1437 | If wo_type < PIDTYPE_MAX && ( Not wo_pid || Not pid_has_task(wo_pid, wo_type) ) Then Go to notask |
| 1442 | read_lock( & tasklist_lock) |
| 1443 | tsk = current process |
| 1444 | Do |
| 1449 | retval = ptrace_do_wait(wo, tsk) |
| 1453 | If wo_flags & Don't wait on children of other threads in this group Then Break |
| 1456 | read_unlock( & tasklist_lock) |
| 1458 | notask : |
| 1459 | retval = notask_error |
| 1462 | If Not signal_pending(current process) Then |
| 1467 | end : |
| 1469 | remove_wait_queue( & wait_chldexit, & child_wait) |
| 1470 | Return retval |
| Name | Describe |
|---|---|
| kernel_waitid | |
| kernel_wait4 |
| 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 |