__check_region(9)

__check_region9

Check if a resource region is busy or free

Usage

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

Arguments

parent

parent resource descriptor

start

resource start address

n

resource region size

Overview

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

Note

This function is deprecated because its use is racy. Even if it returns 0, a subsequent call to request_region may fail because another driver etc. just allocated the region. Do NOT use it. It will be removed from the kernel.

Releases

5 releases since Debian 4.0 (Etch); the text changed 4 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8

From linux-manual-3.16 3.16.56-1+deb8u1 in Debian 8 (Jessie). Parsed by carta from the page's man source.