ccw_device_set_online(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ ccw_device_set_online(9) ✨

okay so bestie, we're in the Kernel API Manual today and this one is literally all about ccw_device_set_online β€” enabling a ccw device for I/O πŸŽ€ no cap, that's the whole vibe.


🌸 NAME 🌸

ccw_device_set_online β€” enable a ccw device for I/O πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int ccw_device_set_online (struct ccw_device *cdev );

πŸ’– ARGUMENTS πŸ’–

  • cdev β€” the target ccw device, iykyk 🎯

✨ DESCRIPTION ✨

okay so here's the tea πŸ“ β€” this function first enables cdev, and then, if the driver actually has one, it calls that driver's set_online function for cdev.

and like… if set_online returns an error? 😭 cdev gets disabled again. no half-online situations allowed, we don't do that here πŸ’€


🌈 RETURN 🌈

  • 0 on success πŸŽ‰
  • a negative error value on failure πŸ™ˆ

πŸ‘‘ CONTEXT πŸ‘‘

enabled, and the ccw device lock is not held. periodt πŸ’…


⭐ SEE ALSO ⭐

the kernel file ./drivers/s390/cio/device.c, plus all these iconic siblings 🫢:


and that's the whole page bestie πŸ§šπŸ’œ this lil gem lives in ./drivers/s390/cio, dated October 2026, and it's filed under ccw_device_set_online(9) β€” go forth and enable some devices, mwah πŸŽ€πŸ”₯

πŸ“¦ where this page comes from