Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/acpi/battery.c acpi_battery_refresh() -> sysfs_remove_battery()

Type Parameter Key Value
PARAM_VALUE 0 battery 4096-ptr_max
PARAM_VALUE 0 battery->bat 1-u64max
PARAM_VALUE 0 battery->device 4096-ptr_max
PARAM_VALUE 0 *battery->model_number 0-255
DATA_SOURCE 0 battery $0
NOCHECK_CALL
LOCK2 _T->lock

drivers/acpi/battery.c acpi_battery_update() -> sysfs_remove_battery()

Type Parameter Key Value
PARAM_VALUE 0 battery 4096-ptr_max
PARAM_VALUE 0 battery->device 4096-ptr_max
PARAM_VALUE 0 battery->device->handle->descriptor_type 0-255
PARAM_VALUE 0 battery->device->handle->flags 0-u16max
PARAM_VALUE 0 battery->device->handle->name.integer 0-4294967295
PARAM_VALUE 0 battery->device->handle->owner_id 0-u16max
PARAM_VALUE 0 battery->device->status.battery_present 0
PARAM_VALUE 0 battery->device->status.enabled 0
PARAM_VALUE 0 battery->device->status.functional 0
BUF_SIZE 0 battery s32min-(-1),1-s32max
BUF_SIZE 0 battery s32min-(-1),1-s32max
BUF_SIZE 0 battery->phys_dev (-1),1616
DATA_SOURCE 0 battery $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
UNITS 0 battery unit_byte
LOCK2 _T->lock

drivers/acpi/battery.c sysfs_battery_cleanup() -> sysfs_remove_battery()

Type Parameter Key Value
BUF_SIZE 0 battery s32min,1-s32max
BUF_SIZE 0 battery s32min,1-s32max
DATA_SOURCE 0 battery $0
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 _T->lock
HALF_LOCKED2 &dev->mutex