event_trigger_parse_num(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ event_trigger_parse_num(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’… β€” this is the page for event_trigger_parse_num, and honestly it's a little cutie that does exactly one thing and does it slayfully.


πŸŽ€ NAME πŸŽ€

event_trigger_parse_num β€” parses and returns the number param for a trigger, periodt πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

int event_trigger_parse_num (char *param , struct event_trigger_data *trigger_data );

like, that's the whole vibe check. int in, int out 🫢


🌸 ARGUMENTS 🌸

  • param β€” The param string πŸ’Œ literally just the string you're handing over
  • trigger_data β€” The trigger_data for the trigger πŸŽ€ the struct that's about to get a lil update

⭐ DESCRIPTION ⭐

okay so here's the tea πŸ”₯ this function parses the :n param β€” and heads up, n = the number of times the trigger should fire, iykyk β€” and then it sets the count variable inside the trigger_data to that parsed count. that's it. that's the whole main character arc πŸ’…βœ¨


🌈 RETURN 🌈

  • 0 on success πŸ₯³
  • errno otherwise 😭 (yeah, it hands you back an errno, not a cute lil bool, ngl)

πŸ‘‘ SEE ALSO πŸ‘‘

the source lives in the Kernel file ./kernel/trace/trace_events_trigger.c β€” go read it, it's giving homework but make it iconic πŸ“šπŸ’œ

and here's the whole friend group, no cap, every single one:


ok that's the whole page bestie, go parse some numbers and be gorgeous about it πŸ’–

and finally, the sign-off πŸŽ€ this one comes from ./kernel/trace, dated October 2026, and it's filed under event_trigger_parse_num(9) β€” mwah, slay, bye! πŸ’…πŸŒΈπŸ¦‹

πŸ“¦ where this page comes from