diag_ftp_cmd(9)
π diag_ftp_cmd β like, the Kernel API Manual page for it, bestie
Okay so welcome to diag_ftp_cmd(9), the little kernel API page that tells you how to fire off a DIAG X'2C4' FTP command that's aimed at a HMC. Yes, that's a lot of acronyms in one breath. No, we're not scared of them. πͺ
β¨ NAME β¨
diag_ftp_cmd β executes a DIAG X'2C4' FTP command, targeting a HMC
π¦ SYNOPSIS π¦
ssize_t diag_ftp_cmd (const struct hmcdrv_ftp_cmdspec *ftp , size_t *fsize );
π ARGUMENTS π
ftpβ pointer to the FTP command specification. Like, the whole vibe of what you wanna do lives in here.fsizeβ where the file size comes back to you (orNULLif that's simply not the energy you're on today π).
π₯ DESCRIPTION π₯
β οΈ Attention, bestie, this is the important part: this function is not reentrant β so the caller must ensure locking. Not optional. Not "eh, probably fine". The caller. Must. Ensure. Locking. periodt. π
π RETURN π
It hands you back the number of bytes read/writtenβ¦ or a (negative) error code. So like, good news or bad news, but never no news. π
π SEE ALSO π
- Kernel file
./drivers/s390/char/diag_ftp.c - struct
diag_ftp_ldfpl(9) diag_ftp_handler(9)diag_ftp_2c4(9)diag_ftp_startup(9)diag_ftp_shutdown(9)
And that's the whole page, iykyk. This little icon lives over in ./drivers/s390/char, and the whole thing is dated October 2026 β so like, future-vibes fr fr. Go forth and lock your stuff. π«Άπ
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms