atomic_retadd

Atomically adds a 32-bit value to the specified memory location and returns the value.

Library:LibC
Classification:Other
Service:General C Services

Syntax

  #include <stdlib.h> 
   
  unsigned long atomic_retadd (
     unsigned long   *addr,
     unsigned long    value );
  

Parameters

addr

(IN) Points to the memory location for the operation.

value

(IN) Specifies the value to add to the memory location.

Remarks

The memory location address is expected to be valid. If an invalid address is passed, the server will abend.

See Also