clean_registry(9)
π§Ή 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β thegsppointer, 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 π
- Kernel file
./drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r535/gsp.c nvkm_gsp_mem_ctor(9)struct registry_list_entry(9)add_registry(9)build_registry(9)strip(9)r535_gsp_rpc_set_registry(9)r535_gsp_msg_run_cpu_sequencer(9)struct rpc_ucode_libos_print_v1e_08(9)r535_gsp_msg_libos_print(9)create_debugfs(9)r535_gsp_libos_debugfs_init(9)create_pte_array(9)r535_gsp_libos_init(9)nvkm_gsp_radix3_sg(9)r535_debugfs_shutdown(9)is_empty(9)r535_gsp_copy_log(9)r535_gsp_retain_logging(9)r535_gsp_libos_debugfs_fini(9)
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
- 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