1DEVRES_ADD(9) Driver Basics DEVRES_ADD(9)
23
4
NAME
6devres_add - Register device resource
7
SYNOPSIS
9void devres_add(struct device * dev, void * res);
10
ARGUMENTS
12dev
13Device to add resource to
1415
res
16Resource to register
17
DESCRIPTION
19Register devres res to dev. res should have been allocated using
20devres_alloc. On driver detach, the associated release function will be
21invoked and devres will be freed automatically.
22
COPYRIGHT
24Kernel Hackers Manual 3.10 June 2019 DEVRES_ADD(9)