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

NAME

6       __check_region - check if a resource region is busy or free
7

SYNOPSIS

9       int __check_region(struct resource * parent, resource_size_t start,
10                          resource_size_t n);
11

ARGUMENTS

13       parent
14           parent resource descriptor
15
16       start
17           resource start address
18
19       n
20           resource region size
21

DESCRIPTION

23       Returns 0 if the region is free at the moment it is checked, returns
24       -EBUSY if the region is busy.
25

NOTE

27       This function is deprecated because its use is racy. Even if it returns
28       0, a subsequent call to request_region may fail because another driver
29       etc. just allocated the region. Do NOT use it. It will be removed from
30       the kernel.
31
33Kernel Hackers Manual 2.6.         June 2019                 __CHECK_REGION(9)
Impressum