devres_remove_group(9)
π devres_remove_group(9) β Kernel API Manual, bestie edition
okay so this is devres_remove_group(9), straight out of the Kernel API Manual, and it's literally the "yeet the group" button for devres. no cap. π
β¨ NAME β¨
devres_remove_group β remove a devres group π
π¦ SYNOPSIS π¦
void devres_remove_group (struct device *dev , void *id );
that's it. that's the whole signature. void, so it gives nothing back β it just does. main character energy fr fr.
πΈ ARGUMENTS πΈ
devβ the device you're removing the group for π«Άidβ the ID of the target group, and yes it can beNULL. it's allowed to be nothing. we love a flexible icon.
π DESCRIPTION π
So what it does: it removes the group identified by id. that's the whole vibe check. π§
And if id is NULL? Then the latest open group gets selected. automatically. no notes. β
π¨ important caveat, don't skip this: removing a group doesn't affect any other resources. it's not a purge, it's not a rampage, it's just that one group. other resources stay unbothered, living their lives. π
π₯ SEE ALSO π₯
Kernel file ./drivers/base/devres.c, plus the entire devres/devm friend group β every single one of them, no skipping:
__devres_alloc_node(9)devres_for_each_res(9)devres_free(9)devres_add(9)devres_find(9)devres_get(9)devres_remove(9)devres_destroy(9)devres_release(9)devres_release_all(9)devres_open_group(9)devres_close_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)
and that's the page!! π brought to you by ./drivers/base, dated October 2026, version Kernel API Manual β mwah, go read the source, ily, 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