Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/nvdimm/label.c __pmem_label_update() -> nd_label_write_index()

Type Parameter Key Value
PARAM_VALUE 0 ndd 4096-ptr_max
PARAM_VALUE 0 ndd->ns_next 0-s32max
PARAM_VALUE 1 index 0-s32max
PARAM_VALUE 3 flags 0
BUF_SIZE 0 ndd s32min-(-2),1-s32max
BUF_SIZE 0 ndd s32min-(-2),1-s32max
DATA_SOURCE 0 ndd r to_ndd
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->mutex
LOCK2 &nd_mapping->lock
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct device)->mutex
TYPE_LOCK (struct kernfs_open_file)->mutex
TYPE_LOCK (struct nd_mapping)->lock

drivers/nvdimm/label.c del_labels() -> nd_label_write_index()

Type Parameter Key Value
PARAM_VALUE 0 ndd 4096-ptr_max
PARAM_VALUE 0 ndd->ns_next 0-s32max
PARAM_VALUE 1 index 0-s32max
PARAM_VALUE 3 flags 0
BUF_SIZE 0 ndd s32min-(-2),1-s32max
BUF_SIZE 0 ndd s32min-(-2),1-s32max
DATA_SOURCE 0 ndd r to_ndd
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/label.c init_labels() -> nd_label_write_index()

Type Parameter Key Value
PARAM_VALUE 0 ndd 4096-ptr_max
PARAM_VALUE 0 ndd->nsarea.config_size 0-u32max
PARAM_VALUE 1 index 0-1
PARAM_VALUE 2 seq 2-3
PARAM_VALUE 3 flags 1
BUF_SIZE 0 ndd s32min-(-2),1-s32max
BUF_SIZE 0 ndd s32min-(-2),1-s32max
DATA_SOURCE 0 ndd r to_ndd
FUZZY_MAX 1 index 1
HARD_MAX 1 index 1
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