Defined in 1 files as a function:
Referenced in 1 files:
Smatch caller information:
drivers/acpi/battery.c battery_hook_add_battery() -> (struct acpi_battery_hook)->add_battery()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | battery | 4096-ptr_max |
| PARAM_VALUE | 1 | hook | 4096-ptr_max |
| BUF_SIZE | 0 | battery | 2248 |
| BUF_SIZE | 0 | battery | 2248 |
| CAPPED_DATA | 0 | battery->desc->num_properties | 1 |
| CAPPED_DATA | 1 | &hook->list | 1 |
| CONTAINER | 1 | -8+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | _T->lock | ||
| LOCK2 | global &hook_mutex |
drivers/acpi/battery.c battery_hook_register() -> (struct acpi_battery_hook)->add_battery()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 1 | hook | 4096-ptr_max |
| PARAM_VALUE | 1 | hook->list.next | 4096-ptr_max |
| PARAM_VALUE | 1 | hook->list.prev | 5198287205007900672 |
| DATA_SOURCE | 1 | hook | $0 |
| CONTAINER | 1 | -8+0 | $(-1) |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | global &hook_mutex | ||
| HALF_LOCKED2 | global &component_mutex |