ccw_device_set_offline(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ccw_device_set_offline(9) πŸ’…

Okay so welcome to the Kernel API Manual side of the group chat, bestie β€” today's main character is ccw_device_set_offline(9), and she is literally here to disable a ccw device for I/O. Periodt. πŸŽ€


πŸ’– NAME πŸ’–

ccw_device_set_offline - disable a ccw device for I/O. No cap, that's the whole name vibe. ✨

🌸 SYNOPSIS 🌸

int ccw_device_set_offline (struct ccw_device *cdev );

πŸ¦‹ ARGUMENTS πŸ¦‹

  • cdev β€” the target ccw device. Like, the device we're about to take offline, iykyk. 🫢

✨ DESCRIPTION ✨

So this function calls the driver's set_offline function for cdev, if that function is given, and then it disables cdev. That's it. She's simple, she's effective, she's iconic. πŸ’…

πŸ”₯ RETURN πŸ”₯

  • 0 on success β€” slay, it worked. βœ…
  • A negative error value on failure β€” not slay, but at least you know. 😭

πŸ‘‘ CONTEXT πŸ‘‘

Context check, bestie: enabled, and the ccw device lock is not held. 🧚

🌈 SEE ALSO 🌈

Kernel file ./drivers/s390/cio/device.c β€” go read, bestie, it's giving source material. πŸ“š


Catch you later, bestie! Source/version: ./drivers/s390/cio; date: October 2026; page: ccw_device_set_offline(9) β€” mwah! πŸ’–πŸŽ€

πŸ“¦ where this page comes from