drivers/base/cacheinfo.c
Source file repositories/reference/linux-study-clean/drivers/base/cacheinfo.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/base/cacheinfo.c- Extension
.c- Size
- 27456 bytes
- Lines
- 1072
- Domain
- Driver Families
- Bucket
- drivers/base
- 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/acpi.hlinux/bitfield.hlinux/bitops.hlinux/cacheinfo.hlinux/compiler.hlinux/cpu.hlinux/device.hlinux/init.hlinux/of.hlinux/sched.hlinux/sched/topology.hlinux/slab.hlinux/smp.hlinux/sysfs.h
Detected Declarations
struct cache_type_infofunction cache_leaves_are_sharedfunction last_level_cache_is_validfunction update_per_cpu_data_slice_size_cpufunction last_level_cache_is_sharedfunction get_cacheinfo_idxfunction cache_sizefunction cache_get_line_sizefunction cache_nr_setsfunction cache_associativityfunction cache_node_is_unifiedfunction match_cache_nodefunction cache_of_set_idfunction for_each_of_cpu_nodefunction cache_of_set_propsfunction cache_setup_of_nodefunction of_check_cache_nodesfunction of_count_cache_leavesfunction init_of_cache_levelfunction cache_setup_of_nodefunction init_of_cache_levelfunction cache_setup_acpifunction cache_setup_propertiesfunction cache_shared_cpu_map_setupfunction for_each_online_cpufunction cache_shared_cpu_map_removefunction for_each_cpufunction free_cache_attributesfunction early_cache_levelfunction init_cache_levelfunction populate_cache_leavesfunction allocate_cache_infofunction fetch_cache_infofunction init_level_allocate_cifunction detect_cache_attributesfunction size_showfunction shared_cpu_map_showfunction shared_cpu_list_showfunction type_showfunction allocation_policy_showfunction write_policy_showfunction cache_default_attrs_is_visiblefunction cache_get_priv_groupfunction cache_get_attribute_groupsfunction cpu_cache_sysfs_exitfunction cpu_cache_sysfs_initfunction cache_add_devfunction cpu_map_shared_cache
Annotated Snippet
device_initcall(cacheinfo_sysfs_init);
Annotation
- Immediate include surface: `linux/acpi.h`, `linux/bitfield.h`, `linux/bitops.h`, `linux/cacheinfo.h`, `linux/compiler.h`, `linux/cpu.h`, `linux/device.h`, `linux/init.h`.
- Detected declarations: `struct cache_type_info`, `function cache_leaves_are_shared`, `function last_level_cache_is_valid`, `function update_per_cpu_data_slice_size_cpu`, `function last_level_cache_is_shared`, `function get_cacheinfo_idx`, `function cache_size`, `function cache_get_line_size`, `function cache_nr_sets`, `function cache_associativity`.
- Atlas domain: Driver Families / drivers/base.
- 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.