event_trigger_print(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… event_trigger_print(9) β€” the Kernel API Manual, bestie edition ✨

okay so this is event_trigger_print(9) from the Kernel API Manual, and honestly? it's a little gem 🫢


🌸 NAME

event_trigger_print β€” the generic event_command @print implementation, no cap πŸ’–


✨ SYNOPSIS

int event_trigger_print (const char *name , struct seq_file *m , void
*data , char *filter_str );

πŸŽ€ ARGUMENTS

  • name β€” the name of the event trigger 🏷️
  • m β€” the seq_file we're printing into, that's the vibe check target πŸ“„
  • data β€” trigger-specific data, i.e. the trigger's own little stash of stuff πŸ“
  • filter_str β€” the filter_str to print, if present (if it's not, don't print it, obviously πŸ’…)

πŸ¦‹ DESCRIPTION

So this is the common implementation for event triggers to print themselves πŸ’– it's literally the shared glow-up routine β€” every event trigger uses it so nobody has to hand-write their own.

Usually it's wrapped by a function that just sets the name of the trigger command and then invokes this ✨ like, the wrapper does the tiny bit of setup, and this function handles the actual printing. team work, main character energy, periodt πŸ‘‘


πŸ”₯ RETURN

0 on success, errno otherwise 😭 (yes, the classic)


🌈 SEE ALSO

Kernel file ./kernel/trace/trace_events_trigger.c πŸ‘€

event_triggers_call(9), event_triggers_post_call(9), event_trigger_count(9), event_trigger_init(9), event_trigger_free(9), clear_event_triggers(9), update_cond_flag(9), register_trigger(9), unregister_trigger(9), event_trigger_check_remove(9), event_trigger_empty_param(9), event_trigger_separate_filter(9), trigger_data_alloc(9), event_trigger_parse_num(9), event_trigger_set_filter(9), event_trigger_reset_filter(9), event_trigger_register(9), event_trigger_unregister(9), event_trigger_parse(9), set_trigger_filter(9), find_named_trigger(9), is_named_trigger(9), save_named_trigger(9), del_named_trigger(9), pause_named_trigger(9), unpause_named_trigger(9), set_named_trigger_data(9) πŸ§šβ€β™€οΈπŸ’œ

fr fr, that's a lot of siblings β€” one big happy trigger family πŸ‘‘

okay that's the whole page bestie, ily 🫢 this one lives in ./kernel/trace, dated October 2026, and it's event_trigger_print(9) all the way down πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from