find_var_ref(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 🌈


mwah πŸ’‹ β€” source/version: ./kernel/trace; date: October 2026; page: find_var_ref(9). byeee bestie 🫢✨

πŸ“¦ where this page comes from