Defined in 2 files as a function:
- drivers/net/bonding/bond_sysfs_slave.c, line 124 (as a function)
- drivers/spi/spi.c, line 3318 (as a function)
Referenced in 1 files:
Smatch caller information:
drivers/base/core.c dev_attr_show() -> (struct device_attribute)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | attr | 4096-ptr_max |
| PARAM_VALUE | 1 | attr->show | 1-u64max |
| PARAM_VALUE | 2 | buf | 1-u64max |
| CAPPED_DATA | 2 | buf | 1 |
| DATA_SOURCE | 2 | buf | $2 |
| CONTAINER | 1 | -40+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
fs/sysfs/file.c sysfs_kf_read() -> (struct sysfs_ops)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | buf | 1-u64max |
| BUF_SIZE | 0 | kobj | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| BUF_SIZE | 0 | kobj | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| BUF_SIZE | 1 | attr | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| CAPPED_DATA | 2 | buf | 1 |
| DATA_SOURCE | 0 | kobj | r sysfs_file_kobj |
| DATA_SOURCE | 2 | buf | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
0 sysfs_kf_seq_show() -> (struct sysfs_ops)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kobj | 4096-ptr_max |
| PARAM_VALUE | 2 | buf | 4096-ptr_max |
| BUF_SIZE | 2 | buf | 4096 |