1ALLOCATE_RESOURCE(9)          Hardware Interfaces         ALLOCATE_RESOURCE(9)
2
3
4

NAME

6       allocate_resource - allocate empty slot in the resource tree given
7       range & alignment
8

SYNOPSIS

10       int allocate_resource(struct resource * root, struct resource * new,
11                             resource_size_t size, resource_size_t min,
12                             resource_size_t max, resource_size_t align,
13                             resource_size_t (*alignf) (void *, const struct resource *, resource_size_t, resource_size_t),
14                             void * alignf_data);
15

ARGUMENTS

17       root
18           root resource descriptor
19
20       new
21           resource descriptor desired by caller
22
23       size
24           requested resource region size
25
26       min
27           minimum size to allocate
28
29       max
30           maximum size to allocate
31
32       align
33           alignment requested, in bytes
34
35       alignf
36           alignment function, optional, called if not NULL
37
38       alignf_data
39           arbitrary data to pass to the alignf function
40
42Kernel Hackers Manual 2.6.       November 2011            ALLOCATE_RESOURCE(9)
Impressum