Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/block/nbd.c nbd_clear_sock() -> sock_shutdown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nbd | 4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config | 4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | nbd->config_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | nbd->config_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->config_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | nbd->config_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | nbd->disk->part0->bd_device.kobj.parent->sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | nbd->disk->part0->bd_device.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | nbd->disk->part0->bd_device.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | nbd->disk->part0->bd_mapping->host->i_sb->s_export_op->get_parent | 0,8931,264940071972966400,291591359766798336,565128213429456896,893189740598853632,1241177127089143808,1474696885321834496,1812477326828269568,1893665921928286208,2210088671756947456,2437012291923775488,2483979068402987008-s64max |
| PARAM_VALUE | 0 | nbd->disk->queue->mq_kobj->sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | nbd->disk->queue->tag_set->update_nr_hwq_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | nbd->disk->queue->tag_set->update_nr_hwq_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | nbd->disk->queue_kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | nbd->tag_set.update_nr_hwq_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | nbd->tag_set.update_nr_hwq_lock.first_waiter->type | 0-1 |
| BUF_SIZE | 0 | nbd | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | nbd | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | nbd->backend | (-1)-65536 |
| DATA_SOURCE | 0 | nbd | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | nbd->config->blksize_bits | 512-65536 |
| USER_DATA | 0 | nbd->config->bytesize | 0-s64max |
| USER_DATA | 0 | nbd->disk->part0->bd_nr_sectors | 0-18014398509481983 |
| USER_DATA | 0 | nbd->disk->queue->limits.atomic_write_max_sectors | 0-8388607[c] |
| USER_DATA | 0 | nbd->disk->queue->limits.discard_granularity | 512-u32max[c] |
| USER_DATA | 0 | nbd->disk->queue->limits.io_min | 512-u32max[c] |
| USER_DATA | 0 | nbd->disk->queue->limits.logical_block_size | 512-65536[c] |
| USER_DATA | 0 | nbd->disk->queue->limits.physical_block_size | 512-u32max[c] |
| USER_DATA | 0 | *nbd->backend | 0-255 |
| UNITS | 0 | nbd | unit_byte |
| USER_PTR | 0 | nbd->backend | |
| LOCK2 | 0 | &nbd->config_lock | |
| TYPE_LOCK | (struct nbd_device)->config_lock |
drivers/block/nbd.c nbd_disconnect_and_put() -> sock_shutdown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nbd | 4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config | 4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | nbd->config_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | nbd->config_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->config_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | nbd->config_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | nbd->disk | 4096-ptr_max |
| BUF_SIZE | 0 | nbd | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | nbd | s32min-(-1),1-s32max |
| CAPPED_DATA | 0 | nbd->config->num_connections | 1 |
| CAPPED_DATA | 0 | &nbd->config_lock | 1 |
| DATA_SOURCE | 0 | nbd | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | nbd | unit_byte |
| LOCK2 | 0 | &nbd->config_lock | |
| HALF_LOCKED2 | &disk->open_mutex | ||
| TYPE_LOCK | (struct nbd_device)->config_lock |
drivers/block/nbd.c nbd_handle_cmd() -> sock_shutdown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nbd | 4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config | 4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config->num_connections | (-2147483647)-s32max |
| PARAM_VALUE | 0 | nbd->config->socks | 4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config_refs.refs.counter | (-1073741824),0-s32max |
| CAPPED_DATA | 0 | nbd->config->num_connections | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | nbd | unit_byte |
| LOCK2 | &cmd->lock | ||
| HALF_LOCKED2 | __tag_set->srcu | ||
| HALF_LOCKED2 | rcu_read | ||
| TYPE_LOCK | (struct nbd_cmd)->lock |
drivers/block/nbd.c nbd_start_device() -> sock_shutdown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nbd | 4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config | 4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config->socks | 1-u64max |
| PARAM_VALUE | 0 | nbd->config_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | nbd->config_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | nbd->config_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->config_lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | nbd->config_lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | nbd->disk | 4096-ptr_max |
| PARAM_VALUE | 0 | nbd->disk->part0->bd_device.kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | nbd->disk->part0->bd_device.power.wakeirq->status | 0-4294967295 |
| PARAM_VALUE | 0 | nbd->disk->queue->mq_kobj->sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | nbd->disk->queue->tag_set->update_nr_hwq_lock.first_waiter->handoff_set | 0-1 |
| PARAM_VALUE | 0 | nbd->disk->queue->tag_set->update_nr_hwq_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | nbd->disk->queue_kobj.sd->attr.open->nr_mmapped | 0-4294967295 |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | nbd->tag_set.update_nr_hwq_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->tag_set.update_nr_hwq_lock.first_waiter->handoff_set | 1 |
| PARAM_VALUE | 0 | nbd->tag_set.update_nr_hwq_lock.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | nbd->tag_set.update_nr_hwq_lock.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | nbd->tag_set.update_nr_hwq_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | nbd->tag_set.update_nr_hwq_lock.osq.tail.counter | 0-s32max |
| BUF_SIZE | 0 | nbd | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | nbd | s32min-(-1),1-s32max |
| BUF_SIZE | 0 | nbd->backend | (-1),1-65536 |
| CAPPED_DATA | 0 | &nbd->config_lock | 1 |
| CAPPED_DATA | 0 | &nbd->tag_set | 1 |
| DATA_SOURCE | 0 | nbd | $0 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| USER_DATA | 0 | *nbd->backend | 0-255 |
| NO_OVERFLOW_SIMPLE | 0 | nbd->tag_set.shared_tags->bitmap_tags.sb.depth | |
| NO_OVERFLOW_SIMPLE | 0 | nbd->tag_set.shared_tags->breserved_tags.sb.depth | |
| UNITS | 0 | nbd | unit_byte |
| USER_PTR | 0 | nbd->backend | |
| LOCK2 | 0 | &nbd->config_lock | |
| TYPE_LOCK | (struct nbd_device)->config_lock |
drivers/block/nbd.c nbd_start_device_ioctl() -> sock_shutdown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nbd | 4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config | 4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config->bytesize | 0-s64max |
| PARAM_VALUE | 0 | nbd->config->dbg_dir | 4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config->recv_threads.counter | s32min-(-1),1-s32max |
| PARAM_VALUE | 0 | nbd->config->recv_wq.lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->config->socks | 1-u64max |
| PARAM_VALUE | 0 | nbd->config_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | nbd->config_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | nbd->config_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | nbd->config_lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->disk->part0->bd_nr_sectors | 0-18014398509481983 |
| PARAM_VALUE | 0 | nbd->disk->part0->bd_size_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->disk->queue->io_lockdep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.atomic_write_boundary_sectors | 0-8388607 |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.atomic_write_max_sectors | 0-8388607 |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.atomic_write_unit_max | 0-1171456 |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.atomic_write_unit_min | 0-1171456 |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.discard_granularity | 0,512-u32max |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.dma_alignment | 1-u32max |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.io_min | 512-u32max |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.logical_block_size | 512-65536 |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.max_discard_segments | 1-u16max |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.max_fast_segment_size | 0-4096 |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.max_segment_size | 1-u32max |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.max_segments | 1-u16max |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.max_user_sectors | 0,8-u32max |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.physical_block_size | 512-u32max |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.seg_boundary_mask | 1-u64max |
| PARAM_VALUE | 0 | nbd->disk->queue->limits.zone_write_granularity | 512-u32max |
| PARAM_VALUE | 0 | nbd->disk->queue->limits_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->disk->queue->limits_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | nbd->disk->queue->limits_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | nbd->disk->queue->limits_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->disk->queue->limits_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | nbd->disk->queue->limits_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | nbd->disk->queue->limits_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | nbd->disk->queue->mq_freeze_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->disk->queue->mq_freeze_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | nbd->disk->queue->mq_freeze_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | nbd->disk->queue->mq_freeze_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->disk->queue->mq_freeze_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | nbd->disk->queue->mq_freeze_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | nbd->disk->queue->mq_freeze_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | nbd->disk->queue->mq_freeze_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | nbd->disk->queue->q_lockdep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter->list.prev->prev | 5159360019465732096 |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter->task->blocked_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter->task->blocked_lock.owner | (-1) |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter->task->blocked_lock.owner_cpu | 4294967295 |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter->task->blocked_lock.raw_lock.val.counter | s32min-s32max |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.first_waiter->task->usage.refs.counter | s32min-s32max |
| PARAM_VALUE | 0 | nbd->tag_set.tag_list_lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | nbd->tag_set.update_nr_hwq_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | nbd->tag_set.update_nr_hwq_lock.first_waiter->handoff_set | 1 |
| PARAM_VALUE | 0 | nbd->tag_set.update_nr_hwq_lock.first_waiter->list.next | 2624917664208203776 |
| PARAM_VALUE | 0 | nbd->tag_set.update_nr_hwq_lock.first_waiter->list.prev | 2624917664208203776 |
| PARAM_VALUE | 0 | nbd->tag_set.update_nr_hwq_lock.first_waiter->type | 0-1 |
| PARAM_VALUE | 0 | nbd->tag_set.update_nr_hwq_lock.osq.tail.counter | 0-s32max |
| BUF_SIZE | 0 | nbd | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | nbd | s32min-(-2),1-s32max |
| CAPPED_DATA | 0 | nbd->config->num_connections | 1 |
| CAPPED_DATA | 0 | &nbd->config_lock | 1 |
| DATA_SOURCE | 0 | nbd | $0 |
| CAPABLE | 0 | 21 | |
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | nbd | unit_byte |
drivers/block/nbd.c nbd_xmit_timeout() -> sock_shutdown()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | nbd | 4096-ptr_max |
| PARAM_VALUE | 0 | nbd->config_refs.refs.counter | (-1073741824),0-s32max |
| PARAM_VALUE | 0 | nbd->tag_set.timeout | 1-u32max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| NOCHECK_CALL | |||
| UNITS | 0 | nbd | unit_byte |
| HALF_LOCKED2 | &khd->lock |