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

  man pages->Tru64 Unix man pages -> insq (9r)              
Title
Content
Arch
Section
 

insq(9r)

Contents


NAME    [Toc]    [Back]

       insq - STREAMS: Inserts a STREAMS message into a queue

SYNOPSIS    [Toc]    [Back]

       #include <sys/stream.h>

       int insq(
               queue_t *message_queue,
               MBLKP message,
               MBLKP message_to_be_inserted );

ARGUMENTS    [Toc]    [Back]

       Specifies a pointer to the message queue that contains the
       message  passed  to  the  message  argument.  The  typedef
       queue_t  is  an  alternate  name for struct queue_entry *.
       Specifies the enqueued message before which the  new  message
  is to be inserted. The typedef MBLKP is an alternate
       name for typedef struct msgb *.  Specifies the message  to
       be  inserted.  The  typedef MBLKP is an alternate name for
       typedef struct msgb *.

DESCRIPTION    [Toc]    [Back]

       The insq interface inserts a STREAMS message into a queue.
       The  message  to  be  inserted (the message_to_be_inserted
       argument) is placed in the queue (the message_queue  argument)
  immediately  before the message associated with the
       message argument. If the message argument  is  NULL,  insq
       places the new message at the end of the queue. The interface
 ignores the queue class of the  new  message  and  it
       updates  all  flow-control  parameters. The insq interface
       also enables the service procedure unless the QNOENB  flag
       bit is set.

CAUTIONS    [Toc]    [Back]

       If  the  message  argument is non-NULL, it must point to a
       message on the queue or a system panic could occur.

RETURN VALUES    [Toc]    [Back]

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

SEE ALSO    [Toc]    [Back]

      
      
       Programmer's Guide: STREAMS



                                                         insq(9r)
[ Back ]
 Similar pages
Name OS Title
putq Tru64 STREAMS: Puts a message on a queue
flushq Tru64 STREAMS: Removes a message from a queue
getq Tru64 STREAMS: Gets a message from the front of the queue
putctl Tru64 STREAMS: Puts a control message on a queue
putbq Tru64 STREAMS: Places a message at the head of a queue
canput Tru64 STREAMS: Tests for room in a message queue
rmvq Tru64 STREAMS: Removes a message block from a queue
qenable Tru64 STREAMS: Enables a queue
ifnet Tru64 STREAMS ifnet module for bridging STREAMS device drivers to sockets
OTHERQ Tru64 STREAMS: Gets a pointer to a module's other queue
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service