dynevent_arg_pair_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 the dynevent_cmd struct, aka the one representing the new event cmd πŸ‘‘
  • arg_pair β€” the argument pair you wanna append to the current cmd, slay
  • check_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:

  1. the lhs argument string gets appended to the current cmd string
  2. then an operator, if applicable
  3. then the rhs string
  4. 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:


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