debug_register_static(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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, a debug_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 ⭐

  • 0 on success β€” slay, it worked πŸŽ‰
  • a negative error code on failure β€” not slay, something went wrong 😭

🌈 SEE ALSO 🌈

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