usb_of_get_companion_dev(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so this is the usb_of_get_companion_dev(9) page from the Kernel API Manual, and it's literally here to help you find the companion device πŸ’–


🌸 SYNOPSIS 🌸

struct device * usb_of_get_companion_dev (struct device *dev );

πŸŽ€ ARGUMENTS πŸŽ€

  • dev β€” the device pointer you're using to go find a companion. It's the starting point, bestie 🫢

πŸ¦‹ DESCRIPTION πŸ¦‹

This function finds the companion device from the platform bus. slay.

It takes a reference to the returned struct device, and that reference needs to be dropped after use. So like… don't forget to clean up after yourself, okay? πŸ’…


⭐ RETURN ⭐

On success, you get a pointer to the companion device. On failure, you get NULL. That's the whole vibe check 😭


πŸ”₯ SEE ALSO πŸ”₯

Kernel file ./drivers/usb/common/common.c plus these little icons:


mwah πŸ’‹ this page lives in ./drivers/usb/common, dated October 2026, and it's the usb_of_get_companion_dev(9) manual β€” bye bestie, go drop that reference 🌈🫢

πŸ“¦ where this page comes from