Defined in 1 files as a prototype:
Defined in 49 files as a function:
- arch/arm/mach-omap2/id.c, line 772 (as a function)
- arch/arm/mach-rpc/ecard.c, line 797 (as a function)
- arch/powerpc/kernel/cacheinfo.c, line 655 (as a function)
- arch/sparc/kernel/vio.c, line 129 (as a function)
- arch/x86/kernel/ksysfs.c, line 135 (as a function)
- arch/x86/platform/efi/runtime-map.c, line 33 (as a function)
- drivers/acpi/dock.c, line 537 (as a function)
- drivers/base/cacheinfo.c, line 713 (as a function)
- drivers/char/ipmi/ipmi_si_intf.c, line 1686 (as a function)
- drivers/firmware/memmap.c, line 382 (as a function)
- drivers/fpga/dfl.c, line 294 (as a function)
- drivers/gnss/core.c, line 352 (as a function)
- drivers/input/serio/serio.c, line 330 (as a function)
- drivers/input/touchscreen/exc3000.c, line 306 (as a function)
- drivers/macintosh/macio_sysfs.c, line 59 (as a function)
- drivers/misc/genwqe/card_sysfs.c, line 73 (as a function)
- drivers/misc/tifm_core.c, line 137 (as a function)
- drivers/mmc/core/bus.c, line 32 (as a function)
- drivers/net/ethernet/mellanox/mlx5/core/lag/debugfs.c, line 19 (as a function)
- drivers/net/wwan/wwan_core.c, line 356 (as a function)
- drivers/nvmem/core.c, line 185 (as a function)
- drivers/platform/x86/dell/dell-wmi-sysman/enum-attributes.c, line 114 (as a function)
- drivers/platform/x86/dell/dell-wmi-sysman/int-attributes.c, line 96 (as a function)
- drivers/platform/x86/dell/dell-wmi-sysman/string-attributes.c, line 82 (as a function)
- drivers/platform/x86/hp/hp-bioscfg/enum-attributes.c, line 70 (as a function)
- drivers/platform/x86/hp/hp-bioscfg/int-attributes.c, line 85 (as a function)
- drivers/platform/x86/hp/hp-bioscfg/order-list-attributes.c, line 75 (as a function)
- drivers/platform/x86/hp/hp-bioscfg/string-attributes.c, line 78 (as a function)
- drivers/platform/x86/lenovo/think-lmi.c, line 1073 (as a function)
- drivers/platform/x86/samsung-galaxybook.c, line 917 (as a function)
- drivers/regulator/core.c, line 814 (as a function)
- drivers/s390/cio/css.c, line 305 (as a function)
- drivers/s390/crypto/zcrypt_card.c, line 39 (as a function)
- drivers/siox/siox-core.c, line 384 (as a function)
- drivers/soc/hisilicon/kunpeng_hccs.c, line 911 (as a function)
- drivers/thermal/thermal_sysfs.c, line 29 (as a function)
- drivers/tty/serial/serial_core.c, line 2866 (as a function)
- drivers/usb/core/endpoint.c, line 52 (as a function)
- drivers/usb/typec/class.c, line 206 (as a function)
- drivers/video/backlight/backlight.c, line 226 (as a function)
- drivers/xen/sys-hypervisor.c, line 40 (as a function)
- kernel/events/core.c, line 12630 (as a function)
- kernel/irq/irqdesc.c, line 288 (as a function)
- kernel/reboot.c, line 1268 (as a function)
- mm/damon/sysfs-schemes.c, line 593 (as a function)
- mm/damon/sysfs.c, line 787 (as a function)
- net/atm/atm_sysfs.c, line 14 (as a function)
- net/rfkill/core.c, line 714 (as a function)
- sound/aoa/soundbus/sysfs.c, line 33 (as a function)
Referenced in 1 files:
Smatch caller information:
drivers/soc/hisilicon/kunpeng_hccs.c hccs_show() -> (struct kobj_attribute)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | attr | 4096-ptr_max |
| 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 |
| CAPPED_DATA | 2 | buf | 1 |
| DATA_SOURCE | 0 | kobj | $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 | attr | 4096-ptr_max |
| PARAM_VALUE | 1 | attr->show | 1-u64max |
| 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 |
| CAPPED_DATA | 2 | buf | 1 |
| DATA_SOURCE | 0 | kobj | $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 | kobj | 0,4096-ptr_max |
| PARAM_VALUE | 1 | attr | 4096-ptr_max |
| PARAM_VALUE | 1 | attr->show | 1-u64max |
| 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 |
| CAPPED_DATA | 2 | buf | 1 |
| DATA_SOURCE | 0 | kobj | $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 | attr | 4096-ptr_max |
| PARAM_VALUE | 1 | attr->show | 1-u64max |
| 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 |
| CAPPED_DATA | 2 | buf | 1 |
| DATA_SOURCE | 0 | kobj | $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 | 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 |
drivers/firmware/memmap.c memmap_attr_show() -> (struct memmap_attribute)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kobj | 4096-ptr_max |
| PARAM_VALUE | 1 | attr | 1-u64max |
| CAPPED_DATA | 1 | attr | 1 |
| DATA_SOURCE | 0 | kobj | r to_memmap_entry |
| DATA_SOURCE | 1 | attr | $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 |
drivers/xen/sys-hypervisor.c hyp_sysfs_show() -> (struct hyp_sysfs_attr)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kobj | 4096-ptr_max |
| PARAM_VALUE | 0 | kobj->show | 1-u64max |
| PARAM_VALUE | 1 | attr | 1-u64max |
| CAPPED_DATA | 1 | attr | 1 |
| DATA_SOURCE | 1 | attr | $2 |
| CONTAINER | 0 | -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 |
arch/x86/platform/efi/runtime-map.c map_attr_show() -> (struct map_attribute)->show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | kobj | 4096-ptr_max |
| PARAM_VALUE | 1 | attr | 1-u64max |
| CAPPED_DATA | 1 | attr | 1 |
| DATA_SOURCE | 0 | kobj | r to_map_entry |
| DATA_SOURCE | 1 | attr | $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 | kobj | 4096-ptr_max |
| PARAM_VALUE | 0 | kobj->buf | 1-u64max |
| PARAM_VALUE | 0 | kobj->count | 0 |
| PARAM_VALUE | 0 | kobj->from | 0 |
| PARAM_VALUE | 0 | kobj->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | kobj->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | kobj->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | kobj->lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | kobj->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | kobj->op | 4096-ptr_max |
| PARAM_VALUE | 1 | attr | 1-ptr_max |
| BUF_SIZE | 0 | kobj | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | kobj | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | kobj->buf | 32768,u64max |
| CAPPED_DATA | 0 | &kobj->lock | 1 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| LOCK2 | 0 | &kobj->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 | kobj | 4096-ptr_max |
| PARAM_VALUE | 0 | kobj->buf | 1-u64max |
| PARAM_VALUE | 0 | kobj->count | 0 |
| PARAM_VALUE | 0 | kobj->from | 0 |
| PARAM_VALUE | 0 | kobj->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | kobj->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | kobj->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | kobj->lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | kobj->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | kobj->op | 4096-ptr_max |
| PARAM_VALUE | 1 | attr | 1-ptr_max |
| BUF_SIZE | 0 | kobj | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | kobj | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | kobj->buf | 32768,u64max |
| CAPPED_DATA | 0 | &kobj->lock | 1 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| PARAM_COMPARE | 0 | kobj->count | <= $0->size |
| LOCK2 | 0 | &kobj->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 | kobj | 4096-ptr_max |
| PARAM_VALUE | 0 | kobj->buf | 1-u64max |
| PARAM_VALUE | 0 | kobj->count | 0 |
| PARAM_VALUE | 0 | kobj->from | 0 |
| PARAM_VALUE | 0 | kobj->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | kobj->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | kobj->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | kobj->lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | kobj->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | kobj->op | 4096-ptr_max |
| PARAM_VALUE | 1 | attr | 1-ptr_max |
| BUF_SIZE | 0 | kobj | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | kobj | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | kobj->buf | (-1)-2147479552 |
| CAPPED_DATA | 0 | &kobj->lock | 1 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | kobj->read_pos | 0-13442450941[c] |
| LOCK2 | 0 | &kobj->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 | kobj | 4096-ptr_max |
| PARAM_VALUE | 0 | kobj->buf | 1-u64max |
| PARAM_VALUE | 0 | kobj->count | 0-999999999 |
| PARAM_VALUE | 0 | kobj->from | 0 |
| PARAM_VALUE | 0 | kobj->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | kobj->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | kobj->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | kobj->lock.first_waiter->task->blocked_on | 0 |
| PARAM_VALUE | 0 | kobj->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | kobj->op | 4096-ptr_max |
| PARAM_VALUE | 1 | attr | 1-ptr_max |
| BUF_SIZE | 0 | kobj | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | kobj | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | kobj->buf | (-1)-2147479552 |
| CAPPED_DATA | 0 | kobj->count | 1 |
| CAPPED_DATA | 0 | &kobj->lock | 1 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| PARAM_COMPARE | 0 | kobj->count | != $0->size |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | kobj->read_pos | 0-13442450941[c] |
| LOCK2 | 0 | &kobj->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 | kobj | 4096-ptr_max |
| PARAM_VALUE | 0 | kobj->buf | 1-u64max |
| PARAM_VALUE | 0 | kobj->count | 0 |
| PARAM_VALUE | 0 | kobj->from | 0 |
| PARAM_VALUE | 0 | kobj->index | 0 |
| PARAM_VALUE | 0 | kobj->lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | kobj->lock.first_waiter | 0,4096-ptr_max |
| PARAM_VALUE | 0 | kobj->lock.first_waiter->list.prev->next | 5159360019465732096 |
| PARAM_VALUE | 0 | kobj->lock.osq.tail.counter | 0-s32max |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.owner | (-1) |
| PARAM_VALUE | 0 | kobj->lock.wait_lock.owner_cpu | u32max |
| PARAM_VALUE | 0 | kobj->op | 4096-ptr_max |
| PARAM_VALUE | 1 | attr | 1-ptr_max |
| BUF_SIZE | 0 | kobj | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | kobj | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | kobj->buf | (-1)-2147479552 |
| DATA_SOURCE | 0 | kobj | $0 |
| CONTAINER | 0 | -24-208+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | 0 | &kobj->lock | |
| TYPE_LOCK | (struct seq_file)->lock |