diag_ftp_cmd(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 (or NULL if 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 🌈


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