Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 3 files:

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