SAM function SAM-Memory-region-is-protected()

From SoOS

Jump to: navigation, search


[edit] Name

SAM_Memory_region_is_protected - Determine if a memory region within a SAM context is protected

[edit] Synopsis

#include <sam.h>
int SAM_Memory_region_is_protected(SAM_t sam, void *addr);

[edit] Description

The SAM_Memory_region_is_protected() function is used to check if the memory address addr is currently registered and protected in the context determined by the SAM Structure object sam.

[edit] Return value

The return value is 0 if the region is not protected, and any other value if it is protected.

[edit] Errors

None, assumes correct input parameters.

[edit] Examples


[edit] See also

SAM_Memory_address_register(), SAM_Memory_region_register(), SAM_Memory_region_unregister(), SAM_Memory_region_protect(), SAM_Memory_region_release(), <sam.h>.