drivers/s390/char/sclp_ftp.c
Source file repositories/reference/linux-study-clean/drivers/s390/char/sclp_ftp.c
File Facts
- System
- Linux kernel
- Corpus path
drivers/s390/char/sclp_ftp.c- Extension
.c- Size
- 6831 bytes
- Lines
- 278
- Domain
- Driver Families
- Bucket
- drivers/s390
- Inferred role
- Driver Families: implementation source
- Status
- source 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.
- 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.hlinux/mm.hlinux/slab.hlinux/io.hlinux/wait.hlinux/string.hlinux/jiffies.hasm/sysinfo.hasm/ebcdic.hsclp.hsclp_diag.hsclp_ftp.h
Detected Declarations
function sclp_ftp_txcbfunction sclp_ftp_rxcbfunction sclp_ftp_et7function sclp_ftp_cmdfunction sclp_ftp_startupfunction sclp_ftp_shutdown
Annotated Snippet
if (!stsi(info222, 2, 2, 2)) { /* get SYSIB 2.2.2 */
info222->name[sizeof(info222->name) - 1] = '\0';
EBCASC_500(info222->name, sizeof(info222->name) - 1);
pr_debug("SCLP (ET7) FTP Service working on LPAR %u (%s)\n",
info222->lpar_number, info222->name);
}
free_page(info);
}
#endif /* DEBUG */
return 0;
}
/**
* sclp_ftp_shutdown() - shutdown of FTP services, when running on LPAR
*/
void sclp_ftp_shutdown(void)
{
sclp_unregister(&sclp_ftp_event);
}
Annotation
- Immediate include surface: `linux/kernel.h`, `linux/mm.h`, `linux/slab.h`, `linux/io.h`, `linux/wait.h`, `linux/string.h`, `linux/jiffies.h`, `asm/sysinfo.h`.
- Detected declarations: `function sclp_ftp_txcb`, `function sclp_ftp_rxcb`, `function sclp_ftp_et7`, `function sclp_ftp_cmd`, `function sclp_ftp_startup`, `function sclp_ftp_shutdown`.
- Atlas domain: Driver Families / drivers/s390.
- Implementation status: source implementation candidate.
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.