dynevent_arg_pair_add(9)
π dynevent_arg_pair_add(9) π
okay so bestie, welcome to the Kernel API Manual page for dynevent_arg_pair_add(9) β yes that's the whole name, it's a lot, we love her anyway π
β¨ NAME β¨
dynevent_arg_pair_add β adds an arg pair to a dynevent_cmd π
πΈ SYNOPSIS πΈ
int dynevent_arg_pair_add (struct dynevent_cmd *cmd , struct
dynevent_arg_pair *arg_pair , dynevent_check_arg_fn_t check_arg );
π¦ ARGUMENTS π¦
cmdβ a pointer to thedynevent_cmdstruct, aka the one representing the new event cmd πarg_pairβ the argument pair you wanna append to the current cmd, slaycheck_argβ an (optional) pointer to a function that checks arg sanity. like a vibe check but for your arguments, no cap π«Ά
π DESCRIPTION π
So what she does is: she appends an argument pair to a dynevent_cmd. And aww what's an argument pair? It's literally a left-hand-side argument and a right-hand-side argument, separated by an operator (which can be whitespace), and then all of that followed by a separator, if applicable β¨
Think of it like adding arguments of the form 'type variable_name;' or 'x+y' β iconic formats, both of them π₯
Here's the exact order of operations, because the way that order matters:
- the
lhsargument string gets appended to the current cmd string - then an operator, if applicable
- then the
rhsstring - and finally a separator, if applicable π
And before the argument is added? The check_arg function β if present β gets used to check the sanity of the current arg strings. she's thorough, we respect it πΈ
π little heads up bestie: the cmd strings, operator, and separator should be set using the dynevent_arg_pair_init before any arguments are added using this function. like, please init first, don't come for me π
β RETURN β
0 if successful, error otherwise. that's it, that's the rule π
π SEE ALSO π
Kernel file ./kernel/trace/trace_dynevent.c plus these absolute legends:
dynevent_arg_add(9)dynevent_str_add(9)dynevent_cmd_init(9)dynevent_arg_init(9)dynevent_arg_pair_init(9)dynevent_create(9)
and that's the page, bestie π«Ά it's from the ./kernel/trace directory, dated October 2026, under the dynevent_arg_pair_add(9) era of the Kernel API Manual π go forth and add those arg pairs, ily, periodt π
π¦ 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