iio_trigger...e_own_device(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ 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:

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