Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ putq(D3) — UnixWare 2.01

Media Vault

Software Library

Restoration Projects

Artifacts Sought






       putq(D3)                                                    putq(D3)


       NAME
             putq - put a message on a queue

       SYNOPSIS
             #include <sys/stream.h>
             #include <sys/ddi.h>
             int putq(queue_t *q, mblk_t *bp);

          Arguments
             q         Pointer to the queue.

             bp        Pointer to the message.

       DESCRIPTION
             putq is used to put messages on a queue after the put(D2)
             routine has finished processing the message.  The message is
             placed after any other messages of the same priority, and flow
             control parameters are updated.  The queue's service routine
             is scheduled if it has not been disabled by a previous call to
             noenable(D3), or if the message being enqueued has greater
             than normal priority (that is, it is not in band zero).

          Return Values
             putq returns 1 on success and 0 on failure.

       USAGE
             putq can fail if there is not enough memory to allocate the
             accounting data structures used with messages whose priority
             bands are greater than zero.

          Level
             Base or Interrupt.

          Synchronization Constraints
             Does not sleep.

             Driver-defined basic locks, read/write locks, and sleep locks
             may be held across calls to this function.

             The caller cannot have the stream frozen [see freezestr(D3)]
             when calling this function.

          Examples
             See datamsg(D3) for an example of putq.




                           Copyright 1994 Novell, Inc.               Page 1













      putq(D3)                                                    putq(D3)


      REFERENCES
            getq(D3), insq(D3), msgb(D4), put(D2), putbq(D3), queue(D4),
            rmvq(D3), srv(D2)

      NOTICES
         Portability
            All processors

         Applicability
            ddi: 1, 2, 3, 4, 5, 5mp, 6, 6mp, 7, 7mp






































                          Copyright 1994 Novell, Inc.               Page 2








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