table of contents
other versions
- wheezy-backports 3.16.39-1+deb8u1~bpo70+1
- jessie 3.16.43-2
THREADGROUP_LOCK(9) | Driver Basics | THREADGROUP_LOCK(9) |
NAME¶
threadgroup_lock - lock threadgroupSYNOPSIS¶
void
threadgroup_lock(struct task_struct * tsk);
ARGUMENTS¶
tskmember task of the threadgroup to lock
DESCRIPTION¶
Lock the threadgroup tsk belongs to. No new task is allowed to enter and member tasks aren't allowed to exit (as indicated by PF_EXITING) or change ->group_leader/pid. This is useful for cases where the threadgroup needs to stay stable across blockable operations. fork and exit paths explicitly call threadgroup_change_{begin|end}() for synchronization. While held, no new task will be added to threadgroup and no existing live task will have its PF_EXITING set.COPYRIGHT¶
February 2017 | Kernel Hackers Manual 3.16 |