Documented in 1 files:

Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 4 files:

Smatch caller information:

drivers/md/md.c rdev_set_badblocks() -> badblocks_set()

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

drivers/md/md.c super_1_load() -> badblocks_set()

Type Parameter Key Value
PARAM_VALUE 0 bb 4096-ptr_max
PARAM_VALUE 0 bb->shift 0-255
PARAM_VALUE 2 sectors 0-s32max,18446744071562067968-u64max
PARAM_VALUE 3 acknowledged 1
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &cinfo->recv_mutex
HALF_LOCKED2 &mddev->reconfig_mutex
HALF_LOCKED2 &of->mutex

block/badblocks.c badblocks_store() -> badblocks_set()

Type Parameter Key Value
PARAM_VALUE 0 bb 1-u64max
PARAM_VALUE 2 sectors 1-s32max
PARAM_VALUE 3 acknowledged 0-1
DATA_SOURCE 0 bb $0
FUZZY_MAX 3 acknowledged 1
HARD_MAX 3 acknowledged 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &mddev->reconfig_mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

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

Type Parameter Key Value
PARAM_VALUE 0 bb 1344,4096-ptr_max
PARAM_VALUE 3 acknowledged 1
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/badrange.c set_badblock() -> badblocks_set()

Type Parameter Key Value
PARAM_VALUE 0 bb 4096-ptr_max
PARAM_VALUE 2 sectors 0-s32max
PARAM_VALUE 3 acknowledged 1
CAPPED_DATA 2 sectors 1
DATA_SOURCE 0 bb $0
DATA_SOURCE 1 s $1
DATA_SOURCE 2 sectors $2
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 &dev->mutex