platform_device_unregister(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… platform_device_unregister(9) ✨

okay bestie, welcome to the Kernel API Manual β€” this one's about platform_device_unregister, and yes it's as iconic as it sounds πŸŽ€


🌸 NAME

platform_device_unregister β€” unregister a platform-level device 🫢


✨ SYNOPSIS

void platform_device_unregister (struct platform_device *pdev );

πŸ¦‹ ARGUMENTS

  • pdev β€” the platform device we're unregistering, aka the main character we're sending off πŸ‘‹

πŸ’– DESCRIPTION

okay so the unregistration does NOT happen all at once, it's a whole two-step moment, and honestly? it's giving choreography πŸ’…

  1. first we release all the resources and remove it from the subsystem πŸ”₯
  2. then we drop the reference count by calling platform_device_put πŸ’œ

two steps, no skipping, no cap. slay.


πŸ‘‘ SEE ALSO

Kernel file ./drivers/base/platform.c β€” plus the whole friend group, in the exact order they showed up to the party πŸŽ€


anyway that's the whole page, go be amazing with your platform devices πŸ’œβœ¨

source: ./drivers/base Β· date: October 2026 β€” mwah, catch you in the next manpage bestie, platform_device_unregister(9) out πŸŽ€πŸ¦‹πŸ’…

πŸ“¦ where this page comes from