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

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

putctl(9r)

Contents


NAME    [Toc]    [Back]

       putctl - STREAMS: Puts a control message on a queue

SYNOPSIS    [Toc]    [Back]

       #include <sys/stream.h>

       int putctl(
               queue_t *queue_pointer,
               int type );

ARGUMENTS    [Toc]    [Back]

       Specifies  a  pointer to the queue to which the message is
       to be sent. The typedef queue_t is an alternate  name  for
       struct  queue_entry  *.  Specifies a message type (must be
       control and not a data type).

DESCRIPTION    [Toc]    [Back]

       The putctl interface tests the type argument to make  sure
       a  data  type was not specified. It then attempts to allocate
 a message block. The putctl interface fails if a message
  block cannot be allocated or if the type argument is
       M_DELAY, M_PROTO, or M_PCPROTO.

NOTES    [Toc]    [Back]

       The putctl  interface  calls  the  putctl_comm  interface,
       which  actually  performs  the work of sending the control
       message.

RETURN VALUES    [Toc]    [Back]

       Upon successful completion, putctl returns  the  value  1.
       The  putctl  interface  fails if a message block cannot be
       allocated or if the type argument is M_DELAY, M_PROTO,  or
       M_PCPROTO.

SEE ALSO    [Toc]    [Back]

      
      
       Kernel Interfaces: datamsg(9r), putctl1(9r)



                                                       putctl(9r)
[ Back ]
 Similar pages
Name OS Title
putq Tru64 STREAMS: Puts a 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
getq Tru64 STREAMS: Gets a message from the front of the queue
flushq Tru64 STREAMS: Removes a message from a queue
rmvq Tru64 STREAMS: Removes a message block from a queue
canput Tru64 STREAMS: Tests for room in a message queue
putbq Tru64 STREAMS: Places a message at the head of a queue
strctlsz HP-UX maximum size of streams message control (bytes)
STRCTLSZ HP-UX maximum size of streams message control (bytes)
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service