Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/infiniband/core/cgroup.c, line 38 (as a function)
- drivers/infiniband/core/core_priv.h, line 176 (as a function)
Referenced in 3 files:
- drivers/infiniband/core/cgroup.c, line 45
- drivers/infiniband/core/rdma_core.c, line 477
- drivers/infiniband/core/uverbs_cmd.c, line 226
Smatch caller information:
drivers/infiniband/core/rdma_core.c alloc_begin_idr_uobject() -> ib_rdmacg_try_charge()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cg_obj | 4096-ptr_max |
| PARAM_VALUE | 2 | resource_index | 1 |
| LOCK2 | &ufile->hw_destroy_rwsem | ||
| HALF_LOCKED2 | &attrs->ufile->hw_destroy_rwsem | ||
| HALF_LOCKED2 | &ufile->device->disassociate_srcu | ||
| TYPE_LOCK | (struct ib_uverbs_file)->hw_destroy_rwsem |
drivers/infiniband/core/uverbs_cmd.c ib_init_ucontext() -> ib_rdmacg_try_charge()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | cg_obj | 4096-ptr_max |
| PARAM_VALUE | 1 | device | 4096-ptr_max |
| PARAM_VALUE | 2 | resource_index | 0 |
| LOCK2 | &file->hw_destroy_rwsem | ||
| LOCK2 | &file->ucontext_lock | ||
| TYPE_LOCK | (struct ib_uverbs_file)->hw_destroy_rwsem | ||
| TYPE_LOCK | (struct ib_uverbs_file)->ucontext_lock |