Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/nvdimm/namespace_devs.c __size_store() -> nd_namespace_pmem_set_resource()
| 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 | nspm | 4096-ptr_max |
| CAPPED_DATA | 0 | nd_region->ndr_mappings | 1 |
| DATA_SOURCE | 0 | nd_region | r to_nd_region |
| DATA_SOURCE | 1 | nspm | r to_nd_namespace_pmem |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 2 | size | 0-140735340806145[c] |
| 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 create_namespace_pmem() -> nd_namespace_pmem_set_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nd_region | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->bb.dev | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->bb.page | 1-u64max |
| PARAM_VALUE | 0 | nd_region->bb.shift | 0 |
| PARAM_VALUE | 0 | nd_region->bb_state | 0,4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->dev.devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->dev.devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->dev.devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->dev.kobj.sd->__parent | 0 |
| PARAM_VALUE | 0 | nd_region->dev.type | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->nd_set | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->ndr_mappings | 1-u16max |
| PARAM_VALUE | 0 | nd_region->num_lanes | s32min-(-1),1-s32max |
| PARAM_VALUE | 1 | nspm | 4096-ptr_max |
| PARAM_VALUE | 1 | nspm->alt_name | 1-u64max |
| PARAM_VALUE | 1 | nspm->id | (-1) |
| PARAM_VALUE | 1 | nspm->nsio.common.dev.parent | 4096-ptr_max |
| PARAM_VALUE | 1 | nspm->nsio.common.dev.parent->devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 1 | nspm->nsio.common.dev.parent->type | 4096-ptr_max |
| PARAM_VALUE | 1 | nspm->nsio.common.dev.type | 8391570224231985152 |
| PARAM_VALUE | 1 | nspm->nsio.res.flags | 512 |
| PARAM_VALUE | 1 | nspm->uuid | 1-u64max |
| BUF_SIZE | 1 | nspm | 1952 |
| BUF_SIZE | 1 | nspm->alt_name | (-1),64 |
| BUF_SIZE | 1 | nspm->uuid | (-1),16 |
| CAPPED_DATA | 0 | nd_region->ndr_mappings | 1 |
| CAPPED_DATA | 0 | nd_region->num_lanes | 1 |
| DATA_SOURCE | 0 | nd_region | $0 |
| DATA_SOURCE | 1 | nspm | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &nd_mapping->lock | ||
| HALF_LOCKED2 | &dev->mutex | ||
| TYPE_LOCK | (struct nd_mapping)->lock |
drivers/nvdimm/namespace_devs.c nd_namespace_pmem_create() -> nd_namespace_pmem_set_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nd_region | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->dev.type | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->ns_seed | 4096-ptr_max |
| PARAM_VALUE | 1 | nspm | 4096-ptr_max |
| PARAM_VALUE | 1 | nspm->id | 0-s32max |
| PARAM_VALUE | 1 | nspm->nsio.common.dev.parent | 4096-ptr_max |
| PARAM_VALUE | 1 | nspm->nsio.common.dev.parent->type | 4096-ptr_max |
| PARAM_VALUE | 1 | nspm->nsio.common.dev.type | 8391570224231985152 |
| PARAM_VALUE | 1 | nspm->nsio.res.flags | 512 |
| PARAM_VALUE | 2 | size | 0 |
| BUF_SIZE | 1 | nspm | 1952 |
| CAPPED_DATA | 0 | nd_region->ns_seed | 1 |
| DATA_SOURCE | 0 | nd_region | $0 |
| DATA_SOURCE | 1 | nspm | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| HALF_LOCKED2 | &dev->mutex |
drivers/nvdimm/namespace_devs.c scan_labels() -> nd_namespace_pmem_set_resource()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nd_region | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->bb.dev | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->bb.page | 1-u64max |
| PARAM_VALUE | 0 | nd_region->bb.shift | 0 |
| PARAM_VALUE | 0 | nd_region->bb_state | 0,4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->dev.devres_head.prev | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->dev.devres_head.prev->next | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->dev.devres_head.prev->next->next | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->dev.kobj.sd->__parent | 0 |
| PARAM_VALUE | 0 | nd_region->dev.kobj.sd->attr.notify_next | 0,426918848001064960 |
| PARAM_VALUE | 0 | nd_region->dev.type | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->mapping | 4096-ptr_max |
| PARAM_VALUE | 0 | nd_region->ndr_mappings | 1-u16max |
| PARAM_VALUE | 0 | nd_region->num_lanes | s32min-(-1),1-s32max |
| PARAM_VALUE | 1 | nspm | 4096-ptr_max |
| PARAM_VALUE | 1 | nspm->nsio.common.dev.type | 8391570224231985152 |
| PARAM_VALUE | 2 | size | 0 |
| BUF_SIZE | 1 | nspm | 1952 |
| CAPPED_DATA | 0 | nd_region->ndr_mappings | 1 |
| CAPPED_DATA | 0 | nd_region->num_lanes | 1 |
| DATA_SOURCE | 0 | nd_region | $0 |
| DATA_SOURCE | 1 | nspm | r _kzalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| LOCK2 | &nd_mapping->lock | ||
| HALF_LOCKED2 | &dev->mutex | ||
| TYPE_LOCK | (struct nd_mapping)->lock |