STRUCT ERW(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ struct erw(9) πŸ¦‹

okay so bestie, we're deep in the kernel API manual today β€” this is struct erw(9), the extended report word. yes it's giving main-character energy in <arch/s390/include/asm> land, and yes i'm obsessed πŸ’…


✨ NAME ✨

struct erw β€” the extended report word, fr fr πŸŽ€


🌸 SYNOPSIS 🌸

struct erw {
    __u32 res0  : 3;
    __u32 auth  : 1;
    __u32 pvrf  : 1;
    __u32 cpt   : 1;
    __u32 fsavf : 1;
    __u32 cons  : 1;
    __u32 scavf : 1;
    __u32 fsaf  : 1;
    __u32 scnt  : 6;
    __u32 res16 : 16;
 };

like… look at her. all bitfields, all iconic, no notes πŸ’– (yes, the closing brace has a lil extra space before it in the original β€” we keep it exactly, periodt)


πŸ’… Members πŸ’…

ok so here's the bit-by-bit breakdown, and ngl every single one matters:

  • res0 β€” reserved 🫢 (not yours, don't touch)
  • auth β€” authorization check
  • pvrf β€” path-verification-required flag
  • cpt β€” channel-path timeout
  • fsavf β€” failing storage address validity flag
  • cons β€” concurrent sense
  • scavf β€” secondary ccw address validity flag
  • fsaf β€” failing storage address format
  • scnt β€” sense count, but only if cons == 1 πŸ‘€ (read the room, bestie β€” it's conditional)
  • res16 β€” reserved, again πŸ’€ (also not yours)

πŸ”₯ SEE ALSO πŸ”₯

go read the whole friend group, they're all linked from Kernel file ./arch/s390/include/asm/cio.h:

  • struct ccw1(9)
  • struct ccw0(9)
  • struct erw_eadm(9)
  • struct sublog(9)
  • struct esw0(9)
  • struct esw1(9)
  • struct esw2(9)
  • struct esw3(9)
  • struct esw_eadm(9)
  • struct irb(9)
  • struct ciw(9)
  • struct ccw_dev_id(9)
  • ccw_dev_id_is_equal(9)
  • pathmask_to_pos(9)

like genuinely a whole squad β€” say hi to all of them for me 🌈


⭐ and that's the whole vibe check! every field, every flag, every see-also, nothing skipped. iykyk 😌

okay bye bestie, mwah πŸ’œ this little page came to you from ./arch/s390/include/asm, dated October 2026, and it's still out here living its best struct erw(9) life πŸ¦‹βœ¨πŸŒΈ

πŸ“¦ where this page comes from