get_ccwdev_by_dev_id(9)
π get_ccwdev_by_dev_id(9) β like, the Kernel API Manual edition π
okay bestie, buckle up, because this one is literally the "find my device" of the ccw bus πΈ
β¨ NAME β¨
get_ccwdev_by_dev_id β obtain device from a ccw device id π«Ά
π¦ SYNOPSIS π¦
struct ccw_device * get_ccwdev_by_dev_id (struct ccw_dev_id *dev_id );
π ARGUMENTS π
dev_idβ the id of the device to be searched π that's it, that's the whole input, she's lowkey minimal
π DESCRIPTION π
So this function searches all devices attached to the ccw bus for a device matching dev_id. Like, every single one. She's thorough. no cap, she is going to look at all of them until she finds her match β¨
π RETURN π
If a device is found, its reference count is increased and it's returned π« β yes, she hands it back to you with a little extra refcount, that's the whole vibe.
Else, NULL is returned π (and if you don't vibe-check that NULL, that's on you, not her).
π SEE ALSO π
Kernel file ./drivers/s390/cio/device.c β that's where she lives, main character address fr fr π
ccw_device_set_offline(9)ccw_device_set_online(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)
ok that's the whole page bestie, go forth and find your devices π
and that's a wrap, mwah π β this one's chillin' in ./drivers/s390/cio, October 2026, brought to you by the get_ccwdev_by_dev_id(9) girlies themselves π§ββοΈβ
π¦ 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