*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->Tru64 Unix man pages -> putq (9r)              



NAME    [Toc]    [Back]

       putq - STREAMS: Puts a message on a queue

SYNOPSIS    [Toc]    [Back]

       #include <sys/stream.h>

       int putq(
               queue_t *queue_pointer,
               MBLKP message_ptr );

ARGUMENTS    [Toc]    [Back]

       Specifies  a  pointer to the queue to which the message is
       to be added. The typedef queue_t is an alternate name  for
       struct  queue_entry *.  Specifies a pointer to the message
       block to be placed on the queue. The typedef MBLKP  is  an
       alternate name for typedef struct msgb *.

DESCRIPTION    [Toc]    [Back]

       The  putq  interface  puts  a  message on a driver's queue
       after the module's put interface has  finished  processing
       the  message.  The putq interface places the message after
       any other messages of the same priority and  then  updates
       any flow-control parameters. If the QNOENB flag bit is not
       set, putq enables the service interface. If no  processing
       is  done,  the  putq interface can be used as the module's
       put interface.

RETURN VALUES    [Toc]    [Back]

       Upon successful completion, putq returns the value  1.  On
       failure, it returns the value zero (0).

SEE ALSO    [Toc]    [Back]

       Kernel Interfaces: putbq(9r), qenable(9r), rmvq(9r)

[ Back ]
 Similar pages
Name OS Title
putctl Tru64 STREAMS: Puts a control message on a queue
putctl1 Tru64 Puts a control message with a 1-byte parameter on a queue
insq Tru64 STREAMS: Inserts a STREAMS message into a queue
flushq Tru64 STREAMS: Removes a message from a queue
getq Tru64 STREAMS: Gets a message from the front of the queue
putbq Tru64 STREAMS: Places a message at the head of a queue
rmvq Tru64 STREAMS: Removes a message block from a queue
canput Tru64 STREAMS: Tests for room in a message queue
mq_open Tru64 Establishes the connection between a message queue and a message queue descriptor (P1003.1b)
qenable Tru64 STREAMS: Enables a queue
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service