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 configfs_attribute)->show:

drivers/usb/gadget/function/f_mass_storage.c (null)() -> (struct configfs_attribute)->show [0,4096-ptr_max]

drivers/target/iscsi/iscsi_target_stat.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/nvme/target/pci-epf.c (null)() -> (struct configfs_attribute)->show [5125558568611667968,5497917871065141248,8770493876178632704]

drivers/usb/gadget/function/f_rndis.c (null)() -> (struct configfs_attribute)->show [2161725730463772672,2838978141267451904,4561594188785016832,4809085423999369216,6235253571200860160,6340139332999520256,6343202677975707648]

drivers/gpio/gpio-virtuser.c (null)() -> (struct configfs_attribute)->show [602596532461043712,1125811279306248192,1747959651395514368,2637176240143130624,5733806600074121216,5790298861308710912,5827813974889193472,7459982235505221632]

drivers/usb/gadget/function/f_obex.c (null)() -> (struct configfs_attribute)->show [436992187301265408]

drivers/usb/gadget/function/f_uac1_legacy.c (null)() -> (struct configfs_attribute)->show [3474668812410658816,4188503767452454912,8962820582801371136]

drivers/scsi/qla2xxx/tcm_qla2xxx.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

fs/ocfs2/cluster/heartbeat.c (null)() -> (struct configfs_attribute)->show [758280246630666240,1775022944895406080,3246594162119196672,3561143195494793216,3801122743064133632,7942798945173864448,8086782122111922176]

drivers/hwtracing/stm/p_sys-t.c (null)() -> (struct configfs_attribute)->show [1197310039873777664,4690462532506349568,7903037171321040896,9044639347076407296]

drivers/xen/xen-scsiback.c (null)() -> (struct configfs_attribute)->show [2371760291605409792,3572232489771384832,8255874629623685120]

fs/configfs/dir.c configfs_lookup() -> (struct configfs_attribute)->show [0-u64max]

drivers/pci/endpoint/functions/pci-epf-ntb.c (null)() -> (struct configfs_attribute)->show [635565076326072320,725115039656820736,1757490714696638464,2445760967053266944,3344851287582703616,3957754470946021376,5575411515096465408]

drivers/usb/gadget/function/f_loopback.c (null)() -> (struct configfs_attribute)->show [1446985673662349312,5613910514449506304]

drivers/gpu/drm/vkms/vkms_configfs.c (null)() -> (struct configfs_attribute)->show [189182494585196544,2989822789267795968,3017524724365991936,8665113447231635456]

drivers/usb/gadget/configfs.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/gpio/gpio-sim.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/usb/gadget/function/f_phonet.c (null)() -> (struct configfs_attribute)->show [8430053041645858816]

drivers/usb/gadget/function/f_eem.c (null)() -> (struct configfs_attribute)->show [2701980091195568128,4995821717529825280,5302261072048807936,5898765221914308608]

drivers/hwtracing/stm/core.c stm_unregister_protocol() -> (struct configfs_attribute)->show [min-max]

drivers/usb/gadget/function/f_subset.c (null)() -> (struct configfs_attribute)->show [662523062319906816,5152790481923305472,5868235441962987520,6437716396895158272]

drivers/net/netconsole.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/usb/gadget/function/f_ecm.c (null)() -> (struct configfs_attribute)->show [934518028851929088,2404371699383504896,2692773191022997504,7925820132083765248]

drivers/usb/gadget/function/f_printer.c (null)() -> (struct configfs_attribute)->show [1427123852467257344,6390519779573088256]

kernel/crash_dump_dm_crypt.c (null)() -> (struct configfs_attribute)->show [266185066302595072,2965957635320893440,3603865230906372096,5560984805883244544]

drivers/usb/gadget/function/f_uac1.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

fs/configfs/inode.c configfs_get_name() -> (struct configfs_attribute)->show [0-u64max]

drivers/usb/gadget/function/f_uac2.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/usb/gadget/function/f_tcm.c (null)() -> (struct configfs_attribute)->show [3053459555368255488,6299259893771821056]

drivers/target/target_core_configfs.c (null)() -> (struct configfs_attribute)->show [0,4096-ptr_max]

drivers/target/target_core_configfs.c target_unregister_template() -> (struct configfs_attribute)->show [min-max]

drivers/usb/gadget/function/uvc_configfs.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/most/configfs.c (null)() -> (struct configfs_attribute)->show [0,4096-ptr_max]

drivers/target/target_core_user.c (null)() -> (struct configfs_attribute)->show [0,4096-ptr_max]

drivers/target/target_core_user.c tcmu_module_exit() -> (struct configfs_attribute)->show [min-max]

drivers/target/target_core_user.c tcmu_module_init() -> (struct configfs_attribute)->show [0-u64max]

drivers/usb/gadget/function/f_acm.c (null)() -> (struct configfs_attribute)->show [1565201751533805568,4464859385318150144,8422492693916778496]

drivers/scsi/elx/efct/efct_lio.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/hwtracing/stm/policy.c (null)() -> (struct configfs_attribute)->show [1178291334376464384,2389333490002079744,2797562219560333312,3114764824225386496]

drivers/hwtracing/stm/policy.c get_policy_node_type() -> (struct configfs_attribute)->show [min-max]

lib/fault-inject.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/pci/endpoint/functions/pci-epf-test.c (null)() -> (struct configfs_attribute)->show [1825918996917923840,2532410179170967552,2975455512809000960,5093798443494576128,7620852625118400512,8689612195240484864]

drivers/block/null_blk/main.c (null)() -> (struct configfs_attribute)->show [0,4096-ptr_max]

drivers/target/iscsi/iscsi_target_configfs.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/nvme/target/configfs.c (null)() -> (struct configfs_attribute)->show [0,4096-ptr_max]

drivers/target/target_core_stat.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/thunderbolt/stream.c (null)() -> (struct configfs_attribute)->show [873130360000212992,2602538030796197888,3119754239843155968,4559891536903258112,6109212073555300352,8481060490304942080]

drivers/usb/gadget/function/f_ncm.c (null)() -> (struct configfs_attribute)->show [4489041628770463744,5952444491140243456,7892344610241511424,8064117213032509440,8459509062049521664]

fs/dlm/config.c (null)() -> (struct configfs_attribute)->show [0,4096-ptr_max]

drivers/gpio/gpio-aggregator.c (null)() -> (struct configfs_attribute)->show [877287269016764416,1071881461425885184,2366109487607775232,5235818076925927424,5605231880099950592]

drivers/infiniband/ulp/srpt/ib_srpt.c (null)() -> (struct configfs_attribute)->show [426752472988717056,2074418319897772032,2455499785187389440,5211119333726633984,8174112522243137536,9099576932287791104]

drivers/usb/gadget/function/f_hid.c (null)() -> (struct configfs_attribute)->show [839699376690618368,3678070943447236608,4230164655679438848,4936262578961764352,5871210812625580032,6098964035509792768,6386556407253225472]

samples/configfs/configfs_sample.c (null)() -> (struct configfs_attribute)->show [1223672069619662848,1473660137094426624,2033532741664825344,5852300068100730880,6633654781486149632,6864790092438138880]

fs/ocfs2/cluster/nodemanager.c (null)() -> (struct configfs_attribute)->show [1658020485788360704,1770469968544313344,2090056370963677184,3034576343487549440,3591957375325204480,3840548564022894592,4646652950555963392,7040157861719269376]

drivers/usb/gadget/function/f_midi.c (null)() -> (struct configfs_attribute)->show [79392995025534976,1142331731890552832,1221945743553486848,1275230314967097344,5260769423692488704,5402260367678001152,8626014673802436608]

drivers/target/loopback/tcm_loop.c (null)() -> (struct configfs_attribute)->show [1513302467669622784,3014939012231315456,3620014861920579584,3763234106326974464,6083184688519659520]

drivers/target/target_core_fabric_configfs.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/target/target_core_fabric_configfs.c target_fabric_setup_tpg_base_cit() -> (struct configfs_attribute)->show [0-u64max]

drivers/usb/gadget/function/f_serial.c (null)() -> (struct configfs_attribute)->show [2691210001310969856,7699018189675585536]

drivers/pci/endpoint/functions/pci-epf-vntb.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/target/sbp/sbp_target.c (null)() -> (struct configfs_attribute)->show [2045495025538588672,2398732388663549952,2698142599887527936,6643607355019415552,7943455596068286464]

drivers/infiniband/core/cma_configfs.c (null)() -> (struct configfs_attribute)->show [186624348241141760,1013274845353275392]

drivers/target/tcm_remote/tcm_remote.c (null)() -> (struct configfs_attribute)->show [8820612989161582592]

drivers/acpi/acpi_configfs.c (null)() -> (struct configfs_attribute)->show [0,4096-ptr_max]

drivers/vhost/scsi.c (null)() -> (struct configfs_attribute)->show [3726217053586489344,5100346635225014272,9117823418417471488]

drivers/usb/gadget/function/f_fs.c (null)() -> (struct configfs_attribute)->show [4719122791796207616]

drivers/virt/coco/guest/report.c (null)() -> (struct configfs_attribute)->show [0,4181207361418706944,5498268300945608704,6777667974390390784]

drivers/usb/gadget/function/f_sourcesink.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/pci/endpoint/pci-ep-cfs.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

net/9p/trans_usbg.c (null)() -> (struct configfs_attribute)->show [5953684067833901056]

drivers/usb/gadget/function/f_midi2.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/gpu/drm/xe/xe_configfs.c (null)() -> (struct configfs_attribute)->show [4096-ptr_max]

drivers/target/tcm_fc/tfc_conf.c (null)() -> (struct configfs_attribute)->show [2016548959014711296,4039228241782263808,6836750434378395648,8562738884685664256]