Rechercher une page de manuel
devres_get
Langue: en
Version: May 2009 (fedora - 06/07/09)
Section: 9 (Appels noyau Linux)
NAME
devres_get - Find devres, if non-existent, add one atomicallySYNOPSIS
- void * devres_get(struct device * dev, void * new_res, dr_match_t match, void * match_data);
ARGUMENTS
dev
- Device to lookup or add devres for
new_res
- Pointer to new initialized devres to add if not found
match
- Match function (optional)
match_data
- Data for the match function
DESCRIPTION
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.
RETURNS
Pointer to found or added devres.
COPYRIGHT
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre