drivers/platform/x86/uv_sysfs.c
Source file repositories/reference/linux-study-clean/drivers/platform/x86/uv_sysfs.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/platform/x86/uv_sysfs.c- Extension
.c- Size
- 22214 bytes
- Lines
- 932
- 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.
- 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/kernel.hlinux/device.hlinux/slab.hlinux/kobject.hlinux/vmalloc.hasm/uv/bios.hasm/uv/uv.hasm/uv/uv_hub.hasm/uv/uv_geo.h
Detected Declarations
struct uv_hubstruct hub_sysfs_entrystruct uv_portstruct uv_port_sysfs_entrystruct uv_pci_top_objstruct uv_pci_top_sysfs_entryfunction ordinal_to_nasidfunction cnode_to_geoidfunction location_to_bposfunction cache_obj_to_cnodefunction get_obj_to_cnodefunction hub_name_showfunction hub_location_showfunction hub_partition_showfunction hub_shared_showfunction hub_nasid_showfunction hub_cnode_showfunction hub_releasefunction hub_type_showfunction uv_hubs_initfunction uv_hubs_exitfunction uv_port_conn_hub_showfunction uv_port_conn_port_showfunction uv_port_releasefunction uv_port_type_showfunction uv_ports_initfunction uv_ports_exitfunction uv_pci_type_showfunction uv_pci_location_showfunction uv_pci_iio_stack_showfunction uv_pci_ppb_addr_showfunction uv_pci_slot_showfunction uv_pci_top_releasefunction pci_top_type_showfunction init_pci_top_objfunction IOfunction pci_topology_initfunction pci_topology_exitfunction partition_id_showfunction coherence_id_showfunction uv_type_showfunction uv_archtype_showfunction uv_hub_type_showfunction uv_hubless_showfunction initial_bios_setupfunction uv_sysfs_hubless_initfunction uv_sysfs_initfunction uv_sysfs_hubless_exit
Annotated Snippet
device_initcall(uv_sysfs_init);
#else
module_init(uv_sysfs_init);
#endif
module_exit(uv_sysfs_exit);
MODULE_AUTHOR("Hewlett Packard Enterprise");
MODULE_DESCRIPTION("Sysfs structure for HPE UV systems");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/module.h`, `linux/kernel.h`, `linux/device.h`, `linux/slab.h`, `linux/kobject.h`, `linux/vmalloc.h`, `asm/uv/bios.h`, `asm/uv/uv.h`.
- Detected declarations: `struct uv_hub`, `struct hub_sysfs_entry`, `struct uv_port`, `struct uv_port_sysfs_entry`, `struct uv_pci_top_obj`, `struct uv_pci_top_sysfs_entry`, `function ordinal_to_nasid`, `function cnode_to_geoid`, `function location_to_bpos`, `function cache_obj_to_cnode`.
- 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.