Function report |
Source Code:kernel\locking\mutex.c |
Create Date:2022-07-28 09:47:17 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Give up ownership to a specific task, when @task = NULL, this is equivalent* to a regular unlock. Sets PICKUP on a handoff, clears HANDOF, preserves* WAITERS. Provides RELEASE semantics like a regular unlock, the
Proto:static void __mutex_handoff(struct mutex *lock, struct task_struct *task)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct mutex * | lock | |
struct task_struct * | task |
226 | owner = atomic_long_read( & owner) |
228 | cycle |
238 | If task Then new |= MUTEX_FLAG_PICKUP |
241 | old = atomic_long_cmpxchg_release( & owner, owner, new) |
Name | Describe |
---|---|
__mutex_unlock_slowpath |
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 |