login
Header Space

 
 

__check_region(9)

July 19, 2007 - 1:23am
Submitted by Jeremy on July 19, 2007 - 1:23am.

INDEX

    NAME, SYNOPSIS, ARGUMENTS, DESCRIPTION, NOTE, COPYRIGHT

    "__CHECK_REGION" "9" "July 2007" "Kernel Hackers Manual 2.6.22" "Hardware Interfaces"

    NAME

    __check_region - check if a resource region is busy or free

    SYNOPSIS

    "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

    DESCRIPTION

    Returns 0 if the region is free at the moment it is checked, returns -EBUSYfR
    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_regionfR
    may fail because another driver etc. just allocated the region. Do NOT use it. It will be removed from the kernel.

    COPYRIGHT

speck-geostationary