atomic_inc

Atomically increments a 32-bit value in the specified memory location by 1.

Library:LibC
Classification:Other
Service:General C Services

Syntax

  #include <stdlib.h> 
   
  void   atomic_inc (
     unsigned long   *addr);
  

Parameters

addr

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

Remarks

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

See Also