radeon_driver_unload_kms(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– radeon_driver_unload_kms(9) β€” Kernel API Manual πŸ’–

✨ NAME ✨

Okay so this is radeon_driver_unload_kms(9), and it’s the main unload function for KMS. That’s the whole vibe: unload, but make it kernel-coded. Lowkey iconic. 🫢

πŸŽ€ SYNOPSIS πŸŽ€

void radeon_driver_unload_kms (struct drm_device *dev );

Bestie, look at that signature β€” it’s giving β€œI take one pointer and I’m out.” πŸ’…

🌸 ARGUMENTS 🌸

  • dev β€” the drm dev pointer. Yep, that’s it. One argument, no drama. Vibe check passed. ✨

πŸ¦‹ DESCRIPTION πŸ¦‹

This is the main unload function for KMS (all asics). Literally the cleanup main character. Not me being obsessed with a cleanup function, but here we are β€” it’s highkey important. 🫢

The way that it calls radeon_modeset_fini to tear down the displays, and radeon_device_fini to tear down the rest of the device (CP, writeback, etc.). So displays first, then the rest of the device bits β€” slay. Periodt. πŸ’…

Returns 0 on success. No cap, that’s what the page says, so write it down. βœ…

bestie note: the synopsis says void and the description says it returns 0 on success β€” both facts are in the original, fr fr, so keep both in your notes. πŸ’€

🌈 SEE ALSO 🌈


That’s the whole page, bestie! πŸŽ€ Source/version: ./drivers/gpu/drm/radeon β€” date: October 2026. xoxo, your kernel bestie πŸ’–

πŸ“¦ where this page comes from