__devm_iio_...wnode_lookup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… __devm_iio_...wnode_lookup(9) β€” from the Kernel API Manual ✨

okay bestie, sit down, because today we're looking at __devm_iio_...wnode_lookup β€” yes the name is Like That, and yes we're gonna get through it together 🫢 This is the device-managed fwnode backend device get, and honestly? It's giving legacy-icon-that-we-must-not-touch. Let's go πŸ’–


🌸 NAME 🌸

__devm_iio_backend_get_from_fwnode_lookup β€” Device managed fwnode backend device get.

Like, that's the whole name, no cap. It gets you a backend device, and it's device managed. Periodt. ✨


πŸŽ€ SYNOPSIS πŸŽ€

struct iio_backend * __devm_iio_backend_get_from_fwnode_lookup (struct
device *dev , struct fwnode_handle *fwnode );

Two args in, a struct iio_backend * out. Simple as that, iykyk πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” the consumer device for the backend. This is the one doing the consuming, main character energy πŸ‘‘
  • fwnode β€” the firmware node of the backend device. This is what we're matching against, fr fr.

✨ DESCRIPTION ✨

So what does it actually do? It searches the backend list for a device matching fwnode πŸ” That's the whole vibe check.

⚠️ okay this is the important part, bestie, don't skip it: this API should not be used and it's only present for preventing the first user of this framework to break it's DT ABI. Like, it's literally here so that one early adopter doesn't break their DT ABI 😭 Not me being a whole compatibility shim πŸ™ˆ

So: don't reach for it in new code, no matter how tempting. It's a fossil with a purpose, and we respect it πŸŽ€


πŸ’€ RETURN πŸ’€

  • A backend pointer on success πŸŽ‰
  • A negative error pointer otherwise 😭

That's it. That's the return. Check it with IS_ERR() like the icon you are πŸ’…


🌈 SEE ALSO 🌈

The kernel file lives right here: ./drivers/iio/industrialio-backend.c β€” go read it, it's lowkey iconic πŸ“–

And here's the whole bestie squad of related calls, in order, all present and accounted for 🫢:


and that's the whole page, bestie πŸ’–

This cutie comes to you from ./drivers/iio, dated October 2026 β€” same manual, same version, same date, just with way more sparkle βœ¨πŸŽ€ Go forth and not call this function πŸ¦‹πŸ’œ

πŸ“¦ where this page comes from