onboard_dev_destroy_pdevs(9)
π 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
- 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