ccw_device_get_ciw(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ccw_device_get_ciw(9) β€” a Kernel API Manual moment

okay so picture this: you're deep in the Kernel API Manual (yes, that's the manual name, we're being official ✨) and you need to find a CIW. Don't panic, bestie, this little function has you covered.


🌸 NAME 🌸

ccw_device_get_ciw β€” literally just search for a CIW command in extended sense data. That's the whole vibe. πŸŽ€


✨ SYNOPSIS ✨

struct ciw * ccw_device_get_ciw (struct ccw_device *cdev , __u32 ct );

🫢 ARGUMENTS 🫢

  • cdev β€” the ccw device you want to inspect, like, the thing you're snooping on πŸ‘€
  • ct β€” the command type you're looking for. that's it. that's the search term πŸ’…

πŸ’– DESCRIPTION πŸ’–

so during SenseID (iykyk), command information words β€” CIWs, iconic acronym, no notes β€” describing special commands available to the device may have been stored in the extended sense data. πŸ¦‹

this function goes searching for CIWs of a specified command type inside that extended sense data. it's giving "find my specific little guy in a pile of little guys." main character search energy, fr fr. πŸ”₯


⭐ RETURN ⭐

  • NULL β€” if no extended sense data has been stored, OR if no CIW of the specified command type could be found. sad but valid. 😭
  • otherwise β€” a pointer to the CIW of the specified command type. slay. that's your winner. πŸ‘‘

🌈 SEE ALSO 🌈

the kernel file, for the curious besties:

  • ./drivers/s390/cio/device_ops.c

and the whole extended friend group 🧚:


ok that's the whole page bestie, go get your CIW πŸ’œ

and that's a wrap!! brought to you by the source at ./drivers/s390/cio, dropped in October 2026, and filed under ccw_device_get_ciw(9) β€” mwah, stan forever πŸ“πŸŒΈπŸ’…

πŸ“¦ where this page comes from