putbq man page on IRIX

Man page or keyword search:  
man Server   31559 pages
apropos Keyword Search (all sections)
Output format
IRIX logo
[printable version]



putbq(D3)							     putbq(D3)

NAME
     putbq - place a message at the head of a queue

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

   Arguments
     q	       Pointer to the queue.

     bp	       Pointer to the message.

DESCRIPTION
     putbq puts a message back at the head of a queue.	If messages of a
     higher priority are on the queue, then bp is placed at the head of its
     corresponding priority band.  See srv(D2) for more information about
     message priorities.

     All 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).

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

USAGE
     putbq is usually called when bcanput(D3) or canput(D3) determines that
     the message cannot be passed on to the next stream component.

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

     High priority messages should never be put back on a queue from within a
     service routine.

   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.

   Examples
     See bufcall(D3) for an example of putbq.

									Page 1

putbq(D3)							     putbq(D3)

REFERENCES
     bcanput(D3), canput(D3), getq(D3), insq(D3), msgb(D4), putq(D3),
     queue(D4), rmvq(D3), srv(D2)

									Page 2

[top]

List of man pages available for IRIX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net