param_set_dyndbg_classes(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… param_set_dyndbg_classes(9)

okay bestie, welcome to the Kernel API Manual β€” this one's a 9 section situation, and honestly? it's giving "tiny function, big responsibilities" energy. let's get into it 🫢


✨ NAME ✨

param_set_dyndbg_classes β€” literally the class FOO >control moment. that's the whole name, no cap πŸ’–


🌸 SYNOPSIS 🌸

int param_set_dyndbg_classes (const char *instr , const struct
       kernel_param *kp );

look at her. two args, one int return, absolute main character energy πŸ‘‘


πŸŽ€ ARGUMENTS πŸŽ€

  • instr β€” the string that's been echo>d into sysfs. heads up: what it actually means depends on your map_type, so like… it's flexible πŸ’…
  • kp β€” this is where the state lives. specifically kp->arg has the goods: bits/lvl, map, and map_type. all three, together, iconic πŸ”₯

πŸ¦‹ DESCRIPTION πŸ¦‹

so what does she do? she enables/disables prdbgs by their class β€” the classes being the ones you handed over in the arguments to DECLARE_DYNDBG_CLASSMAP. periodt ✨

and for LEVEL map-types specifically? she enforces relative levels by bitpos. that's the rule, that's the vibe check 😌


⭐ RETURN ⭐

0 or <0 if there's an error. that's it, that's the whole story β€” success or sadness, no in-between 😭


🌈 SEE ALSO 🌈

  • Kernel file ./lib/dynamic_debug.c
  • param_get_dyndbg_classes(9) β€” yeah, her counterpart, the getter to this setter, iykyk πŸ’œ

ngl, the getter/setter duo in ./lib/dynamic_debug.c is lowkey a matched set. go read both fr fr 🧚

and that's the page, bestie! this lil beauty comes to you from ./lib, dated October 2026, and it's param_set_dyndbg_classes(9) all the way through. slay, stay debugged, and may all your classes map correctly πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from