get_ccwdev_by_busid(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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:


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