Defined in 25 files as a function:
- drivers/accel/habanalabs/common/sysfs.c, line 305 (as a function)
- drivers/acpi/device_sysfs.c, line 532 (as a function)
- drivers/base/core.c, line 503 (as a function)
- drivers/base/firmware_loader/sysfs_upload.c, line 61 (as a function)
- drivers/cpufreq/amd-pstate.c, line 1815 (as a function)
- drivers/fpga/fpga-mgr.c, line 632 (as a function)
- drivers/fpga/zynqmp-fpga.c, line 80 (as a function)
- drivers/gpu/drm/bridge/ti-sn65dsi86.c, line 482 (as a function)
- drivers/gpu/drm/drm_sysfs.c, line 229 (as a function)
- drivers/misc/genwqe/card_sysfs.c, line 39 (as a function)
- drivers/net/wireless/intel/ipw2x00/ipw2100.c, line 3516 (as a function)
- drivers/net/wireless/intel/ipw2x00/ipw2200.c, line 1513 (as a function)
- drivers/platform/x86/dell/alienware-wmi-wmax.c, line 464 (as a function)
- drivers/platform/x86/hp/hp-bioscfg/spmobj-attributes.c, line 145 (as a function)
- drivers/platform/x86/intel/ifs/sysfs.c, line 44 (as a function)
- drivers/pmdomain/core.c, line 3900 (as a function)
- drivers/regulator/core.c, line 694 (as a function)
- drivers/s390/crypto/vfio_ap_ops.c, line 2304 (as a function)
- drivers/soundwire/sysfs_slave.c, line 227 (as a function)
- drivers/thunderbolt/dma_test.c, line 596 (as a function)
- drivers/usb/usbip/vhci_sysfs.c, line 153 (as a function)
- drivers/virtio/virtio.c, line 30 (as a function)
- drivers/watchdog/watchdog_dev.c, line 475 (as a function)
- fs/ceph/debugfs.c, line 383 (as a function)
- fs/gfs2/sys.c, line 66 (as a function)
Referenced in 3 files:
- drivers/spi/spi-tle62x0.c, line 131
- drivers/usb/usbip/vhci_sysfs.c, line 477
- fs/gfs2/sys.c, line 351
Smatch caller information:
drivers/soc/hisilicon/kunpeng_hccs.c hccs_show() -> (struct kobj_attribute)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 2 | buf | 1-u64max |
| BUF_SIZE | 0 | s | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| BUF_SIZE | 0 | s | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| CAPPED_DATA | 2 | buf | 1 |
| DATA_SOURCE | 0 | s | $0 |
| 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 |
lib/kobject.c kobj_attr_show() -> (struct kobj_attribute)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->show | 1-u64max |
| PARAM_VALUE | 2 | buf | 1-u64max |
| BUF_SIZE | 0 | s | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| BUF_SIZE | 0 | s | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| CAPPED_DATA | 2 | buf | 1 |
| DATA_SOURCE | 0 | s | $0 |
| 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/ocfs2/filecheck.c ocfs2_filecheck_show() -> (struct kobj_attribute)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 0,4096-ptr_max |
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->show | 1-u64max |
| PARAM_VALUE | 2 | buf | 1-u64max |
| BUF_SIZE | 0 | s | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| BUF_SIZE | 0 | s | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| CAPPED_DATA | 2 | buf | 1 |
| DATA_SOURCE | 0 | s | $0 |
| 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 |
drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c xe_hw_engine_class_sysfs_attr_show() -> (struct kobj_attribute)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->show | 1-u64max |
| PARAM_VALUE | 2 | buf | 1-u64max |
| BUF_SIZE | 0 | s | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| BUF_SIZE | 0 | s | 40,136,480,696,928,1128,1160,1392,1624,1848,8192 |
| CAPPED_DATA | 2 | buf | 1 |
| DATA_SOURCE | 0 | s | $0 |
| 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 |
drivers/base/core.c dev_attr_show() -> (struct device_attribute)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | p | 4096-ptr_max |
| PARAM_VALUE | 1 | p->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/gfs2/sys.c gfs2_attr_show() -> (struct gfs2_attr)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 1 | p | 1-u64max |
| CAPPED_DATA | 1 | p | 1 |
| DATA_SOURCE | 1 | p | $2 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
kernel/bpf/bpf_iter.c bpf_seq_read() -> (struct seq_operations)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->buf | 1-u64max |
| PARAM_VALUE | 0 | s->count | 0 |
| PARAM_VALUE | 0 | s->from | 0 |
| PARAM_VALUE | 0 | s->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | s->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | s->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | s->lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | s->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | s->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | s->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | s->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | s->op | 4096-ptr_max |
| PARAM_VALUE | 1 | p | 1-ptr_max |
| BUF_SIZE | 0 | s | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | s | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | s->buf | 32768,u64max |
| CAPPED_DATA | 0 | &s->lock | 1 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| LOCK2 | 0 | &s->lock | |
| TYPE_LOCK | (struct seq_file)->lock |
kernel/bpf/bpf_iter.c bpf_seq_read() -> (struct seq_operations)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->buf | 1-u64max |
| PARAM_VALUE | 0 | s->count | 0 |
| PARAM_VALUE | 0 | s->from | 0 |
| PARAM_VALUE | 0 | s->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | s->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | s->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | s->lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | s->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | s->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | s->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | s->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | s->op | 4096-ptr_max |
| PARAM_VALUE | 1 | p | 1-ptr_max |
| BUF_SIZE | 0 | s | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | s | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | s->buf | 32768,u64max |
| CAPPED_DATA | 0 | &s->lock | 1 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| PARAM_COMPARE | 0 | s->count | <= $0->size |
| LOCK2 | 0 | &s->lock | |
| TYPE_LOCK | (struct seq_file)->lock |
fs/seq_file.c seq_read_iter() -> (struct seq_operations)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->buf | 1-u64max |
| PARAM_VALUE | 0 | s->count | 0 |
| PARAM_VALUE | 0 | s->from | 0 |
| PARAM_VALUE | 0 | s->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | s->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | s->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | s->lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | s->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | s->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | s->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | s->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | s->op | 4096-ptr_max |
| PARAM_VALUE | 1 | p | 1-ptr_max |
| BUF_SIZE | 0 | s | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | s | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | s->buf | (-1)-2147479552 |
| CAPPED_DATA | 0 | &s->lock | 1 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | s->read_pos | 0-13442450941[c] |
| LOCK2 | 0 | &s->lock | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
fs/seq_file.c seq_read_iter() -> (struct seq_operations)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->buf | 1-u64max |
| PARAM_VALUE | 0 | s->count | 0-999999999 |
| PARAM_VALUE | 0 | s->from | 0 |
| PARAM_VALUE | 0 | s->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | s->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | s->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | s->lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | s->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | s->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | s->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | s->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | s->op | 4096-ptr_max |
| PARAM_VALUE | 1 | p | 1-ptr_max |
| BUF_SIZE | 0 | s | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | s | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | s->buf | (-1)-2147479552 |
| CAPPED_DATA | 0 | s->count | 1 |
| CAPPED_DATA | 0 | &s->lock | 1 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| PARAM_COMPARE | 0 | s->count | != $0->size |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | s->read_pos | 0-13442450941[c] |
| LOCK2 | 0 | &s->lock | |
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct seq_file)->lock |
fs/seq_file.c traverse() -> (struct seq_operations)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | s | 4096-ptr_max |
| PARAM_VALUE | 0 | s->buf | 1-u64max |
| PARAM_VALUE | 0 | s->count | 0 |
| PARAM_VALUE | 0 | s->from | 0 |
| PARAM_VALUE | 0 | s->index | 0 |
| PARAM_VALUE | 0 | s->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | s->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | s->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | s->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | s->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | s->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | s->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | s->op | 4096-ptr_max |
| PARAM_VALUE | 1 | p | 1-ptr_max |
| BUF_SIZE | 0 | s | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | s | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | s->buf | (-1)-2147479552 |
| DATA_SOURCE | 0 | s | $0 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &s->lock | |
| TYPE_LOCK | (struct seq_file)->lock |