get_ccwdev_by_busid(9)
okay so bestie, welcome to get_ccwdev_by_busid(9) from the Kernel API Manual π
this one is short but iconic: itβs giving βfind my device by bus idβ energy β¨
πΈ NAME πΈ
get_ccwdev_by_busid β obtain device from a bus id π«Ά
β¨ SYNOPSIS β¨
struct ccw_device * get_ccwdev_by_busid (struct ccw_driver *cdrv , const
char *bus_id );
π ARGUMENTS π
cdrvβ the driver the device is owned by, no cap πbus_idβ the bus id of the device to be searched, bestie π
π¦ DESCRIPTION π¦
This function searches all devices owned by cdrv for a device with a bus id matching bus_id. literally a little matchmaking mission for devices π
β¨
β RETURN β
If a match is found, the found deviceβs reference count is increased and it is returned. If thereβs no match, NULL is returned. thatβs the whole vibe π
important detail from the original: the reference count of the found device is increased when there is a match, bestie π
π SEE ALSO π
Kernel file: ./drivers/s390/cio/device.c β also peep these, iykyk:
ccw_device_set_offline(9)ccw_device_set_online(9)get_ccwdev_by_dev_id(9)ccw_purge_blacklisted(9)io_subchannel_sch_event(9)ccw_device_wait_idle(9)ccw_driver_register(9)ccw_driver_unregister(9)ccw_device_sched_todo(9)ccw_device_siosl(9)
mwah π source/version corner: ./drivers/s390/cio, October 2026, and this whole page is get_ccwdev_by_busid(9). periodt π
π
π¦ 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