devres_remove(9)
π
devres_remove π
π from the Kernel API Manual, bestie β yes, that manual π
okay so we're doing kernel resource management today, and honestly? it's giving main character energy. this is the page for devres_remove(9), and we're gonna get into it. no cap.
πΈ NAME πΈ
devres_remove β Find a device resource and remove it
β¨ SYNOPSIS β¨
void * devres_remove (struct device *dev , dr_release_t release , dr_match_t match , void *match_data );
π ARGUMENTS π
devβ Device to find resource fromreleaseβ Look for resources associated with this release functionmatchβ Match function (optional)match_dataβ Data for the match function
π¦ DESCRIPTION π¦
okay bestie, here's the vibe: find the latest devres of dev associated with release and for which match returns 1. if match is NULL, it's considered to match all. if found, the resource is removed atomically and returned. slay.
π RETURN π
Pointer to removed devres on success, NULL if not found.
π SEE ALSO π
the whole devres/devm friend group is linked here, and yes, we're listing every single one β iykyk:
- Kernel file
./drivers/base/devres.c __devres_alloc_node(9)devres_for_each_res(9)devres_free(9)devres_add(9)devres_find(9)devres_get(9)devres_destroy(9)devres_release(9)devres_release_all(9)devres_open_group(9)devres_close_group(9)devres_remove_group(9)devres_release_group(9)__devm_add_action(9)devm_remove_action_nowarn(9)devm_release_action(9)devm_kmalloc(9)devm_krealloc(9)devm_kstrdup(9)devm_kstrdup_const(9)devm_kvasprintf(9)devm_kasprintf(9)devm_kfree(9)devm_kmemdup(9)devm_kmemdup_const(9)devm_get_free_pages(9)devm_free_pages(9)__devm_alloc_percpu(9)
okay that's the whole page, bestie π this one lives in the ./drivers/base source spot, dated October 2026, and its manual tag is devres_remove(9) β mwah, slay, bye πβ¨
π¦ 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