Defined in 1 files as a prototype:
Defined in 2 files as a function:
- drivers/power/supply/power_supply_sysfs.c, line 607 (as a function)
- include/linux/power_supply.h, line 1030 (as a function)
Referenced in 2 files:
Smatch caller information:
drivers/platform/x86/lenovo/thinkpad_acpi.c charge_behaviour_show() -> power_supply_charge_behaviour_show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 2 | current_behaviour | 0-1,3 |
| PARAM_VALUE | 3 | buf | 1-u64max |
| CAPPED_DATA | 3 | buf | 1 |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 3 | buf | $2 |
| FUZZY_MAX | 2 | current_behaviour | 3 |
| HARD_MAX | 2 | current_behaviour | 3 |
| 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/power/supply/power_supply_sysfs.c power_supply_show_charge_behaviour() -> power_supply_charge_behaviour_show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | buf | 1-u64max |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 3 | buf | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |
drivers/power/supply/power_supply_sysfs.c power_supply_show_charge_behaviour() -> power_supply_charge_behaviour_show()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 3 | buf | 1-u64max |
| DATA_SOURCE | 0 | dev | $0 |
| DATA_SOURCE | 3 | buf | $3 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| LOCK2 | &of->mutex | ||
| LOCK2 | _T->lock | ||
| HALF_LOCKED2 | &of->prealloc_mutex | ||
| HALF_LOCKED2 | &pool->lock | ||
| TYPE_LOCK | (struct kernfs_open_file)->mutex |