drivers/s390/cio/cmf.c
Source file repositories/reference/linux-study-clean/drivers/s390/cio/cmf.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/s390/cio/cmf.c- Extension
.c- Size
- 32358 bytes
- Lines
- 1304
- 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/memblock.hlinux/device.hlinux/init.hlinux/list.hlinux/export.hlinux/moduleparam.hlinux/slab.hlinux/timex.hasm/ccwdev.hasm/cio.hasm/cmb.hasm/div64.hcio.hcss.hdevice.hioasm.hchsc.h
Detected Declarations
struct cmb_operationsstruct cmb_datastruct set_schib_structstruct copy_block_structstruct cmb_areastruct cmbstruct cmbeenum cmb_indexenum cmb_formatfunction time_to_nsecfunction time_to_avg_nsecfunction cmf_activatefunction set_schibfunction set_schib_waitfunction retry_set_schibfunction cmf_copy_blockfunction cmf_cmb_copy_waitfunction cmf_retry_copy_blockfunction cmf_generic_resetfunction alloc_cmb_singlefunction alloc_cmbfunction free_cmbfunction set_cmbfunction __cmb_utilizationfunction read_cmbfunction readall_cmbfunction reset_cmbfunction cmf_enabledfunction alloc_cmbefunction free_cmbefunction set_cmbefunction read_cmbefunction readall_cmbefunction reset_cmbefunction cmb_show_attrfunction cmb_show_avg_sample_intervalfunction cmb_show_avg_utilizationfunction cmb_enable_showfunction cmb_enable_storefunction enable_cmffunction __disable_cmffunction disable_cmffunction cmf_readfunction cmf_readallfunction cmf_reenablefunction cmf_reactivatefunction init_cmbefunction init_cmf
Annotated Snippet
device_initcall(init_cmf);
EXPORT_SYMBOL_GPL(enable_cmf);
EXPORT_SYMBOL_GPL(disable_cmf);
EXPORT_SYMBOL_GPL(cmf_read);
EXPORT_SYMBOL_GPL(cmf_readall);
Annotation
- Immediate include surface: `linux/memblock.h`, `linux/device.h`, `linux/init.h`, `linux/list.h`, `linux/export.h`, `linux/moduleparam.h`, `linux/slab.h`, `linux/timex.h`.
- Detected declarations: `struct cmb_operations`, `struct cmb_data`, `struct set_schib_struct`, `struct copy_block_struct`, `struct cmb_area`, `struct cmb`, `struct cmbe`, `enum cmb_index`, `enum cmb_format`, `function time_to_nsec`.
- 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.