_SETSPPM()--Set Multiple Space Pointers for i5/OS PASE


  Syntax
 #include <as400_protos.h>

 void _SETSPPM(ILEpointer *const *target);

  Default Public Authority: *USE

  Library: Standard C Library (libc.a)

  Threadsafe: Yes

Note: This function can only be used in an i5/OS PASE program. See i5/OS PASE for more information about creating i5/OS PASE programs.

The _SETSPPM() function sets multiple tagged space pointers to the teraspace equivalents of i5/OS PASE memory addresses.


Parameters

target
(Input/Output) Pointer to a list of pointers (of type ILEpointer), with a null pointer marking the end of the list. _SETSPPM updates each ILEpointer with a tagged space pointer to the teraspace equivalent address of the i5/OS PASE memory address input through the addr field of the ILEpointer.

Authorities

_SETSPPM requires no authority.


Return Value

_SETSPPM returns no function result.


Error Conditions

Any error is reported with an i5/OS exception message that the system converts to an i5/OS PASE signal. See i5/OS PASE Signal Handling for information about handling i5/OS exceptions.


Usage Notes

  1. _SETSPPM returns a 16-byte null ILEpointer if the i5/OS PASE memory address is null (zero) or points to a location that cannot contain i5/OS PASE memory. i5/OS PASE memory is allocated from teraspace, but teraspace has a limited capacity smaller than 64-bits, so i5/OS PASE can only provide addressability to a subset of a 64-bit address space.

  2. _SETSPPM returns space pointers regardless of whether there is currently any memory at the i5/OS PASE addresses.

  3. A tagged space pointer to a teraspace location must only be used by the process that owns the teraspace, although the current system implementation does not reliably enforce this restriction. Applications must not assume that a process can reference memory in the teraspace of another process because future system implementations may make this impossible. Tagged space pointers to teraspace memory that were either inherited by the child process of a fork or stored in shared memory by another process should be considered unusable.

  4. Tagged (16-byte) pointers must not be stored in memory mapped from a bytestream file (by either mmap or shmat) although the current system implementation does not reliably enforce this restriction. Tagged pointers can be stored in shared memory objects (created by shmget and mapped by shmat), but a tagged space pointer to teraspace memory cannot be reliably used by a process other than the one that owns the teraspace.

Related Information



API introduced: V5R3
Top | i5/OS PASE APIs | APIs by category