find_var_ref(9)
π find_var_ref(9) π
okay bestie, welcome to the Kernel API Manual page for find_var_ref(9) β this one is lowkey iconic because it's all about checking whether a trigger has a reference to a trigger variable. π¦ no cap, we're getting into var_refs[] business.
πΈ NAME πΈ
find_var_ref β Check if a trigger has a reference to a trigger variable. π
β¨ SYNOPSIS β¨
struct hist_field * find_var_ref (struct hist_trigger_data *hist_data ,
struct hist_trigger_data *var_data , unsigned int var_idx );
π ARGUMENTS π
hist_dataβ The hist trigger that might have a reference to the variable.var_dataβ The hist trigger that owns the variable.var_idxβ The trigger variable identifier.
π₯ DESCRIPTION π₯
okay so what this does is check the list of var_refs[] on the first hist trigger to see whether any of them are references to the variable on the second trigger. That's the whole vibe check, bestie β first trigger's ref list, second trigger's variable, are they linked? π
π RETURN π
The VAR_REF field referencing the variable if so, NULL if not. That's it β either you get the reference or you get NULL, no in-between. π
π SEE ALSO π
- Kernel file
./kernel/trace/trace_events_hist.c check_field_for_var_ref(9)find_any_var_ref(9)check_var_refs(9)create_var_ref(9)create_field_var_hist(9)create_target_field_var(9)
mwah π β source/version: ./kernel/trace; date: October 2026; page: find_var_ref(9). byeee bestie π«Άβ¨
π¦ 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