zpa2326_set_trigger_state(9)
π¦ 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 π
- Kernel file
./drivers/iio/pressure/zpa2326.c ZPA2326 theory of operations(9)struct zpa2326_frequency(9)struct zpa2326_private(9)zpa2326_enable_device(9)zpa2326_sleep(9)zpa2326_reset_device(9)zpa2326_start_oneshot(9)zpa2326_power_on(9)zpa2326_power_off(9)zpa2326_config_oneshot(9)zpa2326_clear_fifo(9)zpa2326_dequeue_pressure(9)zpa2326_fill_sample_buffer(9)zpa2326_resume(9)zpa2326_suspend(9)zpa2326_handle_irq(9)zpa2326_handle_threaded_irq(9)zpa2326_wait_oneshot_completion(9)zpa2326_poll_oneshot_completion(9)zpa2326_fetch_raw_sample(9)zpa2326_sample_oneshot(9)zpa2326_trigger_handler(9)zpa2326_preenable_buffer(9)zpa2326_postenable_buffer(9)zpa2326_init_managed_trigger(9)
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
- 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