drivers/s390/char/tape_core.c
Source file repositories/reference/linux-study-clean/drivers/s390/char/tape_core.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/s390/char/tape_core.c- Extension
.c- Size
- 34151 bytes
- Lines
- 1361
- 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/export.hlinux/module.hlinux/init.hlinux/kmod.hlinux/spinlock.hlinux/vmalloc.hlinux/list.hlinux/slab.hasm/types.htape.htape_std.htape_class.h
Detected Declarations
struct tape_med_state_work_datafunction devid_to_intfunction tape_medium_state_showfunction tape_first_minor_showfunction tape_state_showfunction tape_operation_showfunction tape_blocksize_showfunction tape_state_setfunction tape_med_state_work_handlerfunction tape_med_state_workfunction tape_med_state_setfunction __tape_cancel_iofunction tape_assign_minorfunction tape_remove_minorfunction errorfunction tape_cleanup_devicefunction tape_generic_offlinefunction tape_alloc_devicefunction tape_get_devicefunction tape_put_devicefunction tape_find_devicefunction tape_generic_probefunction __tape_discard_requestsfunction list_for_each_safefunction tape_generic_removefunction tape_alloc_requestfunction tape_free_requestfunction tape_check_idalbufferfunction __tape_start_iofunction __tape_start_next_requestfunction tape_delayed_next_requestfunction tape_long_busy_timeoutfunction __tape_end_requestfunction tape_dump_sense_dbffunction __tape_start_requestfunction tape_do_io_asyncfunction __tape_wake_upfunction tape_do_iofunction __tape_wake_up_interruptiblefunction tape_do_io_interruptiblefunction tape_cancel_iofunction __tape_do_irqfunction tape_openfunction tape_releasefunction tape_mtopfunction tape_initfunction tape_exitmodule init tape_init
Annotated Snippet
module_init(tape_init);
module_exit(tape_exit);
EXPORT_SYMBOL(tape_generic_remove);
EXPORT_SYMBOL(tape_generic_probe);
EXPORT_SYMBOL(tape_generic_online);
EXPORT_SYMBOL(tape_generic_offline);
EXPORT_SYMBOL(tape_put_device);
EXPORT_SYMBOL(tape_get_device);
EXPORT_SYMBOL(tape_state_verbose);
EXPORT_SYMBOL(tape_op_verbose);
EXPORT_SYMBOL(tape_state_set);
EXPORT_SYMBOL(tape_med_state_set);
EXPORT_SYMBOL(tape_alloc_request);
EXPORT_SYMBOL(tape_free_request);
EXPORT_SYMBOL(tape_dump_sense_dbf);
EXPORT_SYMBOL(tape_do_io);
EXPORT_SYMBOL(tape_do_io_async);
EXPORT_SYMBOL(tape_do_io_interruptible);
EXPORT_SYMBOL(tape_cancel_io);
EXPORT_SYMBOL(tape_mtop);
Annotation
- Immediate include surface: `linux/export.h`, `linux/module.h`, `linux/init.h`, `linux/kmod.h`, `linux/spinlock.h`, `linux/vmalloc.h`, `linux/list.h`, `linux/slab.h`.
- Detected declarations: `struct tape_med_state_work_data`, `function devid_to_int`, `function tape_medium_state_show`, `function tape_first_minor_show`, `function tape_state_show`, `function tape_operation_show`, `function tape_blocksize_show`, `function tape_state_set`, `function tape_med_state_work_handler`, `function tape_med_state_work`.
- 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.