iio_channel_has_available(9)
π iio_channel_has_available β the Kernel API Manual, bestie edition π
okay so you're in the Kernel API Manual (that's the manual name, hi hello, welcome to the group chat πΈ) and the star of the show today is iio_channel_has_available(9). she's a lil boolean gatekeeper and honestly? iconic. let's get into it β¨
β¨ NAME β¨
iio_channel_has_available β literally checks if a channel has an available attribute π
like. that's it. that's her whole job. and she does it flawlessly, no cap.
π¦ SYNOPSIS π¦
bool iio_channel_has_available (const struct iio_chan_spec *chan , enum
iio_chan_info_enum type );
she takes two things and hands you back a bool β the most main-character return type ever π
π ARGUMENTS π
chanβ the channel to be queried π like, the one you're asking about. the it-girl in question.typeβ type of the available attribute to be checked π which flavour of "available" you're lowkey looking for.
π DESCRIPTION π
Returns true if the channel supports reporting available values for the given attribute type, false otherwise. periodt. π«Ά
so: does this channel do available-values for this attribute type? yes β true π no β false π it's giving very binary, very decisive, very much "vibe check: passed or not." πβ¨
π SEE ALSO π
okay this is the part where she tags literally everyone in the gc β hold on, this list is long, but we do not skip people in this house π every single one is here:
- Kernel file
./include/linux/iio/iio.h struct iio_chan_spec_ext_info(9)struct iio_enum(9)IIO_ENUM(9)IIO_ENUM_AVAILABLE(9)struct iio_mount_matrix(9)IIO_MOUNT_MATRIX(9)struct iio_event_spec(9)IIO_SCAN_FORMAT_SIGNED_INT(9)IIO_SCAN_FORMAT_UNSIGNED_INT(9)IIO_SCAN_FORMAT_FLOAT(9)struct iio_scan_type(9)struct iio_chan_spec(9)iio_channel_has_info(9)struct iio_info(9)struct iio_buffer_setup_ops(9)struct iio_dev(9)iio_device_register(9)devm_iio_device_register(9)iio_device_claim_direct(9)iio_device_release_direct(9)iio_device_try_claim_buffer_mode(9)iio_device_release_buffer_mode(9)IIO_DEV_ACQUIRE_DIRECT_MODE(9)IIO_DEV_ACQUIRE_FAILED(9)IIO_DEV_GUARD_CURRENT_MODE(9)iio_device_put(9)dev_to_iio_dev(9)iio_device_get(9)iio_device_set_parent(9)iio_device_set_drvdata(9)iio_device_get_drvdata(9)IIO_DECLARE_BUFFER_WITH_TS(9)IIO_DECLARE_DMA_BUFFER_WITH_TS(9)IIO_DECLARE_QUATERNION(9)iio_get_debugfs_dentry(9)iio_device_suspend_triggering(9)iio_device_resume_triggering(9)iio_get_current_scan_type(9)iio_get_masklength(9)iio_for_each_active_channel(9)IIO_DEGREE_TO_RAD(9)IIO_RAD_TO_DEGREE(9)IIO_G_TO_M_S_2(9)IIO_M_S_2_TO_G(9)
like I said. everyone. π«Άβ¨
ngl bestie, this one's short and sweet β no scary caveats, no deprecated nonsense, no "undefined behaviour, do not pass go". just a clean littletrue/falsecheck. slay. π
and that's the whole page, mwah π this cutie lives in ./include/linux/iio and the manual is dated October 2026 β bookmark her, she's a keeper ππ¦π
π¦ 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