create_var_ref(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to create_var_ref(9) from the Kernel API Manual β€” this one is literally about creating a variable reference and attaching it to a trigger. πŸ’…

  • create_var_ref β€” create a variable reference and attach it to trigger. periodt.

πŸ¦‹ SYNOPSIS πŸ¦‹

struct hist_field * create_var_ref (struct hist_trigger_data *hist_data
, struct hist_field *var_field , char *system , char *event_name );

πŸŽ€ ARGUMENTS πŸŽ€

  • hist_data β€” the trigger that will be referencing the variable. she’s the main character here.
  • var_field β€” the VAR field to create a reference to. yes bestie, that exact one.
  • system β€” the optional system string. optional is the key word, iykyk.
  • event_name β€” the optional event_name string. also optional, no cap.

πŸ’… DESCRIPTION πŸ’…

okay so picture this: you give it a variable hist_field, and it creates a VAR_REF hist_field that represents a reference to it. the way that works is genuinely iconic. ✨

this function also adds the reference to the trigger that now references the variable. yup, it’s giving β€œattach the reference and go” energy. 🫢


🌈 RETURN 🌈

the VAR_REF field if successful, NULL if not. simple as that, bestie. πŸ’–


πŸ”₯ SEE ALSO πŸ”₯


that’s the whole page, bestie β€” source/version corner: ./kernel/trace, date: October 2026. mwah πŸ’‹πŸŽ€πŸ’œ

πŸ“¦ where this page comes from