Defined in 6 files as a function:
- drivers/block/amiflop.c, line 692 (as a function)
- drivers/firmware/dmi-sysfs.c, line 537 (as a function)
- drivers/platform/chrome/wilco_ec/debugfs.c, line 135 (as a function)
- drivers/staging/greybus/raw.c, line 306 (as a function)
- tools/testing/selftests/net/skf_net_off.c, line 167 (as a function)
- tools/testing/selftests/powerpc/signal/sig_sc_double_restart.c, line 49 (as a function)
Referenced in 5 files:
- drivers/block/amiflop.c, line 1445
- drivers/platform/chrome/wilco_ec/debugfs.c, line 156
- drivers/staging/greybus/raw.c, line 341
- tools/testing/selftests/net/skf_net_off.c, line 234
- tools/testing/selftests/powerpc/signal/sig_sc_double_restart.c, line 127
Smatch caller information:
fs/read_write.c vfs_read() -> (struct file_operations)->read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op | 4096-ptr_max |
| PARAM_VALUE | 0 | file->f_op->read | 1-u64max |
| PARAM_VALUE | 2 | count | 0-1000000000,2147479552 |
| PARAM_VALUE | 3 | *ppos | 0-1000000000 |
| BUF_SIZE | 3 | ppos | (-1),8 |
| BUF_SIZE | 3 | ppos | (-1),8 |
| CAPPED_DATA | 1 | buf | 1 |
| DATA_SOURCE | 0 | file | $0 |
| DATA_SOURCE | 1 | buf | $1 |
| DATA_SOURCE | 2 | count | $2 [m] |
| DATA_SOURCE | 3 | ppos | $3 |
| FUZZY_MAX | 2 | count | 2147479552 |
| CONTAINER | 0 | -24-80+0 | $(-1) |
| BIT_INFO | 0 | file->f_mode | 0x20001,0xffffffff |
| USER_DATA | 1 | buf | 0-u64max[c] |
| USER_DATA | 2 | count | 0-1000000000 |
| USER_DATA | 3 | *ppos | 0-1000000000 |
| USER_PTR | 3 | ppos |
fs/sysfs/file.c sysfs_kf_bin_read() -> (struct bin_attribute)->read()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 2 | count | 4096-ptr_max |
| PARAM_VALUE | 2 | count->read | 1-u64max |
| PARAM_VALUE | 3 | ppos | 1-u64max |
| PARAM_VALUE | 5 | count | 1-4096 |
| BUF_SIZE | 1 | buf | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| BUF_SIZE | 1 | buf | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| BUF_SIZE | 2 | count | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| BUF_SIZE | 2 | count | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| CAPPED_DATA | 5 | count | 1 |
| CAPPED_DATA | 5 | count | 1 |
| DATA_SOURCE | 1 | buf | r sysfs_file_kobj |
| DATA_SOURCE | 3 | ppos | $1 |
| DATA_SOURCE | 4 | pos | $3 |
| DATA_SOURCE | 5 | count | $2 [m] |
| CONTAINER | 2 | -64+0 | $(-1) |
| PARAM_COMPARE | 3 | ppos | >= $5 |
| BIT_INFO | 5 | count | 0x0,0x7fffffffffffffff |
| BIT_INFO | 5 | count | 0x0,0x7fffffffffffffff |
| NOSPEC | 4 | pos | |
| NOSPEC | 4 | pos | |
| NOSPEC | 5 | count | |
| NOSPEC | 5 | count | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 4 | pos | 0-4095 |
| USER_DATA | 5 | count | 1-4096 |
| BYTE_COUNT | 3 | ==ppos5 | 8050 |
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |