Defined in 3 files as a function:

No references found in the database

Smatch caller information:

drivers/base/core.c dev_attr_show() -> (struct device_attribute)->show()

Type Parameter Key Value
PARAM_VALUE 1 port_num 4096-ptr_max
PARAM_VALUE 1 port_num->show 1-u64max
PARAM_VALUE 2 unused 1-u64max
CAPPED_DATA 2 unused 1
DATA_SOURCE 2 unused $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/infiniband/core/sysfs.c gid_attr_show() -> (struct ib_port_attribute)->show()

Type Parameter Key Value
PARAM_VALUE 2 unused 4096-ptr_max
PARAM_VALUE 2 unused->show 1-u64max
PARAM_VALUE 3 buf 1-u64max
CAPPED_DATA 3 buf 1
DATA_SOURCE 3 buf $2
CONTAINER 2 -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/infiniband/core/sysfs.c port_attr_show() -> (struct ib_port_attribute)->show()

Type Parameter Key Value
PARAM_VALUE 2 unused 4096-ptr_max
PARAM_VALUE 2 unused->show 1-u64max
PARAM_VALUE 3 buf 1-u64max
CAPPED_DATA 3 buf 1
DATA_SOURCE 3 buf $2
CONTAINER 2 -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