iio_trigger...e_own_device(9)
β¨ NAME β¨
hiii bestie π welcome to the iio_trigger...e_own_device(9) page in the Kernel API Manual. This is all about iio_trigger_validate_own_device β check if a trigger and IIO device belong to the same device. It's giving "are y'all actually together or not" energy. π
πΈ SYNOPSIS πΈ
int iio_trigger_validate_own_device (struct iio_trigger *trig , struct
iio_dev *indio_dev );
π¦ ARGUMENTS π¦
trigβ the IIO trigger to check πindio_devβ the IIO device to check, periodt.
π DESCRIPTION π
So basically this function can be used as the validate_device callback for triggers that can only be attached to their own device. That's the whole assignment, no cap. β¨
π₯ RETURN π₯
0β both the trigger and the IIO device belong to the same device, slay π-EINVALβ otherwise, aka not the same device, and it said what it said π
π SEE ALSO π
Kernel file ./drivers/iio/industrialio-trigger.c has the receipts, and you should also check out:
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_validate_own_trigger(9)
mwah π β signed off from ./drivers/iio, dated October 2026, on the iio_trigger...e_own_device(9) page. bye bestie, go check those triggers! π«Ά
π¦ 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