| Function report | 
| Source Code: kernel\locking\mutex.c | Create Date:2022-07-28 09:47:25 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Add @waiter to the wait-list, keep the wait-list ordered by stamp, smallest* first
Proto:static inline int __sched __ww_mutex_add_waiter(struct mutex_waiter *waiter, struct mutex *lock, struct ww_acquire_ctx *ww_ctx)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct mutex_waiter * | waiter | |
| struct mutex * | lock | |
| struct ww_acquire_ctx * | ww_ctx | 
| 860 | If Not ww_ctx Then | 
| 862 | Return 0 | 
| 865 | is_wait_die = is_wait_die | 
| 876 | If Not ww_ctx Then Continue | 
| 885 | If is_wait_die Then | 
| 892 | Break | 
| 907 | If Not is_wait_die Then | 
| 915 | smp_mb() | 
| 919 | Return 0 | 
| Name | Describe | 
|---|---|
| __mutex_lock_common | Lock a mutex (possibly interruptible), 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 |