scsw_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… scsw_key β€” return scsw key field πŸ’…

okay so real talk, bestie, this page is from the Kernel API Manual and it's about the tiniest little helper function you ever did see. it does one thing. one. and honestly? it ate. πŸŽ€


✨ NAME ✨

scsw_key β€” return scsw key field πŸ¦‹

✨ SYNOPSIS ✨

u32 scsw_key (union scsw *scsw );

✨ ARGUMENTS ✨

  • scsw β€” pointer to scsw. that's it, that's the whole argument. a pointer to an scsw, bestie. 🫢

✨ DESCRIPTION ✨

so here's the vibe: you hand it a pointer to an scsw, and it returns the value of the key field of that scsw. and the iconic part? it does this regardless of whether it's a transport mode or command mode scsw β€” like, it truly does not care which one you brought to the function, it's gonna get that key field either way. main character energy fr fr. πŸ‘‘

no branching drama, no "wait which mode r u", it just hands you the u32. periodt. πŸ’œ

✨ SEE ALSO ✨

the friend group 🫢 β€” first up, the kernel file that started it all:

  • Kernel file ./arch/s390/include/asm/scsw.h

then the structs:

  • struct cmd_scsw(9)
  • struct tm_scsw(9)
  • struct eadm_scsw(9)
  • union scsw(9)

then the general scsw getters (the OGs):

okay now the cmd validity squad, they roll deep πŸ’€:

and the tm validity squad, equally iconic, no cap ✨:

then the mode-agnostic validity besties 🌸:

and finally the solicited trio, saving the best for last 😭:


ngl bestie, that SEE ALSO list is long. like, a whole group chat of functions. but every single one of them is here, so vibe check passed βœ…

and that's the whole page, bestie!! πŸ“ this lil gem lives in ./arch/s390/include/asm and the version we're looking at is dated October 2026, filed under scsw_key(9) β€” go off, key field. πŸ’…πŸŒˆβ­

πŸ“¦ where this page comes from