DOC HOME SITE MAP MAN PAGES GNU INFO SEARCH PRINT BOOK
 
SVR5

ATOMIC_INT_INCR(D3)


ATOMIC_INT_INCR -- increment an ATOMIC_INT value

Synopsis

   #include <sys/types.h>
   #include <sys/ksynch.h>
   #include <sys/ddi.h>
   

void ATOMIC_INT_INCR(atomic_int_t *counter);

Description

ATOMIC_INT_INCR( ) increments the integer value stored within the ATOMIC_INT(D4) object pointed to by counter.

Arguments


counter
Points to an ATOMIC_INT object to be incremented.

Return values

None.

Usage

The ATOMIC_INT(D4) object pointed to by counter must have been previously allocated by ATOMIC_INT_ALLOC(D3) and initialized by ATOMIC_INT_INIT(D3).

Warnings

The atomicity properties of ATOMIC_INT objects are strictly limited to a single object. See ``Atomic locks'' in HDK Technical Reference.

Context and synchronization

Non-blockable, interrupt, user, or blockable context. Initialization, Base or Interrupt.

Hardware applicability

All

Version applicability

ddi: 6, 6mp, 7, 7mp, 7.1, 7.1mp, 8, 8mp

References

ATOMIC_INT(D4), ATOMIC_INT_ADD(D3), ATOMIC_INT_ALLOC(D3), ATOMIC_INT_DEALLOC(D3), ATOMIC_INT_DECR(D3), ATOMIC_INT_INIT(D3), ATOMIC_INT_READ(D3), ATOMIC_INT_SUB(D3), ATOMIC_INT_WRITE(D3)

``Atomic locks'' in HDK Technical Reference


19 June 2005
© 2005 The SCO Group, Inc. All rights reserved.
OpenServer 6 and UnixWare (SVR5) HDK - June 2005