ASAP 2.7 Extension Manual
Implementing the ASAP Extension in an Application
HP NonStop ASAP Extension Manual—425265-004
4-12
ASAP_REMOVE_ Procedure
seg^offset
INT(32)
is the offset into the shared memory segment allocated to the metrics for this
domain. This was initially returned to the caller in its call to
ASAP_REGISTER_.
error^detail
INT .EXT:ref:1
is returned here when this parameter is used and an error occurs.
segment^id
INT
is the segment identifier to be used by the registration procedure in its call to
SEGMENT_DEALLOCATE_. The default is 0. This value must be the same
value used to register the domain in the call to ASAP_REGISTER_.
flags
INT
is a control word indicating:
Syntax for C Programmers
#include ASAPXH(ASAP_REMOVE_)
/* #pragma asap_remove_ */
_tal _extensible short asap_remove_ (
long , /* IN REQUIRED */
/* Shared memory segment offset for this domain */
short _far *, /* OUT OPTIONAL */
/* Detailed error */
short , /* IN OPTIONAL */
/* Segment id that will be passed to the */
/* SEGMENT_DEALLOCATE_ procedure */
short /* IN OPTIONAL */
/* Flags word, flags.<15> = deallocate segment */
);
Example Removal Procedure Calls
Example 1 – Normal Removal
int(32) seg^offset
;
flags.<0:14> Reserved for future use.
flags.<15> Deallocate the shared memory segment. Set this flag when you
remove the last domain from a process.