find_any_var_ref(9)
π find_any_var_ref π
okay so bestie, welcome to the Kernel API Manual β¨ this page is literally about find_any_var_ref(9), and it's giving main character energy π iykyk.
πΈ NAME πΈ
find_any_var_ref β check if there is a reference to a given trigger variable π
β¨ SYNOPSIS β¨
struct hist_field * find_any_var_ref (struct hist_trigger_data
*hist_data , unsigned int var_idx );
π ARGUMENTS π
hist_dataβ the hist trigger π«Άvar_idxβ the trigger variable identifier π₯
π DESCRIPTION π
so the whole point is to check to see whether the given variable is currently referenced by any other trigger π lowkey a vibe check for references.
and listen, the trigger the variable is defined on is explicitly excluded β the assumption being that a self-reference doesn't prevent a trigger from being removed. no cap, that's the rule π
β RETURN β
if so, you get the VAR_REF field referencing the variable π if not, you get NULL π that's the whole answer, periodt β¨
π¦ SEE ALSO π¦
Kernel file ./kernel/trace/trace_events_hist.c π§
check_field_for_var_ref(9)find_var_ref(9)check_var_refs(9)create_var_ref(9)create_field_var_hist(9)create_target_field_var(9)
that's the whole page, bestie, slay! sourced from ./kernel/trace, dated October 2026, and filed under find_any_var_ref(9) ππ
π¦ 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