event_trigger_set_filter(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ event_trigger_set_filter(9) ✨

okay so bestie, welcome to the Kernel API Manual πŸ’– β€” yes this is a section 9 manpage, yes it's about kernel internals, and yes we're gonna make it cute. this one is event_trigger_set_filter and honestly? it does exactly what it says on the tin. lowkey iconic. πŸŽ€


🌸 NAME 🌸

event_trigger_set_filter β€” set an event trigger's filter ✨


πŸ¦‹ SYNOPSIS πŸ¦‹

int event_trigger_set_filter (struct event_command *cmd_ops , struct
trace_event_file *file , char *param , struct event_trigger_data
*trigger_data );

that's the whole signature, no cap. copy it exactly, don't come for me about the spacing πŸ’…


πŸ’œ ARGUMENTS πŸ’œ

  • cmd_ops β€” the event_command operations for the trigger. it's giving "the instructions on how this trigger behaves" energy 🫢
  • file β€” the event file for the trigger's event. your main character file, the one hosting all this ✨
  • param β€” the string containing the filter. this is the actual filter text, bestie πŸ“
  • trigger_data β€” the trigger_data for the trigger. all the trigger's little details live in here πŸ’–

πŸ”₯ DESCRIPTION πŸ”₯

so here's the vibe: this function sets the filter for the trigger. that's it. that's the whole job. 🌈

but wait β€” plot twist β€” if the filter is NULL, it just returns without error. like, no filter, no problem, we're not gonna yell at you about it πŸ™ˆ. no error, no drama, we simply vibe on out. 🧚


⭐ RETURN ⭐

0 on success, errno otherwise. simple. slay. πŸ‘‘


πŸ“ SEE ALSO πŸ“

the kernel file is right here if you wanna peek at the source, iykyk:

  • Kernel file ./kernel/trace/trace_events_trigger.c

and the whole friend group πŸ’œ:


ngl the SEE ALSO list is longer than the manpage itself and i respect the commitment πŸ’€ go read set_trigger_filter(9) next, it's literally the sibling of this one 🫢

and that's the page!! mwah πŸ’‹ this one came from ./kernel/trace, dated October 2026 β€” so yeah, extremely current, extremely kernel, extremely slay. bye bestie, go set some filters πŸŒΈβœ¨πŸŽ€

πŸ“¦ where this page comes from