dynevent_arg_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

hey bestie, welcome to the dynevent_arg_add(9) manual page from the Kernel API Manual ✨

dynevent_arg_add β€” Add an arg to a dynevent_cmd πŸ’…


✨ SYNOPSIS ✨

int dynevent_arg_add (struct dynevent_cmd *cmd , struct dynevent_arg
       *arg , dynevent_check_arg_fn_t check_arg );

πŸŽ€ ARGUMENTS πŸŽ€

  • cmd β€” A pointer to the dynevent_cmd struct representing the new event cmd. literally the main character struct here πŸ‘‘
  • arg β€” The argument to append to the current cmd. this is the little string bestie getting added πŸ¦‹
  • check_arg β€” An (optional) pointer to a function checking arg sanity. optional, but if it's there it's doing a vibe check on your arg 😌

🧚 DESCRIPTION 🧚

okay so here's the tea: this function appends an argument to a dynevent_cmd. the argument string will be appended to the current cmd string, followed by a separator, if applicable. before the argument is added, the check_arg function, if present, will be used to check the sanity of the current arg string. no cap, that's the whole flow πŸ’–

the cmd string and separator should be set using dynevent_arg_init before any arguments are added using this function. like, set it up first bestie, that's the assignment πŸŽ€


⭐ RETURN ⭐

0 if successful, error otherwise. slay when it's 0, and if it's an error, welp 😭


🌈 SEE ALSO 🌈

Kernel file ./kernel/trace/trace_dynevent.c dynevent_arg_pair_add(9), dynevent_str_add(9), dynevent_cmd_init(9), dynevent_arg_init(9), dynevent_arg_pair_init(9), dynevent_create(9) β€” go read these next, bestie, iykyk πŸ”₯


okay that's the whole page, mwah πŸ’‹ β€” source/version ./kernel/trace, dated October 2026, and it's the dynevent_arg_add(9) manual, periodt 🫢

πŸ“¦ where this page comes from