iio_validate_own_trigger(9)
π NAME π
iio_validate_own_trigger(9) β from the Kernel API Manual β is the lil function that checks if a trigger and an IIO device belong to the same device. Bestie, thatβs the whole vibe. β¨
π SYNOPSIS π
int iio_validate_own_trigger (struct iio_dev *idev , struct iio_trigger *trig );
π¦ ARGUMENTS π¦
idevβ the IIO device to check, no cap.trigβ the IIO trigger to check, periodt.
πΈ DESCRIPTION πΈ
Okay so picture this: you have a trigger that can only be attached to its own device, and you need a validate_trigger callback. This function is literally built to be used as the validate_trigger callback for triggers that can only be attached to their own device. Itβs giving βmain character callback energyβ and honestly? Obsessed. π
π₯ RETURN π₯
0β slay β both the trigger and the IIO device belong to the same device.-EINVALβ not the same device, so thatβs the result instead. π
π SEE ALSO π
Kernel file ./drivers/iio/industrialio-trigger.c, plus all these iconic little references:
name_show(9)iio_trigger_poll(9)iio_trigger_poll_nested(9)current_trigger_show(9)current_trigger_store(9)__iio_trigger_alloc(9)__devm_iio_trigger_alloc(9)devm_iio_trigger_register(9)iio_trigger_validate_own_device(9)
Mwah π this page is from the Kernel API Manual, source ./drivers/iio, dated October 2026, and itβs all about iio_validate_own_trigger(9) β periodt. π«Ά
π¦ 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