drivers/platform/chrome/chromeos_of_hw_prober.c
Source file repositories/reference/linux-study-clean/drivers/platform/chrome/chromeos_of_hw_prober.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/chrome/chromeos_of_hw_prober.c- Extension
.c- Size
- 5363 bytes
- Lines
- 188
- Domain
- Driver Families
- Bucket
- drivers/platform
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/array_size.hlinux/errno.hlinux/i2c-of-prober.hlinux/module.hlinux/of.hlinux/platform_device.hlinux/stddef.h
Detected Declarations
struct hw_prober_entrystruct chromeos_i2c_probe_datafunction chromeos_i2c_component_proberfunction chromeos_of_hw_prober_probefunction chromeos_of_hw_prober_driver_initfunction chromeos_of_hw_prober_driver_exitmodule init chromeos_of_hw_prober_driver_init
Annotated Snippet
module_init(chromeos_of_hw_prober_driver_init);
static void chromeos_of_hw_prober_driver_exit(void)
{
platform_device_unregister(chromeos_of_hw_prober_pdev);
platform_driver_unregister(&chromeos_of_hw_prober_driver);
}
module_exit(chromeos_of_hw_prober_driver_exit);
MODULE_LICENSE("GPL");
MODULE_DESCRIPTION("ChromeOS device tree hardware prober");
MODULE_IMPORT_NS("I2C_OF_PROBER");
Annotation
- Immediate include surface: `linux/array_size.h`, `linux/errno.h`, `linux/i2c-of-prober.h`, `linux/module.h`, `linux/of.h`, `linux/platform_device.h`, `linux/stddef.h`.
- Detected declarations: `struct hw_prober_entry`, `struct chromeos_i2c_probe_data`, `function chromeos_i2c_component_prober`, `function chromeos_of_hw_prober_probe`, `function chromeos_of_hw_prober_driver_init`, `function chromeos_of_hw_prober_driver_exit`, `module init chromeos_of_hw_prober_driver_init`.
- Atlas domain: Driver Families / drivers/platform.
- 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.