Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ATOMIC_INT_INIT(D3) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       ATOMIC_INT_INIT(D3)                              ATOMIC_INT_INIT(D3)


       NAME
             ATOMIC_INT_INIT - initialize an ATOMIC_INT object

       SYNOPSIS
             #include <sys/types.h>
             #include <sys/ksynch.h>
             #include <sys/ddi.h>
             void ATOMIC_INT_INIT(atomic_int_t *counter, int value);

          Arguments
             counter   Points to an ATOMIC_INT object to be initialized.

             value     The value to store into the contents of counter.

       DESCRIPTION
             ATOMIC_INT_INIT initializes an ATOMIC_INT object for later
             use. As part of the initialization, the integer value within
             the object referenced by counter is initialized to value.

          Return Values
             None.

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

             ATOMIC_INT_INIT may be called multiple times for a single
             object.  However, the driver must serialize these calls by its
             own means (for example, by using sleep locks).

          Warnings
             Unlike ATOMIC_INT_WRITE, ATOMIC_INT_INIT does not serialize
             with any other operation on ATOMIC_INT objects (that is, it is
             not atomic).

          Level
             Initialization or Base.

          Synchronization Constraints
             Does not sleep.

             Sleep locks may be held across calls to this function.

       REFERENCES
             ATOMIC_INT(D4), ATOMIC_INT_ADD(D3), ATOMIC_INT_ALLOC(D3),
             ATOMIC_INT_DEALLOC(D3), ATOMIC_INT_DECR(D3),


                           Copyright 1994 Novell, Inc.               Page 1













      ATOMIC_INT_INIT(D3)                              ATOMIC_INT_INIT(D3)


            ATOMIC_INT_INCR(D3), ATOMIC_INT_READ(D3), ATOMIC_INT_SUB(D3),
            ATOMIC_INT_WRITE(D3)

      NOTICES
         Portability
            All processors

         Applicability
            ddi: 6, 6mp, 7, 7mp







































                          Copyright 1994 Novell, Inc.               Page 2








Typewritten Software • bear@typewritten.org • Edmonds, WA 98026