__devm_iio_...wnode_lookup(9)
π
__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 π«Ά:
iio_backend_debugfs_add(9)iio_backend_debugfs_print_chan_status(9)iio_backend_chan_enable(9)iio_backend_chan_disable(9)iio_backend_disable(9)iio_backend_enable(9)devm_iio_backend_enable(9)iio_backend_data_format_set(9)iio_backend_data_source_set(9)iio_backend_data_source_get(9)iio_backend_set_sampling_freq(9)iio_backend_test_pattern_set(9)iio_backend_chan_status(9)iio_backend_iodelay_set(9)iio_backend_data_sample_trigger(9)devm_iio_backend_request_buffer(9)iio_backend_read_raw(9)iio_backend_ext_info_get(9)iio_backend_ext_info_set(9)iio_backend_interface_type_get(9)iio_backend_data_size_set(9)iio_backend_oversampling_ratio_set(9)iio_backend_extend_chan_spec(9)iio_backend_has_caps(9)iio_backend_filter_type_set(9)iio_backend_interface_data_align(9)iio_backend_num_lanes_set(9)iio_backend_ddr_enable(9)iio_backend_ddr_disable(9)iio_backend_data_stream_enable(9)iio_backend_data_stream_disable(9)iio_backend_data_transfer_addr(9)devm_iio_backend_get(9)devm_iio_backend_get_by_index(9)devm_iio_backend_fwnode_get(9)iio_backend_get_priv(9)devm_iio_backend_register(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms