Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/firmware/efi/efi-pstore.c efi_pstore_write() -> efivar_set_variable_locked()

Type Parameter Key Value
PARAM_VALUE 0 name 4096-ptr_max
PARAM_VALUE 1 vendor 4096-ptr_max
PARAM_VALUE 2 attr 7
PARAM_VALUE 5 nonblocking 1
BUF_SIZE 0 name 132
BUF_SIZE 4 data 1024-s32max
RX_PATH
TASK_NOT_RUNNING
USER_DATA 3 data_size 1-1000000000[c]
UNITS 3 data_size unit_byte
UNITS 4 data unit_byte
LOCK2 global &efivars_lock
HALF_LOCKED2 flags
HALF_LOCKED2 global &pmsg_lock
HALF_LOCKED2 global &psinfo->buf_lock
HALF_LOCKED2 rcu_read

fs/efivarfs/vars.c efivar_entry_delete() -> efivar_set_variable_locked()

Type Parameter Key Value
PARAM_VALUE 1 vendor 4096-ptr_max
PARAM_VALUE 2 attr 0
PARAM_VALUE 3 data_size 0
PARAM_VALUE 4 data 0
PARAM_VALUE 5 nonblocking 0
BUF_SIZE 0 name 1024
RX_PATH
TASK_NOT_RUNNING
LOCK2 &target->i_rwsem
LOCK2 global &efivars_lock
HALF_LOCKED2 &dentry->d_lockref.lock
HALF_LOCKED2 &dentry->d_sb->s_vfs_rename_mutex
HALF_LOCKED2 &dir->d_inode->i_rwsem
HALF_LOCKED2 &dir->i_rwsem
TYPE_LOCK (struct inode)->i_rwsem

fs/efivarfs/vars.c efivar_entry_set_get_size() -> efivar_set_variable_locked()

Type Parameter Key Value
PARAM_VALUE 0 name 4096-ptr_max
PARAM_VALUE 1 vendor 4096-ptr_max
PARAM_VALUE 2 attr 0-126
PARAM_VALUE 3 data_size 0-999999996,2147479548
PARAM_VALUE 4 data 1-ptr_max
PARAM_VALUE 5 nonblocking 0
BUF_SIZE 0 name 1024
BUF_SIZE 0 name 1024
BUF_SIZE 1 vendor 16
BUF_SIZE 4 data s32min-999999996,2147479548
BUF_SIZE 4 data s32min-999999996,2147479548
CAPPED_DATA 3 data_size 1
DATA_SOURCE 2 attr $1
DATA_SOURCE 4 data $3
NOSPEC 3 data_size
NOSPEC 3 data_size
USER_DATA 2 attr 0-126
USER_DATA 3 data_size 0-999999996[c]
USER_DATA 4 *data s64min-s64max
USER_PTR 4 data
LOCK2 &inode->i_rwsem
LOCK2 global &efivars_lock
TYPE_LOCK (struct inode)->i_rwsem

drivers/firmware/efi/vars.c efivar_set_variable() -> efivar_set_variable_locked()

Type Parameter Key Value
PARAM_VALUE 1 vendor 4096-ptr_max
PARAM_VALUE 2 attr 7
PARAM_VALUE 3 data_size 0,12
PARAM_VALUE 4 data 0,4096-ptr_max
PARAM_VALUE 5 nonblocking 0
BUF_SIZE 0 name 2-134
BUF_SIZE 0 name 2-134
BUF_SIZE 4 data (-1),12
BUF_SIZE 4 data (-1),12
DATA_SOURCE 0 name $0
DATA_SOURCE 1 vendor $1
DATA_SOURCE 2 attr $2
DATA_SOURCE 3 data_size $3
DATA_SOURCE 4 data $4
STR_LEN 0 name (-1),7
STR_LEN 0 name (-1),7
HARD_MAX 3 data_size 12
RX_PATH
TASK_NOT_RUNNING
UNITS 3 data_size unit_byte
LOCK2 global &efivars_lock
HALF_LOCKED2 &target->i_rwsem
HALF_LOCKED2 _T->lock