Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 6 files:

Smatch caller information:

drivers/nvdimm/pmem.c pmem_clear_bb() -> badblocks_clear()

Type Parameter Key Value
PARAM_VALUE 0 bb 4096-ptr_max
PARAM_VALUE 0 bb->count s32min-(-1),1-s32max
PARAM_VALUE 1 s 0-36028797018963967
PARAM_VALUE 2 sectors 1-8388607
DATA_SOURCE 1 s $1
DATA_SOURCE 2 sectors $2
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HOST_DATA 1 s 0-36028797018963967[c]
USER_DATA 1 s 0-36028797018963967[c]
USER_DATA 2 sectors 1-8388607[c]

drivers/md/md.c rdev_clear_badblocks() -> badblocks_clear()

Type Parameter Key Value
PARAM_VALUE 0 bb 4096-ptr_max
PARAM_VALUE 2 sectors 0-s32max,18446744071562067968-u64max
DATA_SOURCE 1 s $1
DATA_SOURCE 2 sectors $2
TASK_NOT_RUNNING
UNITS 1 s unit_byte
UNITS 2 sectors unit_byte

drivers/nvdimm/claim.c nsio_rw_bytes() -> badblocks_clear()

Type Parameter Key Value
PARAM_VALUE 0 bb 4096-ptr_max
PARAM_VALUE 0 bb->count s32min-(-1),1-s32max
PARAM_VALUE 1 s 0-36028797018963967
PARAM_VALUE 2 sectors 0-8388607
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/block/null_blk/main.c null_handle_badblocks() -> badblocks_clear()

Type Parameter Key Value
PARAM_VALUE 0 bb 4096-ptr_max
PARAM_VALUE 0 bb->count s32min-(-1),1-s32max
PARAM_VALUE 0 bb->shift s32min-(-2),0-s32max
BUF_SIZE 0 bb 192
CAPPED_DATA 0 bb->count 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL

drivers/block/null_blk/main.c nullb_device_badblocks_store() -> badblocks_clear()

Type Parameter Key Value
PARAM_VALUE 0 bb 1344,4096-ptr_max
CAPPED_DATA 1 s 1
CAPPED_DATA 1 s 1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 s 0-u64max
NO_OVERFLOW_SIMPLE 1 s
LOCK2 &buffer->mutex
LOCK2 &frag->frag_sem
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct configfs_buffer)->mutex
TYPE_LOCK (struct configfs_fragment)->frag_sem

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

Type Parameter Key Value
PARAM_VALUE 0 bb 4096-ptr_max
NOCHECK_CALL