Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/infiniband/core/ib_core_uverbs.c, line 284 (as a function)
- include/rdma/ib_verbs.h, line 3211 (as a function)
Referenced in 5 files:
- drivers/infiniband/core/ib_core_uverbs.c
- drivers/infiniband/hw/hns/hns_roce_main.c, line 387
- drivers/infiniband/hw/mlx5/dm.c, line 157
- drivers/infiniband/hw/mlx5/main.c, line 4174
- include/rdma/ib_verbs.h, line 3180
Smatch caller information:
drivers/infiniband/core/ib_core_uverbs.c rdma_user_mmap_entry_insert() -> rdma_user_mmap_entry_insert_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | entry | 4096-ptr_max |
| PARAM_VALUE | 3 | min_pgoff | 0 |
| PARAM_VALUE | 4 | max_pgoff | u32max |
| DATA_SOURCE | 0 | ucontext | $0 |
| DATA_SOURCE | 1 | entry | $1 |
| DATA_SOURCE | 2 | length | $2 |
| NOSPEC | 2 | length | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | length | 0-4294971392[c] |
| UNITS | 2 | length | unit_byte |
| HALF_LOCKED2 | &file->hw_destroy_rwsem | ||
| HALF_LOCKED2 | &file->ucontext_lock |
drivers/infiniband/hw/hns/hns_roce_main.c hns_roce_user_mmap_entry_insert() -> rdma_user_mmap_entry_insert_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | entry | 4096-ptr_max |
| PARAM_VALUE | 2 | length | 65536 |
| PARAM_VALUE | 3 | min_pgoff | 1 |
| PARAM_VALUE | 4 | max_pgoff | u32max |
| DATA_SOURCE | 0 | ucontext | $0 |
| DATA_SOURCE | 2 | length | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/infiniband/hw/hns/hns_roce_main.c rdma_user_mmap_entry_insert_exact() -> rdma_user_mmap_entry_insert_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ucontext | 4096-ptr_max |
| PARAM_VALUE | 0 | ucontext->cg_obj.cg | 4096-ptr_max |
| PARAM_VALUE | 0 | ucontext->device | 4096-ptr_max |
| PARAM_VALUE | 0 | ucontext->device->cg_device.rpools.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ucontext->device->cg_device.rpools.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ucontext->device->cg_device.rpools.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | ucontext->device->cg_device.rpools.prev->prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ucontext->mmap_xa.xa_flags | 33554436 |
| PARAM_VALUE | 0 | ucontext->mmap_xa.xa_head | 0 |
| PARAM_VALUE | 0 | ucontext->res.comp.done | 0 |
| PARAM_VALUE | 0 | ucontext->res.comp.wait.lock.magic | 3735899821 |
| PARAM_VALUE | 0 | ucontext->res.comp.wait.lock.owner | (-1) |
| PARAM_VALUE | 0 | ucontext->res.comp.wait.lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | ucontext->res.comp.wait.task_list.next | 4096-ptr_max |
| PARAM_VALUE | 0 | ucontext->res.comp.wait.task_list.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | ucontext->res.kref.refcount.refs.counter | 1 |
| PARAM_VALUE | 0 | ucontext->res.type | 5 |
| PARAM_VALUE | 0 | ucontext->res.user | 1 |
| PARAM_VALUE | 0 | ucontext->ufile | 4096-ptr_max |
| PARAM_VALUE | 1 | entry | 4096-ptr_max |
| PARAM_VALUE | 2 | length | 4096 |
| PARAM_VALUE | 3 | min_pgoff | 0 |
| PARAM_VALUE | 4 | max_pgoff | 0 |
| DATA_SOURCE | 0 | ucontext | $0 |
| DATA_SOURCE | 1 | entry | $1 |
| DATA_SOURCE | 2 | length | $2 |
| DATA_SOURCE | 3 | min_pgoff | $3 |
| DATA_SOURCE | 4 | max_pgoff | $3 |
| RX_PATH | |||
| UNITS | 2 | length | unit_byte |
| 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 |
drivers/infiniband/hw/bnxt_re/ib_verbs.c rdma_user_mmap_entry_insert_exact() -> rdma_user_mmap_entry_insert_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ucontext | 4096-ptr_max |
| PARAM_VALUE | 1 | entry | 4096-ptr_max |
| PARAM_VALUE | 2 | length | 4096 |
| PARAM_VALUE | 3 | min_pgoff | 0 |
| PARAM_VALUE | 4 | max_pgoff | 0 |
| DATA_SOURCE | 0 | ucontext | $0 |
| DATA_SOURCE | 1 | entry | $1 |
| DATA_SOURCE | 2 | length | $2 |
| DATA_SOURCE | 3 | min_pgoff | $3 |
| DATA_SOURCE | 4 | max_pgoff | $3 |
| RX_PATH | |||
| UNITS | 2 | length | unit_byte |
| 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 |
drivers/infiniband/hw/mlx5/dm.c add_dm_mmap_entry() -> rdma_user_mmap_entry_insert_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ucontext | 4096-ptr_max |
| PARAM_VALUE | 1 | entry | 4096-ptr_max |
| PARAM_VALUE | 3 | min_pgoff | 524288 |
| PARAM_VALUE | 4 | max_pgoff | 589823 |
| DATA_SOURCE | 0 | ucontext | $0 |
| DATA_SOURCE | 2 | length | $3 |
| HALF_LOCKED2 | &dm->ops_xa_lock |
drivers/infiniband/hw/mlx5/main.c mlx5_rdma_user_mmap_entry_insert() -> rdma_user_mmap_entry_insert_range()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ucontext | 4096-ptr_max |
| PARAM_VALUE | 1 | entry | 4096-ptr_max |
| PARAM_VALUE | 3 | min_pgoff | 589824 |
| PARAM_VALUE | 4 | max_pgoff | 16777215 |
| DATA_SOURCE | 2 | length | $2 |
| UNITS | 2 | length | unit_byte |