devres_find(9)
β¨ NAME β¨
okay so bestie, welcome to devres_find(9) from the Kernel API Manual β itβs literally the Find device resource girlie and she is serving π
β¨
πΈ SYNOPSIS πΈ
void * devres_find (struct device *dev , dr_release_t release ,
dr_match_t match , void *match_data );
π ARGUMENTS π
devβ the Device to lookup resource from π«Άreleaseβ Look for resources associated with this release function πmatchβ Match function (optional) β¨match_dataβ Data for the match function π
π DESCRIPTION π
So the tea is: this finds the latest devres of dev which is associated with release and for which match returns 1 π₯. If match is NULL, itβs considered to match all β no cap, sheβs inclusive like that π
.
π¦ RETURN π¦
Pointer to found devres, and NULL if not found. Thatβs the whole return vibe, bestie πβ¨
π₯ SEE ALSO π₯
Kernel file ./drivers/base/devres.c β and the whole squad is here:
__devres_alloc_node(9)devres_for_each_res(9)devres_free(9)devres_add(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_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 bye bestie π«Ά β this cutie comes from ./drivers/base, dated October 2026, and the footer vibe is devres_find(9) β periodt ππ
π¦ 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