Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/net/tun.c, line 1490
- drivers/nvme/host/tcp.c, line 323
- fs/fuse/file.c, line 1550
- lib/iov_iter.c, line 686
- net/9p/trans_virtio.c, line 348
Smatch caller information:
net/9p/trans_virtio.c p9_get_mapped_pages() -> iov_iter_single_seg_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | i | 4096-ptr_max |
| PARAM_VALUE | 0 | i->iter_type | 3 |
| DATA_SOURCE | 0 | i | $2 |
| NOSPEC | 0 | i->count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | i->count | 0-u64max |
| USER_DATA | 0 | i->iov_offset | 0-u64max[c] |
| HALF_LOCKED2 | &inode->i_rwsem |
drivers/net/tun.c tun_napi_alloc_frags() -> iov_iter_single_seg_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | i | 4096-ptr_max |
| PARAM_VALUE | 0 | i->nr_segs | 0-18 |
| DATA_SOURCE | 0 | i | $2 |
| FUZZY_MAX | 0 | i->nr_segs | 18 |
| NOSPEC | 0 | i->count | |
| HARD_MAX | 0 | i->nr_segs | 18 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | i->count | 0-18446744073709551614 |
| USER_DATA | 0 | i->iov_offset | 0-u64max[c] |
| LOCK2 | &tfile->napi_mutex | ||
| TYPE_LOCK | (struct tun_file)->napi_mutex |
drivers/nvme/host/tcp.c nvme_tcp_req_cur_length() -> iov_iter_single_seg_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | i | 4096-ptr_max |
| PARAM_VALUE | 0 | i->bvec | 4096-ptr_max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &queue->send_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct nvme_tcp_queue)->send_mutex |
fs/fuse/file.c fuse_get_frag_size() -> iov_iter_single_seg_count()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | i | 4096-ptr_max |
| DATA_SOURCE | 0 | i | $0 |
| NOSPEC | 0 | i->count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | i->count | 0-u64max |
| USER_DATA | 0 | i->iov_offset | 0-u64max[c] |
| HALF_LOCKED2 | &inode->i_rwsem | ||
| HALF_LOCKED2 | &iocb->ki_filp->f_inode->i_rwsem | ||
| HALF_LOCKED2 | &pool->lock |