get_ccwdev_by_dev_id(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🏠


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