zpa2326_set_trigger_state(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ zpa2326_set_trigger_state β€” start / stop continuous sampling πŸ’…

okay so bestie, this is a page from the Kernel API Manual (yes, the kernel kernel, we're fancy now ✨) and it's all about one little function: zpa2326_set_trigger_state. It's giving "tiny function, big responsibility" energy and honestly? obsessed. πŸŽ€


✨ NAME ✨

zpa2326_set_trigger_state β€” Start / stop continuous sampling.

like, that's it. that's the whole job. start it or stop it. icon behavior. πŸ‘‘


🌸 SYNOPSIS 🌸

int zpa2326_set_trigger_state (struct iio_trigger *trig , bool state );

she takes a trigger and a bool and hands you back an int. no cap. 🫢


πŸ’– ARGUMENTS πŸ’–

  • trig β€” The trigger being attached to IIO device associated with the sampling hardware. πŸ¦‹ think of it as the little connector between the trigger vibes and the IIO device that's actually hanging out with the sampling hardware, iykyk.
  • state β€” Tell whether to start (true) or stop (false). literally a yes/no bestie. true = go, false = stop, no in-between, no "maybe", no "i'll think about it". πŸ’€

🧚 DESCRIPTION 🧚

Basically enable / disable hardware continuous sampling mode. that's the whole main character arc right there β€” flip it on, flip it off. πŸ”₯

Called with IIO device's lock held at postenable or predisable time. ⚠️ so like, don't just roll up and call this whenever, okay? the lock is held at those moments and that's the context this function expects. respect the lock. slay. πŸ’œ


⭐ RETURN ⭐

Zero when successful, a negative error code otherwise. so <pink>0</pink> = we ate, negative = something went sideways and you should probably look at it. 😭


🌈 SEE ALSO 🌈

like, the whole zpa2326 friend group showed up to the function's party and everyone's invited. πŸ«ΆπŸŽ€


bestie reminder: this page lives in ./drivers/iio/pressure, it's the October 2026 edition, and the manual is the Kernel API Manual. go read the source, it's right there. πŸ§šβ€β™€οΈβœ¨

k that's the page, mwah πŸ’‹ β€” source ./drivers/iio/pressure, version dated October 2026, Kernel API Manual, page zpa2326_set_trigger_state(9), periodt. πŸŽ€πŸŒΈπŸ’–

πŸ“¦ where this page comes from