event_trigg...arate_filter(9)
π event_trigger_separate_filter β Kernel API Manual π
β¨ NAME β¨
event_trigger_separate_filter β separate an event trigger from a filter. periodt π
okay bestie, this is the <blue>Kernel API Manual</blue> page for this lil parsing icon β¨
π SYNOPSIS π
int event_trigger_separate_filter (char *param_and_filter , char **param
, char **filter , bool param_required );
π ARGUMENTS π
param_and_filterβ a string that contains the trigger and, maybe, the filter. literally βtrigger and possibly filterβ energy π¦paramβ outparam; gets filled with a pointer to the trigger. π«Άfilterβ outparam; gets filled with a pointer to the filter. πparam_requiredβ tells the function whether or not the param string is required. iykyk π
πΈ DESCRIPTION πΈ
So you hand it a param string shaped like '[trigger] [if filter]', and this function separates the filter from the trigger. Then it returns the trigger in param and the filter in filter. slay. β¨
Either param or filter may be set to NULL by this function β and if theyβre not set to NULL, theyβll contain strings corresponding to the trigger and filter. no cap. π
There are two cases to handle with respect to the passed-in param: either param is required, or it is not required. π§
- If
param_requiredis set, and thereβs no param, it will return-EINVAL. π - If
param_requiredis not set and thereβs a param that starts with a number, that corresponds to the case of a trigger with:n(n= number of times the trigger should fire), and the parsing continues normally. π₯ - Otherwise, the function just returns and assumes
paramjust contains a filter and thereβs nothing else to do. π
π₯ RETURN π₯
0on success πerrnootherwise π
π¦ SEE ALSO π¦
Kernel file ./kernel/trace/trace_events_trigger.c β yes, thatβs the spot π
event_triggers_call(9)event_triggers_post_call(9)event_trigger_count(9)event_trigger_print(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)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)
π later, bestie β source/version: ./kernel/trace; date: October 2026. xoxo, your Kernel API hype girl π
π¦ 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