debug_level_enabled(9)
π¦ 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 partylevelβ debug level β the level you're asking about, bestie
π RETURN π
trueif 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
- 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