ccw_device_set_online(9)
β¨ 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 π
0on 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 π«Ά:
ccw_device_set_offline(9)get_ccwdev_by_dev_id(9)ccw_purge_blacklisted(9)io_subchannel_sch_event(9)ccw_device_wait_idle(9)get_ccwdev_by_busid(9)ccw_driver_register(9)ccw_driver_unregister(9)ccw_device_sched_todo(9)ccw_device_siosl(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms