event_trigger_print(9)
π 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β theseq_filewe'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β thefilter_strto 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
- 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