drivers/usb/misc/apple-mfi-fastcharge.c
Source file repositories/reference/linux-study-clean/drivers/usb/misc/apple-mfi-fastcharge.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/usb/misc/apple-mfi-fastcharge.c- Extension
.c- Size
- 6138 bytes
- Lines
- 258
- Domain
- Driver Families
- Bucket
- drivers/usb
- Inferred role
- Driver Families: exported/initcall integration point
- Status
- integration implementation candidate
Why This File Exists
Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Repeatable hardware-adapter layer. Deep compatibility for every driver is out of scope; this atlas records patterns, probe lifecycles, bus glue, IRQ/DMA usage, and links back to core abstractions.
- Exports symbols or registers init work; inspect boot/module ordering and who consumes the exported contract.
- Allocates kernel memory; connect allocation flags and lifetime to context constraints.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/module.hlinux/power_supply.hlinux/slab.hlinux/usb.h
Detected Declarations
struct mfi_devicefunction apple_mfi_fc_set_charge_typefunction apple_mfi_fc_get_propertyfunction apple_mfi_fc_set_propertyfunction apple_mfi_fc_property_is_writeablefunction mfi_fc_matchfunction mfi_fc_probefunction mfi_fc_disconnectfunction mfi_fc_driver_initfunction mfi_fc_driver_exitmodule init mfi_fc_driver_init
Annotated Snippet
module_init(mfi_fc_driver_init);
module_exit(mfi_fc_driver_exit);
Annotation
- Immediate include surface: `linux/module.h`, `linux/power_supply.h`, `linux/slab.h`, `linux/usb.h`.
- Detected declarations: `struct mfi_device`, `function apple_mfi_fc_set_charge_type`, `function apple_mfi_fc_get_property`, `function apple_mfi_fc_set_property`, `function apple_mfi_fc_property_is_writeable`, `function mfi_fc_match`, `function mfi_fc_probe`, `function mfi_fc_disconnect`, `function mfi_fc_driver_init`, `function mfi_fc_driver_exit`.
- Atlas domain: Driver Families / drivers/usb.
- Implementation status: integration 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.