drivers/block/rnbd/rnbd-srv.c
Source file repositories/reference/linux-study-clean/drivers/block/rnbd/rnbd-srv.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/block/rnbd/rnbd-srv.c- Extension
.c- Size
- 22806 bytes
- Lines
- 863
- Domain
- Driver Families
- Bucket
- drivers/block
- 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/module.hlinux/blkdev.hrnbd-srv.hrnbd-srv-trace.h
Detected Declarations
struct rnbd_io_privatefunction dev_search_path_setfunction rnbd_sess_dev_releasefunction rnbd_put_sess_devfunction rnbd_get_sess_devfunction rnbd_dev_bi_end_iofunction process_rdmafunction destroy_devicefunction rnbd_put_srv_devfunction rnbd_destroy_sess_devfunction destroy_sessfunction create_sessfunction rnbd_srv_link_evfunction rnbd_srv_sess_dev_force_closefunction process_msg_closefunction rnbd_srv_rdma_evfunction rnbd_srv_find_or_add_srv_devfunction rnbd_srv_check_update_open_permfunction rnbd_srv_get_or_create_srv_devfunction rnbd_srv_fill_msg_open_rspfunction rnbd_srv_create_set_sess_devfunction process_msg_sess_infofunction find_srv_sess_devfunction process_msg_openfunction rnbd_srv_init_modulefunction rnbd_srv_cleanup_modulemodule init rnbd_srv_init_module
Annotated Snippet
module_init(rnbd_srv_init_module);
module_exit(rnbd_srv_cleanup_module);
Annotation
- Immediate include surface: `linux/module.h`, `linux/blkdev.h`, `rnbd-srv.h`, `rnbd-srv-trace.h`.
- Detected declarations: `struct rnbd_io_private`, `function dev_search_path_set`, `function rnbd_sess_dev_release`, `function rnbd_put_sess_dev`, `function rnbd_get_sess_dev`, `function rnbd_dev_bi_end_io`, `function process_rdma`, `function destroy_device`, `function rnbd_put_srv_dev`, `function rnbd_destroy_sess_dev`.
- Atlas domain: Driver Families / drivers/block.
- 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.