include/linux/power/bq27xxx_battery.h
Source file repositories/reference/linux-study-clean/include/linux/power/bq27xxx_battery.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/power/bq27xxx_battery.h- Extension
.h- Size
- 2045 bytes
- Lines
- 82
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: implementation source
- Status
- source implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/power_supply.h
Detected Declarations
struct bq27xxx_device_infostruct bq27xxx_access_methodsstruct bq27xxx_reg_cachestruct bq27xxx_device_infoenum bq27xxx_chip
Annotated Snippet
struct bq27xxx_access_methods {
int (*read)(struct bq27xxx_device_info *di, u8 reg, bool single);
int (*write)(struct bq27xxx_device_info *di, u8 reg, int value, bool single);
int (*read_bulk)(struct bq27xxx_device_info *di, u8 reg, u8 *data, int len);
int (*write_bulk)(struct bq27xxx_device_info *di, u8 reg, u8 *data, int len);
};
struct bq27xxx_reg_cache {
int capacity;
int flags;
};
struct bq27xxx_device_info {
struct device *dev;
enum bq27xxx_chip chip;
u32 opts;
const char *name;
struct bq27xxx_dm_reg *dm_regs;
u32 unseal_key;
struct bq27xxx_access_methods bus;
struct bq27xxx_reg_cache cache;
int charge_design_full;
int voltage_min_design;
int voltage_max_design;
bool removed;
unsigned long last_update;
union power_supply_propval last_status;
struct delayed_work work;
struct power_supply *bat;
struct list_head list;
struct mutex lock;
u8 *regs;
};
void bq27xxx_battery_update(struct bq27xxx_device_info *di);
int bq27xxx_battery_setup(struct bq27xxx_device_info *di);
void bq27xxx_battery_teardown(struct bq27xxx_device_info *di);
extern const struct dev_pm_ops bq27xxx_battery_battery_pm_ops;
#endif
Annotation
- Immediate include surface: `linux/power_supply.h`.
- Detected declarations: `struct bq27xxx_device_info`, `struct bq27xxx_access_methods`, `struct bq27xxx_reg_cache`, `struct bq27xxx_device_info`, `enum bq27xxx_chip`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.