debug_register_static(9)
π debug_register_static(9)
okay so this is a page straight out of the Kernel API Manual and honestly? she's a short one but she matters π bestie, if you're messing with static debug areas on s390, this is your girl.
β¨ NAME β¨
debug_register_static β literally just registers a static debug area. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int debug_register_static (debug_info_t *id , int pages_per_area , int
nr_areas );
three args, one int back. no cap, that's it. π¦
π ARGUMENTS π
idβ the handle for your static debug area. your little main-character pointer, adebug_info_t *. πpages_per_areaβ how many pages per area. yes, exactly what it sounds like. π₯nr_areasβ the number of debug areas. the more the merrier, i guess. β¨
π DESCRIPTION π
so what she does is register a debug_info_t that you defined using DEFINE_STATIC_DEBUG_INFO. that's the tea. π
π¦ NOTE π¦
lowkey important: you don't even have to call this yourself β it's called automatically via an initcall that DEFINE_STATIC_DEBUG_INFO generates for you. she's got main character energy and shows up on her own. π
β RETURN β
0on success β slay, it worked π- a negative error code on failure β not slay, something went wrong π
π SEE ALSO π
- the kernel file
./arch/s390/kernel/debug.c debug_next_entry(9)debug_to_act_entry(9)debug_prev_entry(9)debug_move_entry(9)debug_dump(9)debug_register_mode(9)debug_register(9)debug_unregister(9)debug_set_level(9)debug_stop_all(9)debug_set_critical(9)debug_register_view(9)debug_unregister_view(9)
like a whole friend group of debug functions, fr fr π«Ά
that's the page bestie!! brought to you by ./arch/s390/kernel, dated October 2026 β mwah, go register something static ππ§ββοΈβ¨
π¦ 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