Defined in 19 files as a prototype:

Defined in 111 files as a member:

Defined in 1 files as a macro:

Defined in 4 files as a function:

Defined in 1 files as a enumerator:

Referenced in 552 files:

Smatch caller information:

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

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

Smatch assignments to (struct sysfs_ops)->show:

drivers/pci/slot.c (null)() -> (struct sysfs_ops)->show [3239599575308480512]

drivers/scsi/iscsi_boot_sysfs.c (null)() -> (struct sysfs_ops)->show [8153486930170036224]

block/elevator.c (null)() -> (struct sysfs_ops)->show [7606918790659665920]

mm/slub.c (null)() -> (struct sysfs_ops)->show [7004749897701560320]

drivers/edac/edac_device_sysfs.c (null)() -> (struct sysfs_ops)->show [4716447429379010560,8176085855441170432,8846488692911837184]

block/blk-mq-sysfs.c (null)() -> (struct sysfs_ops)->show [5523102166277296128]

drivers/md/md.c (null)() -> (struct sysfs_ops)->show [283195205718351872,4588697525061296128]

drivers/firmware/efi/esrt.c (null)() -> (struct sysfs_ops)->show [5185052175924256768]

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_process.c (null)() -> (struct sysfs_ops)->show [525279028962902016,1036579737050066944,3261174320380055552,5512508956147396608]

drivers/hv/vmbus_drv.c (null)() -> (struct sysfs_ops)->show [1402749641645035520]

sound/hda/core/sysfs.c (null)() -> (struct sysfs_ops)->show [7988788300924989440]

drivers/uio/uio.c (null)() -> (struct sysfs_ops)->show [476312445122043904,4263276045579603968]

drivers/base/class.c (null)() -> (struct sysfs_ops)->show [1642957866302599168]

drivers/infiniband/hw/hfi1/sysfs.c (null)() -> (struct sysfs_ops)->show [1433547771749093376]

net/bridge/br_sysfs_if.c (null)() -> (struct sysfs_ops)->show [6005214557810012160]

fs/ext4/sysfs.c (null)() -> (struct sysfs_ops)->show [7005404878209024000]

drivers/infiniband/core/sysfs.c (null)() -> (struct sysfs_ops)->show [2302063194964156416,6251340266245058560]

block/blk-ia-ranges.c (null)() -> (struct sysfs_ops)->show [521237677006561280]

samples/kobject/kset-example.c (null)() -> (struct sysfs_ops)->show [758257916008968192]

block/blk-sysfs.c (null)() -> (struct sysfs_ops)->show [5108287563666956288]

drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c (null)() -> (struct sysfs_ops)->show [4876457681565859840]

drivers/infiniband/hw/usnic/usnic_ib_sysfs.c (null)() -> (struct sysfs_ops)->show [5839556547671080960]

drivers/staging/greybus/audio_manager_module.c (null)() -> (struct sysfs_ops)->show [7278525189058629632]

drivers/cpufreq/cpufreq.c (null)() -> (struct sysfs_ops)->show [8437163925598838784]

drivers/firmware/edd.c (null)() -> (struct sysfs_ops)->show [5985680830959333376]

drivers/firmware/qemu_fw_cfg.c (null)() -> (struct sysfs_ops)->show [3336966726435028992]

drivers/infiniband/hw/mlx4/sysfs.c (null)() -> (struct sysfs_ops)->show [7884554899744419840]

drivers/net/bonding/bond_sysfs_slave.c (null)() -> (struct sysfs_ops)->show [8366659322558914560]

net/core/net-sysfs.c (null)() -> (struct sysfs_ops)->show [145302569607004160,1299694630252400640]

drivers/soc/hisilicon/kunpeng_hccs.c (null)() -> (struct sysfs_ops)->show [8894613997430431744]

fs/f2fs/sysfs.c (null)() -> (struct sysfs_ops)->show [2301797940173856768,2798381179414388736,3459754783332651008,7181264894603517952]

fs/xfs/xfs_error.c (null)() -> (struct sysfs_ops)->show [4453672554844073984]

drivers/base/bus.c (null)() -> (struct sysfs_ops)->show [3502547962156806144,6325173535032688640]

drivers/edac/edac_pci_sysfs.c (null)() -> (struct sysfs_ops)->show [1798146799317245952,8994471660941598720]

drivers/gpu/drm/xe/xe_sriov_pf_sysfs.c (null)() -> (struct sysfs_ops)->show [3170078747676520448,3190058389734293504]

fs/ubifs/sysfs.c (null)() -> (struct sysfs_ops)->show [2783155396330393600]

fs/orangefs/orangefs-sysfs.c (null)() -> (struct sysfs_ops)->show [4332283776926625792]

drivers/dma/ioat/sysfs.c (null)() -> (struct sysfs_ops)->show [412602332935434240]

fs/xfs/xfs_sysfs.c (null)() -> (struct sysfs_ops)->show [8308069565531664384]

arch/x86/kernel/cpu/mce/amd.c (null)() -> (struct sysfs_ops)->show [1152118517984198656]

drivers/base/core.c (null)() -> (struct sysfs_ops)->show [6761469020357795840]

block/blk-crypto-sysfs.c (null)() -> (struct sysfs_ops)->show [7251658222234140672]

drivers/firmware/memmap.c (null)() -> (struct sysfs_ops)->show [469068682130341888]

fs/erofs/sysfs.c (null)() -> (struct sysfs_ops)->show [4512172584567914496]

drivers/vdpa/vdpa_user/vduse_dev.c (null)() -> (struct sysfs_ops)->show [6659982864898695168]

fs/nilfs2/sysfs.c (null)() -> (struct sysfs_ops)->show [15230734071635968,495168525778993152,1316732868732502016,2831511211140788224,3327098825634332672,4914426453131964416,7970011997524959232]

drivers/md/dm-sysfs.c (null)() -> (struct sysfs_ops)->show [4178083161028169728]

drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c (null)() -> (struct sysfs_ops)->show [3257615728771719168,6315555757349498880]

kernel/padata.c (null)() -> (struct sysfs_ops)->show [8147132629815668736]

drivers/gpu/drm/amd/amdgpu/../amdkfd/kfd_topology.c (null)() -> (struct sysfs_ops)->show [1067343997964824576,2768279394431496192,8096923431915532288,8928392513389613056,8934768755764555776]

lib/kobject.c (null)() -> (struct sysfs_ops)->show [5960709429280739328]

drivers/acpi/device_sysfs.c (null)() -> (struct sysfs_ops)->show [4603257941108854784]

fs/ocfs2/filecheck.c (null)() -> (struct sysfs_ops)->show [382982659051577344]

fs/zonefs/sysfs.c (null)() -> (struct sysfs_ops)->show [68692959460564992]

drivers/platform/x86/uv_sysfs.c (null)() -> (struct sysfs_ops)->show [1571979178689875968,2842267291061014528,3686147927733129216]

drivers/gpu/drm/amd/amdgpu/amdgpu_xcp.c (null)() -> (struct sysfs_ops)->show [1396217344621723648]

drivers/cpuidle/sysfs.c (null)() -> (struct sysfs_ops)->show [344880771242795008,6385931518736961536]

drivers/iommu/iommu.c (null)() -> (struct sysfs_ops)->show [80254977056567296]

drivers/vfio/mdev/mdev_sysfs.c (null)() -> (struct sysfs_ops)->show [7498434638332223488]

drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c (null)() -> (struct sysfs_ops)->show [5055931414369386496]

fs/dlm/lockspace.c (null)() -> (struct sysfs_ops)->show [7588293792702795776]

drivers/misc/issei/fw_client.c (null)() -> (struct sysfs_ops)->show [6388099682396524544]

drivers/cpufreq/cpufreq_governor_attr_set.c (null)() -> (struct sysfs_ops)->show [7601218311413710848]

drivers/xen/sys-hypervisor.c (null)() -> (struct sysfs_ops)->show [2663739116820762624]

drivers/firmware/dmi-sysfs.c (null)() -> (struct sysfs_ops)->show [4815005760882012160,8433091286952632320]

fs/gfs2/sys.c (null)() -> (struct sysfs_ops)->show [6343255982664282112]

fs/ocfs2/cluster/masklog.c (null)() -> (struct sysfs_ops)->show [6114557551300382720]

kernel/params.c (null)() -> (struct sysfs_ops)->show [5494494078892601344]

arch/x86/platform/efi/runtime-map.c (null)() -> (struct sysfs_ops)->show [143538000451837952]