slim_get_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay bestie, welcome to slim_get_device(9) from the Kernel API Manual πŸ’… β€” this is the function that gets you a handle to a device, and that's literally the whole vibe. slim_get_device β€” get handle to a device. periodt ✨


πŸŽ€ SYNOPSIS πŸŽ€

struct slim_device * slim_get_device (struct slim_controller *ctrl ,
struct slim_eaddr *e_addr );

🌸 ARGUMENTS 🌸

  • ctrl β€” the controller on which this device is gonna be added or queried 🫢
  • e_addr β€” the enumeration address of the device you're querying πŸ”

✨ DESCRIPTION ✨

It takes a reference to the embedded struct device, and bestie, that reference needs to be dropped after use. no cap.

🚨 important vibe check: do not forget to drop that reference after use. fr fr.

πŸ”₯ RETURN πŸ”₯

  • if the device has already reported, you get a pointer to a device πŸ‘‘
  • if the device has not yet enumerated, it creates a new device and returns a pointer to it 🌈

πŸ‘‘ SEE ALSO πŸ‘‘


mwah πŸ’‹ β€” source/version: ./drivers/slimbus, date: October 2026, page: slim_get_device(9). bye bestie, go drop that reference πŸ«ΆπŸŽ€

πŸ“¦ where this page comes from