create_var_ref(9)
β¨ 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β theVARfield to create a reference to. yes bestie, that exact one.systemβ the optional system string. optional is the key word, iykyk.event_nameβ the optionalevent_namestring. 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 π₯
- Kernel file
./kernel/trace/trace_events_hist.c check_field_for_var_ref(9)find_var_ref(9)find_any_var_ref(9)check_var_refs(9)create_field_var_hist(9)create_target_field_var(9)
thatβs the whole page, bestie β source/version corner: ./kernel/trace, date: October 2026. mwah πππ
π¦ 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