include/linux/raspberrypi/vchiq_bus.h
Source file repositories/reference/linux-study-clean/include/linux/raspberrypi/vchiq_bus.h
File Facts
- System
- Linux kernel
- Corpus path
include/linux/raspberrypi/vchiq_bus.h- Extension
.h- Size
- 1690 bytes
- Lines
- 61
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/device.hlinux/mod_devicetable.h
Detected Declarations
struct vchiq_drv_mgmtstruct vchiq_devicestruct vchiq_driver
Annotated Snippet
struct device_driver driver;
};
static inline struct vchiq_device *to_vchiq_device(struct device *d)
{
return container_of(d, struct vchiq_device, dev);
}
static inline struct vchiq_driver *to_vchiq_driver(struct device_driver *d)
{
return container_of(d, struct vchiq_driver, driver);
}
extern const struct bus_type vchiq_bus_type;
struct vchiq_device *
vchiq_device_register(struct device *parent, const char *name);
void vchiq_device_unregister(struct vchiq_device *dev);
int vchiq_driver_register(struct vchiq_driver *vchiq_drv);
void vchiq_driver_unregister(struct vchiq_driver *vchiq_drv);
/**
* module_vchiq_driver() - Helper macro for registering a vchiq driver
* @__vchiq_driver: vchiq driver struct
*
* Helper macro for vchiq drivers which do not do anything special in
* module init/exit. This eliminates a lot of boilerplate. Each module may only
* use this macro once, and calling it replaces module_init() and module_exit()
*/
#define module_vchiq_driver(__vchiq_driver) \
module_driver(__vchiq_driver, vchiq_driver_register, vchiq_driver_unregister)
#endif /* _VCHIQ_DEVICE_H */
Annotation
- Immediate include surface: `linux/device.h`, `linux/mod_devicetable.h`.
- Detected declarations: `struct vchiq_drv_mgmt`, `struct vchiq_device`, `struct vchiq_driver`.
- Atlas domain: Core OS / Core Kernel Interface.
- Implementation status: pattern 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.