onboard_dev_destroy_pdevs(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… onboard_dev_destroy_pdevs(9) β€” like, the Kernel API Manual, bestie πŸŽ€

okay so picture this: you're deep in the kernel, in the Kernel API Manual section, and you've got some onboard platform devices that need to go bye-bye. that's literally this whole function. it's giving cleanup era ✨


🌸 NAME 🌸

onboard_dev_destroy_pdevs β€” frees the resources of onboard platform devices πŸ§ΉπŸ’–

like yes, that's the job. it destroys, it frees, it slays.


✨ SYNOPSIS ✨

void onboard_dev_destroy_pdevs (struct list_head *pdev_list );

no return value, no drama, just vibes and void 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • pdev_list β€” the list of onboard platform devices πŸ’« this is the list you're about to hand over to the destroyer (affectionate)

πŸ”₯ DESCRIPTION πŸ”₯

okay so what it actually does, no cap:

it destroys the platform devices in the given list, and it frees the memory associated with the list entry. that's it. that's the whole thing. clean, iconic, periodt πŸ’…

bestie this is the cleanup function β€” the list and its entries are getting destroyed and the memory is getting freed, so don't come back later expecting them to still be there πŸ™ˆ

πŸ‘‘ SEE ALSO πŸ‘‘

  • Kernel file ./drivers/usb/misc/onboard_usb_dev_pdevs.c β€” the source, go read it, iykyk πŸ“–
  • onboard_dev_create_pdevs(9) β€” the main character counterpart that makes the pdevs in the first place 🌈 (create then destroy, the circle of life fr fr)

and that's the page, babe πŸ“ this lil gem lives over in ./drivers/usb/misc, dated October 2026 β€” so go forth, destroy those pdevs responsibly, and remember: every create deserves its destroy πŸ’œβ­

πŸ“¦ where this page comes from