Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 7 files:
- block/blk-mq.c, line 4055
- block/kyber-iosched.c, line 477
- drivers/nvme/target/rdma.c, line 455
- drivers/scsi/fnic/fnic_main.c, line 716
- drivers/scsi/scsi_scan.c, line 248
- drivers/vhost/scsi.c, line 1938
- lib/sbitmap.c
Smatch caller information:
drivers/scsi/fnic/fnic_main.c fnic_nvme_drv_init() -> sbitmap_init_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 1 | depth | 2048 |
| PARAM_VALUE | 2 | shift | (-1) |
| PARAM_VALUE | 3 | flags | 3264 |
| PARAM_VALUE | 4 | node | (-1) |
| PARAM_VALUE | 5 | round_robin | 0 |
| PARAM_VALUE | 6 | alloc_hint | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
block/kyber-iosched.c kyber_init_hctx() -> sbitmap_init_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 3 | flags | 3264 |
| PARAM_VALUE | 5 | round_robin | 0 |
| PARAM_VALUE | 6 | alloc_hint | 0 |
| CAPPED_DATA | 1 | depth | 1 |
| TASK_NOT_RUNNING | |||
| NO_OVERFLOW_SIMPLE | 1 | depth | |
| LOCK2 | &q->elevator_lock | ||
| HALF_LOCKED2 | &q->sysfs_lock | ||
| HALF_LOCKED2 | &set->tag_list_lock | ||
| HALF_LOCKED2 | &set->update_nr_hwq_lock | ||
| TYPE_LOCK | (struct request_queue)->elevator_lock |
block/blk-mq.c blk_mq_alloc_hctx() -> sbitmap_init_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 3 | flags | 76800 |
| PARAM_VALUE | 5 | round_robin | 0 |
| PARAM_VALUE | 6 | alloc_hint | 0 |
| DATA_SOURCE | 4 | node | $2 [m] |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 4 | node | s32min-s32max |
| NO_OVERFLOW_SIMPLE | 1 | depth | |
| HALF_LOCKED2 | &set->tag_list_lock | ||
| HALF_LOCKED2 | &set->update_nr_hwq_lock |
lib/sbitmap.c sbitmap_queue_init_node() -> sbitmap_init_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 2 | shift | (-1) |
| PARAM_VALUE | 3 | flags | 3264 |
| PARAM_VALUE | 6 | alloc_hint | 1 |
| DATA_SOURCE | 1 | depth | $1 |
| DATA_SOURCE | 2 | shift | $2 |
| DATA_SOURCE | 3 | flags | $4 |
| DATA_SOURCE | 4 | node | $5 |
| DATA_SOURCE | 5 | round_robin | $3 |
| BIT_INFO | 5 | round_robin | 0x0,0x0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HOST_DATA | 0 | sb->depth | 0-u32max |
| HOST_DATA | 0 | sb->map_nr | 0-u32max |
| HOST_DATA | 0 | sb->round_robin | 0-1 |
| HOST_DATA | 0 | sb->shift | 0-u32max |
| HOST_DATA | 1 | depth | 0-u32max |
| HOST_DATA | 4 | node | s32min-s32max |
| HOST_DATA | 5 | round_robin | 0-1 |
| NO_OVERFLOW_SIMPLE | 1 | depth | |
| UNITS | 1 | depth | unit_array_size |
| HALF_LOCKED2 | &wq->wq_lock |
drivers/scsi/scsi_scan.c scsi_realloc_sdev_budget_map() -> sbitmap_init_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 1 | depth | 0-4096,2147483648-u32max |
| PARAM_VALUE | 3 | flags | 3072 |
| PARAM_VALUE | 5 | round_robin | 0 |
| PARAM_VALUE | 6 | alloc_hint | 1 |
| CAPPED_DATA | 1 | depth | 1 |
| DATA_SOURCE | 2 | shift | r sbitmap_calculate_shift |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &shost->scan_mutex | ||
| TYPE_LOCK | (struct Scsi_Host)->scan_mutex |
drivers/vhost/scsi.c vhost_scsi_setup_vq_cmds() -> sbitmap_init_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 2 | shift | (-1) |
| PARAM_VALUE | 3 | flags | 3264 |
| PARAM_VALUE | 4 | node | (-1) |
| PARAM_VALUE | 5 | round_robin | 0 |
| PARAM_VALUE | 6 | alloc_hint | 1 |
| DATA_SOURCE | 1 | depth | $1 |
| UNITS | 1 | depth | unit_array_size |
| LOCK2 | &vs->dev.mutex | ||
| TYPE_LOCK | (struct vhost_dev)->mutex |
drivers/nvme/target/rdma.c nvmet_rdma_alloc_rsps() -> sbitmap_init_node()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | sb | 4096-ptr_max |
| PARAM_VALUE | 1 | depth | 2-131072 |
| PARAM_VALUE | 2 | shift | (-1) |
| PARAM_VALUE | 3 | flags | 3264 |
| PARAM_VALUE | 4 | node | (-1) |
| PARAM_VALUE | 5 | round_robin | 0 |
| PARAM_VALUE | 6 | alloc_hint | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &id_priv->handler_mutex | ||
| HALF_LOCKED2 | &listen_id->handler_mutex |