drivers/hv/hv_util.c
Source file repositories/reference/linux-study-clean/drivers/hv/hv_util.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/hv/hv_util.c- Extension
.c- Size
- 20739 bytes
- Lines
- 816
- Domain
- Driver Families
- Bucket
- drivers/hv
- 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.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- 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/kernel.hlinux/init.hlinux/module.hlinux/slab.hlinux/sysctl.hlinux/reboot.hlinux/hyperv.hlinux/clockchips.hlinux/ptp_clock_kernel.hasm/mshyperv.hhyperv_vmbus.h
Detected Declarations
struct hibernate_work_contextfunction send_hibernate_ueventfunction hv_shutdown_initfunction perform_shutdownfunction perform_restartfunction shutdown_onchannelcallbackfunction reftime_to_nsfunction hv_get_adj_host_timefunction hv_set_host_timefunction hv_implicit_syncfunction adj_guesttimefunction timesync_onchannelcallbackfunction heartbeat_onchannelcallbackfunction util_probefunction util_removefunction util_suspendfunction util_resumefunction hv_ptp_enablefunction hv_ptp_settimefunction hv_ptp_adjfinefunction hv_ptp_adjtimefunction hv_ptp_gettimefunction hv_timesync_initfunction hv_timesync_cancel_workfunction hv_timesync_pre_suspendfunction hv_timesync_deinitfunction init_hyperv_utilsfunction exit_hyperv_utilsmodule init init_hyperv_utils
Annotated Snippet
module_init(init_hyperv_utils);
module_exit(exit_hyperv_utils);
MODULE_DESCRIPTION("Hyper-V Utilities");
MODULE_LICENSE("GPL");
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/init.h`, `linux/module.h`, `linux/slab.h`, `linux/sysctl.h`, `linux/reboot.h`, `linux/hyperv.h`, `linux/clockchips.h`.
- Detected declarations: `struct hibernate_work_context`, `function send_hibernate_uevent`, `function hv_shutdown_init`, `function perform_shutdown`, `function perform_restart`, `function shutdown_onchannelcallback`, `function reftime_to_ns`, `function hv_get_adj_host_time`, `function hv_set_host_time`, `function hv_implicit_sync`.
- Atlas domain: Driver Families / drivers/hv.
- Implementation status: integration implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
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.