validateaddressrange

Determines whether the memory address range is valid.

Library:LibC
Service:Library

Syntax

  #include <library.h> 
   
  int validateaddressrange (
     const void   *addr,
     size_t        bytes)
  

Parameters

addr

(IN) Points to the address to validate.

bytes

(IN) Specifies the number of bytes to validate.

Return Values

Returns 0 if the memory address is accessible for the specified number of bytes; otherwise returns -1.