Defined in 3 files as a macro:

Defined in 6 files as a function:

Referenced in 10 files:

Smatch caller information:

drivers/firmware/efi/esrt.c esre_attr_show() -> to_attr()

Type Parameter Key Value
BUF_SIZE 0 attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 0 attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
DATA_SOURCE 0 attr $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/qemu_fw_cfg.c fw_cfg_sysfs_attr_show() -> to_attr()

Type Parameter Key Value
BUF_SIZE 0 attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 0 attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
DATA_SOURCE 0 attr $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/xfs/xfs_error.c xfs_errortag_attr_show() -> to_attr()

Type Parameter Key Value
BUF_SIZE 0 attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 0 attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
DATA_SOURCE 0 attr $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/xfs/xfs_error.c xfs_errortag_attr_store() -> to_attr()

Type Parameter Key Value
BUF_SIZE 0 attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 0 attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
DATA_SOURCE 0 attr $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/xfs/xfs_sysfs.c xfs_sysfs_object_show() -> to_attr()

Type Parameter Key Value
BUF_SIZE 0 attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 0 attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
DATA_SOURCE 0 attr $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/xfs/xfs_sysfs.c xfs_sysfs_object_store() -> to_attr()

Type Parameter Key Value
BUF_SIZE 0 attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 0 attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
DATA_SOURCE 0 attr $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/configfs/file.c __configfs_open_file() -> to_attr()

Type Parameter Key Value
PARAM_VALUE 0 attr 4096-ptr_max
RX_PATH
TASK_NOT_RUNNING
LOCK2 &frag->frag_sem
TYPE_LOCK (struct configfs_fragment)->frag_sem

fs/configfs/file.c to_bin_attr() -> to_attr()

Type Parameter Key Value
PARAM_VALUE 0 attr 4096-ptr_max
PARAM_VALUE 0 attr->d_fsdata 4096-ptr_max
DATA_SOURCE 0 attr $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &frag->frag_sem
TYPE_LOCK (struct configfs_fragment)->frag_sem

drivers/firmware/dmi-sysfs.c dmi_sysfs_attr_show() -> to_attr()

Type Parameter Key Value
BUF_SIZE 0 attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
BUF_SIZE 0 attr 40,136,480,696,928,1128,1160,1392,1624,1848,8192
DATA_SOURCE 0 attr $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