devres_get - Find devres, if non-existent, add one atomically
void * devres_get(struct device * dev, void * new_res, dr_match_t match, void * match_data);
Find the latest devres of dev which has the same release function as new_res and for which match return 1. If found, new_res is freed; otherwise, new_res is added atomically.
Pointer to found or added devres.
|January 2017||Kernel Hackers Manual 4.8.|