STRUCT SCLP_DIAG_FTP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 struct sclp_diag_ftp β€” like, the manual page for it πŸ’…

okay bestie, so this is the kernel API manual page for struct sclp_diag_ftp β€” sclp_diag_ftp(9) if you're fancy πŸ’– β€” and it's literally the Diagnostic Test FTP Service model-dependent data. yes, that's a whole mouthful, but it's giving "important s390 char driver business" and we're gonna get through it together 🫢


✨ NAME ✨

struct sclp_diag_ftp β€” Diagnostic Test FTP Service model-dependent data πŸŽ€

πŸ¦‹ SYNOPSIS πŸ¦‹

no cap, here's the whole struct, copy-paste energy, exactly as it is:

struct sclp_diag_ftp {
    u8 pcx;
    u8 ldflg;
    u8 cmd;
    u8 pgsize;
    u8 srcflg;
    u8 spare;
    u64 offset;
    u64 fsize;
    u64 length;
    u64 failaddr;
    u64 bufaddr;
    u64 asce;
    u8 fident[256];
 };

πŸ‘‘ Members πŸ‘‘

okay so every single member, one by one, no skipping, not even the reserved one (especially not the reserved one, she's iconic in her own quiet way) πŸ’€

  • pcx β€” the code for PCX communication. and it should be 0x80, like that's the vibe check it needs to pass ✨
  • ldflg β€” the load flag. lowkey you gotta check the defines above for this one, bestie πŸ‘€
  • cmd β€” the FTP command. yes ma'am, the actual command πŸŽ€
  • pgsize β€” page size, and it's a whole either/or situation: 0 = 4kB, 1 = large page size 🌈
  • srcflg β€” source flag πŸ¦‹
  • spare β€” reserved, and it's zeroes. literally just zeroes. she's filler and she ate πŸ’…
  • offset β€” file offset, off we go πŸ“
  • fsize β€” file size, the whole thing πŸ“
  • length β€” buffer size resp. bytes transferred. dual-purpose queen πŸ‘‘
  • failaddr β€” failing address. when things go wrong, this is the address that did it 😭
  • bufaddr β€” buffer address, virtual. virtual bestie, not physical, don't get it twisted 🧚
  • asce β€” region or segment table designation. fancy name, very main character ✨
  • fident β€” the file name, ASCII and zero-terminated, and it's 256 bytes of it, so plenty of room for your whole name and then some πŸ’–

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/s390/char/sclp_diag.h β€” that's where the lore lives, go read it πŸ“–
  • struct sclp_diag_evbuf(9) 🌸
  • struct sclp_diag_sccb(9) 🌸

and that's the whole page, bestie, you ate that 🫢 source is ./drivers/s390/char, dated October 2026, and it's struct sclp_diag_ftp(9) all the way down β€” periodt πŸ’…βœ¨

πŸ“¦ where this page comes from