drivers/misc/pvpanic/pvpanic.c
Source file repositories/reference/linux-study-clean/drivers/misc/pvpanic/pvpanic.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/misc/pvpanic/pvpanic.c- Extension
.c- Size
- 5293 bytes
- Lines
- 233
- Domain
- Driver Families
- Bucket
- drivers/misc
- 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/device.hlinux/errno.hlinux/gfp_types.hlinux/io.hlinux/kexec.hlinux/kstrtox.hlinux/limits.hlinux/list.hlinux/mod_devicetable.hlinux/module.hlinux/panic_notifier.hlinux/platform_device.hlinux/reboot.hlinux/spinlock.hlinux/sysfs.hlinux/types.huapi/misc/pvpanic.hpvpanic.h
Detected Declarations
struct pvpanic_instancefunction pvpanic_send_eventfunction list_for_each_entryfunction pvpanic_panic_notifyfunction pvpanic_sys_offfunction pvpanic_synchronize_sys_off_handlerfunction pvpanic_removefunction capability_showfunction events_showfunction events_storefunction devm_pvpanic_probefunction pvpanic_initfunction pvpanic_exitmodule init pvpanic_initexport pvpanic_dev_groupsexport devm_pvpanic_probe
Annotated Snippet
module_init(pvpanic_init);
static void pvpanic_exit(void)
{
atomic_notifier_chain_unregister(&panic_notifier_list, &pvpanic_panic_nb);
}
module_exit(pvpanic_exit);
Annotation
- Immediate include surface: `linux/device.h`, `linux/errno.h`, `linux/gfp_types.h`, `linux/io.h`, `linux/kexec.h`, `linux/kstrtox.h`, `linux/limits.h`, `linux/list.h`.
- Detected declarations: `struct pvpanic_instance`, `function pvpanic_send_event`, `function list_for_each_entry`, `function pvpanic_panic_notify`, `function pvpanic_sys_off`, `function pvpanic_synchronize_sys_off_handler`, `function pvpanic_remove`, `function capability_show`, `function events_show`, `function events_store`.
- Atlas domain: Driver Families / drivers/misc.
- 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.