current_trigger_show(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

current_trigger_show(9) πŸ’…

πŸŽ€ NAME πŸŽ€

okay so bestie, this is the Kernel API Manual page for current_trigger_show β€” trigger consumer sysfs query current trigger πŸ’… no cap.


✨ SYNOPSIS ✨

ssize_t current_trigger_show (struct device *dev , struct device_attribute *attr , char *buf );

🌸 ARGUMENTS 🌸

  • dev β€” the device associated with an industrial I/O device πŸ› οΈ
  • attr β€” pointer to the device_attribute structure that is being processed πŸ’…
  • buf β€” buffer where the current trigger name will be printed into πŸ–¨οΈ

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so for trigger consumers, the current_trigger interface is literally the vibe check that lets you query which trigger the device is using. That's the whole thing β€” it asks the device, β€œbestie, what trigger are you on?” πŸ’–

🌈 RETURN 🌈

  • on failure β†’ a negative number 😭
  • on success β†’ the number of characters written ✍️
  • if no trigger is available β†’ 0 πŸ«₯

πŸ‘‘ SEE ALSO πŸ‘‘

mwah πŸ’‹ β€” source/version ./drivers/iio, October 2026, for current_trigger_show(9). periodt πŸŽ€

πŸ“¦ where this page comes from