find_any_var_ref(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 🧚


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