SAMESTR man page on SunOS

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

SAMESTR(9F)		 Kernel Functions for Drivers		   SAMESTR(9F)

NAME
       SAMESTR, samestr - test if next queue is in the same stream

SYNOPSIS
       #include <sys/stream.h>

       int SAMESTR(queue_t *q);

INTERFACE LEVEL
       Architecture independent level 1 (DDI/DKI).

PARAMETERS
       q    Pointer to the queue.

DESCRIPTION
       The SAMESTR() function is used to see if the next queue in a stream (if
       it exists) is the same type as the current queue	 (that	is,  both  are
       read  queues  or both are write queues). This function accounts for the
       twisted queue connections that occur in a STREAMS pipe  and  should  be
       used  in	 preference  to	 direct	 examination  of  the  q_next field of
       queue(9S) to see if the stream continues beyond q.

RETURN VALUES
       The SAMESTR() function returns 1 if the next queue is the same type  as
       the  current queue. It returns 0 if the next queue does not exist or if
       it is not the same type.

CONTEXT
       The SAMESTR() function can be called from user, interrupt, context.

SEE ALSO
       OTHERQ(9F)

SunOS 5.10			  16 Jan 2006			   SAMESTR(9F)
[top]

List of man pages available for SunOS

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