Function report |
Source Code:kernel\locking\mutex.c |
Create Date:2022-07-28 09:47:18 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Wait-Die; wake a younger waiter context (when locks held) such that it can* die.* Among waiters with context, only the first one can have other locks acquired* already (ctx->acquired > 0), because __ww_mutex_add_waiter() and
Proto:static bool __sched __ww_mutex_die(struct mutex *lock, struct mutex_waiter *waiter, struct ww_acquire_ctx *ww_ctx)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct mutex * | lock | |
| struct mutex_waiter * | waiter | |
| struct ww_acquire_ctx * | ww_ctx |
| 370 | If Not is_wait_die Then Return false |
| 379 | Return true |
| Name | Describe |
|---|---|
| __ww_mutex_check_waiters | We just acquired @lock under @ww_ctx, if there are later contexts waiting* behind us on the wait-list, check if they need to die, or wound us.* See __ww_mutex_add_waiter() for the list-order construction; basically the |
| __ww_mutex_add_waiter | Add @waiter to the wait-list, keep the wait-list ordered by stamp, smallest* first |
| 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 |