debug_level_enabled(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ¦‹ debug_level_enabled(9) β€” a Kernel API Manual moment πŸ¦‹

okay bestie, so this one's from the Kernel API Manual and it's genuinely such a useful little function?? like, it's the vibe-check of the debug world πŸ’…

✨ NAME ✨

debug_level_enabled β€” returns true if debug events for the specified level would be logged. Otherwise returns false. that's it, that's the whole job, and she ate πŸŽ€

🌸 SYNOPSIS 🌸

bool debug_level_enabled (debug_info_t *id , int level );

πŸ’– ARGUMENTS πŸ’–

  • id β€” handle for debug log πŸ”₯ this is your lil pass to the debug party
  • level β€” debug level ⭐ the level you're asking about, bestie

πŸ‘‘ RETURN πŸ‘‘

  • true if level is less or equal to the current debug level. periodt πŸ’…
ngl that's the only bullet in the original too β€” if it's not less-or-equal, you get false, no cap πŸ™ˆ

🧚 SEE ALSO 🧚

Kernel file ./arch/s390/include/asm/debug.h plus the whole friend group of related calls, all listed here fr fr:

debug_event(9), debug_int_event(9), debug_long_event(9), debug_text_event(9), debug_sprintf_event(9), debug_exception(9), debug_int_exception(9), debug_long_exception(9), debug_text_exception(9), debug_sprintf_exception(9), DEFINE_STATIC_DEBUG_INFO(9)


and that's the page!! 🫢 this lil icon lives at ./arch/s390/include/asm, dated October 2026, and she's filed under debug_level_enabled(9) β€” mwah, go check your debug levels bestie, ily πŸ’œβœ¨

πŸ“¦ where this page comes from