Defined in 3 files as a function:

Referenced in 11 files:

Smatch caller information:

drivers/nvdimm/dax_devs.c nd_dax_create() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->mutex

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

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
DATA_SOURCE 0 dev $0
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 nd_namespace_pmem_create() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->mutex

drivers/nvdimm/namespace_devs.c scan_labels() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->type 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &nd_mapping->lock
HALF_LOCKED2 &dev->mutex
TYPE_LOCK (struct nd_mapping)->lock

drivers/nvdimm/pfn_devs.c nd_pfn_create() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->mutex

drivers/nvdimm/pfn_devs.c nd_pfn_validate() -> is_memory()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING
UNITS 0 dev unit_byte
HALF_LOCKED2 &dev->mutex

drivers/nvdimm/region_devs.c nd_region_to_nstype() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex

drivers/nvdimm/region_devs.c region_size() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/region_devs.c region_visible() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->type 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/nvdimm/region_devs.c region_visible() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->type 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/nvdimm/region_devs.c region_visible() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->type 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/nvdimm/region_devs.c region_visible() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->type 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/nvdimm/region_devs.c region_visible() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->type 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING

drivers/nvdimm/region_devs.c set_cookie_show() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->type 4096-ptr_max
DATA_SOURCE 0 dev $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/nvdimm/badrange.c nvdimm_badblocks_populate() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->mutex

drivers/nvdimm/bus.c nvdimm_clear_badblocks_region() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 1-u64max
DATA_SOURCE 0 dev $0

drivers/nvdimm/bus.c to_nd_device_type() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 0 dev->type 0-747061304436203519,747061304436203521-u64max
DATA_SOURCE 0 dev $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &of->mutex

drivers/nvdimm/region.c nd_region_notify() -> is_memory()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
TYPE_LOCK (struct device)->mutex

drivers/acpi/resource.c acpi_dev_process_resource() -> (struct res_proc_context)->preproc()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-18446744073709547519
PARAM_VALUE 0 dev->length 1-u32max
PARAM_VALUE 0 dev->type 0-25
BUF_SIZE 0 dev s32min,(-10),(-1),1-s32max
BUF_SIZE 0 dev s32min,(-10),(-1),1-s32max
BUF_SIZE 1 not_used 3-6,8,12,16,24,32,56,64,80,112,136,256,504,1616,1688,2360,2864-5728
CAPPED_DATA 0 dev 1
DATA_SOURCE 0 dev $0
CONTAINER 1 *(-8+16) $(-1)
RX_PATH
TASK_NOT_RUNNING