drivers/s390/cio/chp.c
Source file repositories/reference/linux-study-clean/drivers/s390/cio/chp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/s390/cio/chp.c- Extension
.c- Size
- 21138 bytes
- Lines
- 885
- 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/bug.hlinux/workqueue.hlinux/spinlock.hlinux/export.hlinux/sched.hlinux/init.hlinux/jiffies.hlinux/wait.hlinux/mutex.hlinux/errno.hlinux/slab.hasm/chpid.hasm/sclp.hasm/crw.hcio.hcss.hioasm.hcio_debug.hchp.h
Detected Declarations
enum cfg_task_tfunction set_chp_logically_onlinefunction chp_get_statusfunction maskfunction chp_is_registeredfunction s390_vary_chpidfunction measurement_chars_readfunction measurement_chars_full_readfunction chp_measurement_copy_blockfunction measurement_readfunction ext_measurement_readfunction chp_remove_cmg_attrfunction chp_add_cmg_attrfunction chp_status_showfunction chp_status_writefunction chp_configure_showfunction chp_configure_writefunction chp_type_showfunction chp_cmg_showfunction chp_shared_showfunction chp_chid_showfunction chp_chid_external_showfunction chp_esc_showfunction apply_max_suffixfunction speed_bps_showfunction util_string_readfunction chp_releasefunction chp_update_descfunction chp_newfunction chp_process_crwfunction chp_ssd_get_maskfunction info_bit_numfunction info_expirefunction info_updatefunction chp_info_get_statusfunction cfg_get_taskfunction cfg_set_taskfunction chp_cfg_fetch_taskfunction chp_id_for_eachfunction cfg_funcfunction chp_cfg_schedulefunction chp_cfg_cancel_deconfigurefunction cfg_idlefunction cfg_wait_idlefunction chp_initmodule init chp_initexport chp_get_sch_opmexport chp_ssd_get_mask
Annotated Snippet
subsys_initcall(chp_init);
Annotation
- Immediate include surface: `linux/bug.h`, `linux/workqueue.h`, `linux/spinlock.h`, `linux/export.h`, `linux/sched.h`, `linux/init.h`, `linux/jiffies.h`, `linux/wait.h`.
- Detected declarations: `enum cfg_task_t`, `function set_chp_logically_online`, `function chp_get_status`, `function mask`, `function chp_is_registered`, `function s390_vary_chpid`, `function measurement_chars_read`, `function measurement_chars_full_read`, `function chp_measurement_copy_block`, `function measurement_read`.
- 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.