Defined in 1 files as a prototype:

Defined in 2 files as a function:

Referenced in 6 files:

Smatch caller information:

mm/mmap.c do_mmap() -> can_do_mlock()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &ctx->ring_lock
HALF_LOCKED2 &mm->mmap_lock

net/rds/rdma.c __rds_rdma_map() -> can_do_mlock()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/infiniband/core/umem.c __ib_umem_get_va() -> can_do_mlock()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &context->db_page_mutex

drivers/accel/amdxdna/amdxdna_ubuf.c amdxdna_get_ubuf() -> can_do_mlock()

Type Parameter Key Value

drivers/infiniband/hw/usnic/usnic_uiom.c usnic_uiom_get_pages() -> can_do_mlock()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

mm/mlock.c __do_sys_mlockall() -> can_do_mlock()

Type Parameter Key Value

mm/mlock.c __do_sys_mlockall() -> can_do_mlock()

Type Parameter Key Value

mm/mlock.c do_mlock() -> can_do_mlock()

Type Parameter Key Value