Defined in 2 files as a function:

Referenced in 2 files:

Smatch caller information:

fs/sysfs/file.c sysfs_kf_bin_read() -> (struct bin_attribute)->read()

Type Parameter Key Value
PARAM_VALUE 0 filp 4096-ptr_max
PARAM_VALUE 2 bin_attr 4096-ptr_max
PARAM_VALUE 2 bin_attr->read 1-u64max
PARAM_VALUE 3 buf 1-u64max
PARAM_VALUE 5 count 1-4096
BUF_SIZE 1 kobp 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 1 kobp 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 2 bin_attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 2 bin_attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
CAPPED_DATA 5 count 1
CAPPED_DATA 5 count 1
DATA_SOURCE 1 kobp r sysfs_file_kobj
DATA_SOURCE 3 buf $1
DATA_SOURCE 4 pos $3
DATA_SOURCE 5 count $2 [m]
CONTAINER 2 -64+0 $(-1)
PARAM_COMPARE 3 buf >= $5
BIT_INFO 5 count 0x0,0x7fffffffffffffff
BIT_INFO 5 count 0x0,0x7fffffffffffffff
NOSPEC 4 pos
NOSPEC 4 pos
NOSPEC 5 count
NOSPEC 5 count
RX_PATH
TASK_NOT_RUNNING
USER_DATA 4 pos 0-4095
USER_DATA 5 count 1-4096
BYTE_COUNT 3 ==buf5 8050
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

drivers/firmware/google/memconsole.c memconsole_read() -> memconsole_read ptr memconsole_read_func()

Type Parameter Key Value
PARAM_VALUE 0 filp 1-u64max
PARAM_VALUE 2 bin_attr 1-4096
CAPPED_DATA 2 bin_attr 1
CAPPED_DATA 2 bin_attr 1
DATA_SOURCE 0 filp $3
DATA_SOURCE 1 kobp $4
DATA_SOURCE 2 bin_attr $5
PARAM_COMPARE 0 filp == $2
BIT_INFO 2 bin_attr 0x0,0x7fffffffffffffff
NOSPEC 1 kobp
NOSPEC 1 kobp
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 kobp 0-4095
USER_DATA 2 bin_attr 1-4096[c]
BYTE_COUNT 0 ==filp2 8050
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex