Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/nvdimm/namespace_devs.c __reserve_free_pmem() -> scan_allocate()

Type Parameter Key Value
PARAM_VALUE 0 nd_region 4096-ptr_max
PARAM_VALUE 0 nd_region->mapping 4096-ptr_max
PARAM_VALUE 0 nd_region->ndr_mappings 1-u16max
PARAM_VALUE 1 nd_mapping 4096-ptr_max
PARAM_VALUE 1 nd_mapping->nvdimm 4096-ptr_max
PARAM_VALUE 1 nd_mapping->size 1-u64max
PARAM_VALUE 2 label_id 2691621437179080704
PARAM_VALUE 3 n 1-u64max
CAPPED_DATA 1 nd_mapping->nvdimm 1
CAPPED_DATA 3 n 1
CAPPED_DATA 3 n 1
DATA_SOURCE 0 nd_region r to_nd_region
DATA_SOURCE 3 n r nd_pmem_available_dpa
MEM_ZERO 2 label_id
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/namespace_devs.c grow_dpa_allocation() -> scan_allocate()

Type Parameter Key Value
PARAM_VALUE 0 nd_region 4096-ptr_max
PARAM_VALUE 0 nd_region->mapping 4096-ptr_max
PARAM_VALUE 0 nd_region->ndr_mappings 1-u16max
PARAM_VALUE 1 nd_mapping 4096-ptr_max
PARAM_VALUE 2 label_id 4901586306298814464
CAPPED_DATA 0 nd_region->ndr_mappings 1
DATA_SOURCE 0 nd_region $0
DATA_SOURCE 2 label_id $1
DATA_SOURCE 3 n $2
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex