drivers/misc/vmw_vmci/vmci_guest.c
Source file repositories/reference/linux-study-clean/drivers/misc/vmw_vmci/vmci_guest.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/misc/vmw_vmci/vmci_guest.c- Extension
.c- Size
- 27415 bytes
- Lines
- 984
- Domain
- Driver Families
- Bucket
- drivers/misc
- Inferred role
- Driver Families: operation-table or driver-model contract
- Status
- pattern 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.
- Defines an operation table; this is where Linux turns generic core objects into subsystem-specific behavior.
- Uses kernel synchronization; read lock ordering, sleepability, and interrupt context assumptions before translating.
- Touches IRQ or DMA behavior; this matters for the representative real-device path.
- 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/vmw_vmci_defs.hlinux/vmw_vmci_api.hlinux/moduleparam.hlinux/interrupt.hlinux/highmem.hlinux/kernel.hlinux/mm.hlinux/module.hlinux/processor.hlinux/sched.hlinux/slab.hlinux/init.hlinux/pci.hlinux/smp.hlinux/io.hlinux/vmalloc.hvmci_datagram.hvmci_doorbell.hvmci_context.hvmci_driver.hvmci_event.h
Detected Declarations
struct vmci_guest_devicefunction vmci_use_ppn64function vmci_guest_code_activefunction vmci_get_vm_context_idfunction vmci_read_regfunction vmci_write_regfunction vmci_read_datafunction vmci_write_datafunction vmci_send_datagramfunction vmci_guest_cid_updatefunction hypercallsfunction registerfunction vmci_process_bitmapfunction interruptfunction vmci_dispatch_dgsfunction vmci_interrupt_bmfunction vmci_interrupt_dma_datagramfunction vmci_free_dg_buffersfunction vmci_guest_probe_devicefunction vmci_guest_remove_devicefunction vmci_guest_initfunction vmci_guest_exitexport vmci_send_datagram
Annotated Snippet
static struct pci_driver vmci_guest_driver = {
.name = KBUILD_MODNAME,
.id_table = vmci_ids,
.probe = vmci_guest_probe_device,
.remove = vmci_guest_remove_device,
};
int __init vmci_guest_init(void)
{
return pci_register_driver(&vmci_guest_driver);
}
void __exit vmci_guest_exit(void)
{
pci_unregister_driver(&vmci_guest_driver);
}
Annotation
- Immediate include surface: `linux/vmw_vmci_defs.h`, `linux/vmw_vmci_api.h`, `linux/moduleparam.h`, `linux/interrupt.h`, `linux/highmem.h`, `linux/kernel.h`, `linux/mm.h`, `linux/module.h`.
- Detected declarations: `struct vmci_guest_device`, `function vmci_use_ppn64`, `function vmci_guest_code_active`, `function vmci_get_vm_context_id`, `function vmci_read_reg`, `function vmci_write_reg`, `function vmci_read_data`, `function vmci_write_data`, `function vmci_send_datagram`, `function vmci_guest_cid_update`.
- Atlas domain: Driver Families / drivers/misc.
- Implementation status: pattern implementation candidate.
- Synchronization appears in or near this file; preserve lock ordering, sleepability, and interrupt-context constraints.
- IRQ or DMA behavior appears here, which is relevant to the selected PCIe/NVMe device path.
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.