include/linux/mdev.h
Source file repositories/reference/linux-study-clean/include/linux/mdev.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/mdev.h- Extension
.h- Size
- 2416 bytes
- Lines
- 90
- Domain
- Core OS
- Bucket
- Core Kernel Interface
- Inferred role
- Core OS: operation-table or driver-model contract
- Status
- pattern implementation candidate
Why This File Exists
Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- Core operating-system implementation surface: boot, tasks, memory, VFS, syscall-facing interfaces, synchronization, credentials, and isolation.
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/device.hlinux/uuid.h
Detected Declarations
struct mdev_typestruct mdev_devicestruct mdev_typestruct mdev_parentstruct mdev_driver
Annotated Snippet
struct device_driver driver;
};
int mdev_register_parent(struct mdev_parent *parent, struct device *dev,
struct mdev_driver *mdev_driver, struct mdev_type **types,
unsigned int nr_types);
void mdev_unregister_parent(struct mdev_parent *parent);
int mdev_register_driver(struct mdev_driver *drv);
void mdev_unregister_driver(struct mdev_driver *drv);
static inline struct device *mdev_dev(struct mdev_device *mdev)
{
return &mdev->dev;
}
#endif /* MDEV_H */
Annotation
- Immediate include surface: `linux/device.h`, `linux/uuid.h`.
- Detected declarations: `struct mdev_type`, `struct mdev_device`, `struct mdev_type`, `struct mdev_parent`, `struct mdev_driver`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: pattern 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.