Defined in 1 files as a function:
Referenced in 2 files:
Smatch caller information:
kernel/locking/mutex.c __mutex_lock_common() -> ww_mutex_set_context_fastpath()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | lock | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->ww_class->acquire_name | 0,4096-ptr_max |
| PARAM_VALUE | 1 | ctx->ww_class->is_wait_die | 0-s32max |
| PARAM_VALUE | 1 | ctx->ww_class->mutex_name | 0,4096-ptr_max |
| BUF_SIZE | 1 | ctx | (-1)-0,152 |
| BUF_SIZE | 1 | ctx | (-1)-0,152 |
| DATA_SOURCE | 1 | ctx | $5 |
| PARAM_COMPARE | 0 | lock->ctx | != $1 |
| PARAM_COMPARE | 1 | ctx | != $0->ctx |
| PREEMPT_ADD | <- disables preempt | ||
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL |
kernel/locking/mutex.c ww_mutex_trylock() -> ww_mutex_set_context_fastpath()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | lock | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | ctx->ww_class->acquire_name | 0,4096-ptr_max |
| PARAM_VALUE | 1 | ctx->ww_class->is_wait_die | 0-s32max |
| PARAM_VALUE | 1 | ctx->ww_class->mutex_name | 0,4096-ptr_max |
| DATA_SOURCE | 0 | lock | $0 |
| DATA_SOURCE | 1 | ctx | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| NO_OVERFLOW_SIMPLE | 1 | ctx->deadlock_inject_countdown | |
| NO_OVERFLOW_SIMPLE | 1 | ctx->deadlock_inject_interval | |
| HALF_LOCKED2 | &ce->pin_mutex | ||
| HALF_LOCKED2 | &wf->mutex | ||
| HALF_LOCKED2 | global ®ulator_nesting_mutex | ||
| HALF_LOCKED2 | global &run_lock |