clean_registry(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🧹 clean_registry(9) β€” the Kernel API Manual page, bestie edition ✨

okay so this is the clean_registry(9) page from the Kernel API Manual β€” section 9, kernel developer land, very demure, very mindful πŸ’…


🌸 NAME 🌸

clean_registry β€” clean up registry memory in case of error

like, it's the cleanup crew, no cap 🧚


✨ SYNOPSIS ✨

void clean_registry (struct nvkm_gsp *gsp );

that's it. one function, one argument, zero drama πŸ’–


πŸŽ€ ARGUMENTS πŸŽ€

  • gsp β€” the gsp pointer, bestie. that's literally the whole description. it's giving "minimalist queen" πŸ‘‘

πŸ¦‹ DESCRIPTION πŸ¦‹

bestie, listen β€” call this function to clean up all memory allocated by add_registry in case of error and build_registry is not called.

so the vibe check is: if things went sideways and build_registry never ran, you hit this to tidy up everything add_registry left lying around. no leaks, no mess, main character energy only 🌈

⚠️ like, genuinely do call it β€” the whole point is the error path, and skipping cleanup on error is not the slay you think it is 😭

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group, fr fr πŸ’œ


and that's the page, bestie 🫢 this lil doc lives at ./drivers/gpu/drm/nouveau/nvkm... and it's dated October 2026 β€” so like, mark your calendars, it's giving future icon πŸ”₯πŸ’€βœ¨

πŸ“¦ where this page comes from