Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- drivers/firmware/efi/efi-pstore.c, line 137
- drivers/firmware/efi/vars.c, line 189
- drivers/rtc/rtc-pm8xxx.c, line 108
- fs/efivarfs/vars.c
Smatch caller information:
drivers/firmware/efi/efi-pstore.c efi_pstore_read_func() -> efivar_get_variable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | vendor | 4096-ptr_max |
| PARAM_VALUE | 2 | attr | 0 |
| PARAM_VALUE | 3 | size | 5933472992510140416 |
| PARAM_VALUE | 3 | *size | 0-4000000 |
| PARAM_VALUE | 4 | data | 16,4096-ptr_max |
| BUF_SIZE | 0 | name | 1-s32max |
| BUF_SIZE | 0 | name | 1-s32max |
| BUF_SIZE | 4 | data | 0-u32max |
| DATA_SOURCE | 0 | name | $1 |
| DATA_SOURCE | 4 | data | r _kmalloc_noprof |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | data | unit_byte |
| LOCK2 | &psi->read_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| HALF_LOCKED2 | _T->lock | ||
| HALF_LOCKED2 | global &efivars_lock | ||
| HALF_LOCKED2 | global &psinfo_lock | ||
| TYPE_LOCK | (struct pstore_info)->read_mutex |
fs/efivarfs/vars.c __efivar_entry_get() -> efivar_get_variable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | vendor | 4096-ptr_max |
| PARAM_VALUE | 2 | attr | 0,6069307269731504128 |
| PARAM_VALUE | 3 | size | 1172135391113969664,3484497353560002560 |
| PARAM_VALUE | 3 | *size | 0-3999996,18446744073709551612-u64max |
| PARAM_VALUE | 4 | data | 0,20,4096-ptr_max |
| BUF_SIZE | 0 | name | 1024 |
| DATA_SOURCE | 2 | attr | $1 |
| DATA_SOURCE | 3 | size | $2 |
| DATA_SOURCE | 4 | data | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| UNITS | 4 | data | unit_byte |
| LOCK2 | global &efivars_lock |
fs/efivarfs/vars.c efivar_entry_set_get_size() -> efivar_get_variable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | name | 4096-ptr_max |
| PARAM_VALUE | 1 | vendor | 4096-ptr_max |
| PARAM_VALUE | 2 | attr | 0 |
| PARAM_VALUE | 3 | size | 4355757630428180480 |
| PARAM_VALUE | 3 | *size | 0 |
| PARAM_VALUE | 4 | data | 0 |
| BUF_SIZE | 0 | name | 1024 |
| DATA_SOURCE | 3 | size | $2 |
| LOCK2 | &inode->i_rwsem | ||
| LOCK2 | global &efivars_lock | ||
| TYPE_LOCK | (struct inode)->i_rwsem |
fs/efivarfs/vars.c efivar_entry_size() -> efivar_get_variable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | vendor | 4096-ptr_max |
| PARAM_VALUE | 2 | attr | 0 |
| PARAM_VALUE | 3 | size | 1172135391113969664,3667911872578355200 |
| PARAM_VALUE | 3 | *size | 0 |
| PARAM_VALUE | 4 | data | 0 |
| BUF_SIZE | 0 | name | 1024 |
| DATA_SOURCE | 3 | size | $1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &efivars_lock |
drivers/rtc/rtc-pm8xxx.c pm8xxx_rtc_read_uefi_offset() -> efivar_get_variable()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | name | 6134054761527746560 |
| PARAM_VALUE | 0 | *name | 0-255 |
| PARAM_VALUE | 1 | vendor | 4096-ptr_max |
| PARAM_VALUE | 2 | attr | 0 |
| PARAM_VALUE | 3 | size | 7412634618884026368 |
| PARAM_VALUE | 3 | *size | 12 |
| PARAM_VALUE | 4 | data | 4096-ptr_max |
| BUF_SIZE | 0 | name | 16 |
| BUF_SIZE | 4 | data | 12 |
| STR_LEN | 0 | name | 7 |
| TERMINATED | 0 | name | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &efivars_lock |