函数源码 |
Source File:kernel\exit.c |
Create Date:2022-07-27 10:03:18 |
首页 | Copyright©Brick |
1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 | static int child_wait_callback(wait_queue_entry_t *wait, unsigned mode, int sync, void *key) { struct wait_opts *wo = container_of(wait, struct wait_opts, child_wait); struct task_struct *p = key; if (!eligible_pid(wo, p)) return 0; if ((wo->wo_flags & __WNOTHREAD) && wait-> private != p->parent) return 0; return default_wake_function(wait, mode, sync, key); } |