devres_get(9) suse man page | unix.com

Man Page: devres_get

Operating Environment: suse

Section: 9

DEVRES_GET(9)							   Driver Basics						     DEVRES_GET(9)

NAME
devres_get - Find devres, if non-existent, add one atomically
SYNOPSIS
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
Kernel Hackers Manual 2.6. July 2010 DEVRES_GET(9)
Related Man Pages
device_create(9) - centos
struct_class(9) - centos
device_schedule_callback_owner(9) - suse
struct_ff_device(9) - suse
struct_input_polled_dev(9) - suse
Similar Topics in the Unix Linux Community
Migrating to UNIX
Cut command on RHEL 6.8 compatibility issues
Update kernel Linux without reboot?!
The Future of the PM (Private Message) System at UNIX.com
Shopt -s histappend