drivers/s390/block/dasd_diag.c
Source file repositories/reference/linux-study-clean/drivers/s390/block/dasd_diag.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/s390/block/dasd_diag.c- Extension
.c- Size
- 18728 bytes
- Lines
- 681
- Domain
- Driver Families
- Bucket
- drivers/s390
- 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/kernel_stat.hlinux/stddef.hlinux/kernel.hlinux/slab.hlinux/hdreg.hlinux/bio.hlinux/module.hlinux/init.hlinux/jiffies.hasm/asm-extable.hasm/machine.hasm/dasd.hasm/debug.hasm/diag.hasm/ebcdic.hlinux/io.hasm/irq.hasm/vtoc.hasm/asm.hdasd_int.hdasd_diag.h
Detected Declarations
struct dasd_diag_privatestruct dasd_diag_reqfunction __dia250function dia250function mdsk_init_iofunction mdsk_term_iofunction dasd_diag_erpfunction dasd_start_diagfunction dasd_diag_term_IOfunction dasd_ext_handlerfunction dasd_diag_check_devicefunction dasd_diag_fill_geometryfunction dasd_diag_erp_actionfunction dasd_diag_erp_postactionfunction dasd_diag_free_cpfunction dasd_diag_handle_terminated_requestfunction dasd_diag_fill_infofunction dasd_diag_dump_sensefunction dasd_diag_max_sectorsfunction dasd_diag_pe_handlerfunction dasd_diag_initfunction dasd_diag_cleanupmodule init dasd_diag_init
Annotated Snippet
module_init(dasd_diag_init);
module_exit(dasd_diag_cleanup);
Annotation
- Immediate include surface: `linux/kernel_stat.h`, `linux/stddef.h`, `linux/kernel.h`, `linux/slab.h`, `linux/hdreg.h`, `linux/bio.h`, `linux/module.h`, `linux/init.h`.
- Detected declarations: `struct dasd_diag_private`, `struct dasd_diag_req`, `function __dia250`, `function dia250`, `function mdsk_init_io`, `function mdsk_term_io`, `function dasd_diag_erp`, `function dasd_start_diag`, `function dasd_diag_term_IO`, `function dasd_ext_handler`.
- Atlas domain: Driver Families / drivers/s390.
- 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.