next up previous contents
Next: 4.5 fluke_region_create_hash: create a Up: 4 Regions Previous: 4.3 References

4.4 fluke_region_create: create a new memory region

SYNOPSIS

fluke_error_t fluke_region_create( fluke_region_t *new_region);

DESCRIPTION

Creates a new empty region, with no virtual memory association. Before it can be mapped, the region must be associated with a task address space using fluke_region_set_state.

The region's hash value will be set to an implementation-specific value. To set a specific hash value use fluke_region_create_hash.

PARAMETERS

new_region
A pointer to the address in the current task's address space at which to create the new region object. There must be no existing Fluke objects at this location; otherwise the results are undefined.

ERRORS

If any of the following errors is detected, the appropriate error code is returned: All of these have an implicit FLUKE_ prefix.
NO_MEMORY
Insufficient resources were available.

If any of the following errors is detected by the Fluke implementation, it causes the current thread to take a synchronous exception with one of the following codes. All of these have an implicit FLUKE_INSANITY_ prefix.
OBJECT_EXISTS
An object already exists at the location pointed to by new_region.
NOT_ALIGNED
new_region is not properly aligned for a region object.

RELATED INFORMATION

fluke_region_set_state, fluke_region_create_hash



Utah Flux Research Group