drivers/s390/char/sclp_tty.c
Source file repositories/reference/linux-study-clean/drivers/s390/char/sclp_tty.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/s390/char/sclp_tty.c- Extension
.c- Size
- 15107 bytes
- Lines
- 575
- 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.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
linux/kmod.hlinux/tty.hlinux/tty_driver.hlinux/tty_flip.hlinux/err.hlinux/init.hlinux/interrupt.hlinux/gfp.hlinux/uaccess.hctrlchar.hsclp.hsclp_rw.hsclp_tty.h
Detected Declarations
function sclp_tty_openfunction sclp_tty_closefunction sclp_tty_write_roomfunction sclp_ttybuf_callbackfunction __sclp_ttybuf_emitfunction sclp_tty_timeoutfunction sclp_tty_write_stringfunction sclp_tty_writefunction routinefunction put_charfunction SCCBfunction sclp_tty_flush_bufferfunction sclp_tty_inputfunction sclp_switch_casesfunction sclp_get_inputfunction sclp_eval_selfdeftextmsgfunction sclp_eval_textcmdfunction sclp_eval_cpmsufunction sclp_eval_mdsmufunction sclp_tty_receiverfunction sclp_tty_state_changefunction __sclp_tty_free_pagesfunction list_for_each_safefunction sclp_tty_initmodule init sclp_tty_init
Annotated Snippet
device_initcall(sclp_tty_init);
Annotation
- Immediate include surface: `linux/kmod.h`, `linux/tty.h`, `linux/tty_driver.h`, `linux/tty_flip.h`, `linux/err.h`, `linux/init.h`, `linux/interrupt.h`, `linux/gfp.h`.
- Detected declarations: `function sclp_tty_open`, `function sclp_tty_close`, `function sclp_tty_write_room`, `function sclp_ttybuf_callback`, `function __sclp_ttybuf_emit`, `function sclp_tty_timeout`, `function sclp_tty_write_string`, `function sclp_tty_write`, `function routine`, `function put_char`.
- 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.