Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

dupb(9r) [osf1 man page]

dupb(9r)																  dupb(9r)

NAME
dupb - STREAMS: Duplicates a message block descriptor SYNOPSIS
#include <sys/stream.h> MBLKP dupb( MBLKP message_block_ptr ); ARGUMENTS
Specifies a pointer to the message block to be duplicated. The typedef MBLKP is an alternate name for typedef struct msgb *. DESCRIPTION
The dupb interface creates a new message block structure to reference the message block pointed to by the message_block_ptr argument. Unlike copyb, the dupb interface does not copy the information in the data block, but creates a new structure to point to it. The new mes- sage block structure contains the same information as the first message block structure. RETURN VALUES
Upon successful completion, the dupb interface returns a pointer to the newly allocated message block. This newly allocated message block is of type struct msgb *. The msgb data structure is defined in the /usr/sys/include/sys/stream.h file. Otherwise, dupb returns a NULL pointer. SEE ALSO
Kernel Interfaces: copyb(9r) Programmer's Guide: STREAMS dupb(9r)

Check Out this Related Man Page

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

NAME
dupmsg - duplicate a message SYNOPSIS
#include <sys/stream.h> mblk_t *dupmsg(mblk_t *mp); INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI). PARAMETERS
mp Pointer to the message. DESCRIPTION
dupmsg() forms a new message by copying the message block descriptors pointed to by mp and linking them. dupb(9F) is called for each mes- sage block. The data blocks themselves are not duplicated. RETURN VALUES
If successful, dupmsg() returns a pointer to the new message block. Otherwise, it returns a NULL pointer. A return value of NULL indi- cates either memory depletion or the data block reference count, db_ref (see datab(9S)), has reached a limit(255). See dupb(9F). CONTEXT
dupmsg() can be called from user, kernel, or interrupt context. EXAMPLES
Example 1 Using dupmsg() See copyb(9F) for an example using dupmsg(). SEE ALSO
copyb(9F), copymsg(9F), dupb(9F), datab(9S) Writing Device Drivers STREAMS Programming Guide SunOS 5.11 11 Apr 1991 dupmsg(9F)
Man Page

5 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Transparent ioctls Streams calls

What are transparent ioctls messages and when and why we have to issue copyin or copyout kernel utilities with respect to ioctls calls to a Stream. (2 Replies)
Discussion started by: S.P.Prasad
2 Replies

2. Infrastructure Monitoring

Network Traffic

Hi all, Got a strange one here, well not so much strange, different :-) I need to work out if a server is particulary chatty, whether its talking / communicating heavily to a particular server, as Im planning to physically move the server to a different server, over a link. Hence the... (6 Replies)
Discussion started by: sbk1972
6 Replies

3. Shell Programming and Scripting

How to monitor send/receive bytes

Hello, I need to create a script to monitor sent/received packets for a period of time (the period of time will be a users input) and write the result to some txt file. Is there any command (don`t want to use any 3rd party sw) what I can use? I`m using Solaris 10. Thank you (14 Replies)
Discussion started by: msojka77
14 Replies

4. UNIX for Advanced & Expert Users

Conflicts in the output of TOP command

Hi All, In the output of TOP command in my unix system, i monitored that some process has utilization more than 100% even some process has 4000% utilisation. Please help me understand how it is possible to show more than 100% utilization. Please see the screenshot below:... (2 Replies)
Discussion started by: anand2308
2 Replies

5. Solaris

Too much TCP retransmitted and TCP duplicate on server Oracle Solaris 10

I have problem with oracle solaris 10 running on oracle sparc T4-2 server. Os information: 5.10 Generic_150400-03 sun4v sparc sun4v Output from tcpstat.d script TCP bytes: out outRetrans in inDup inUnorder 6833763 7300 98884 0... (2 Replies)
Discussion started by: insatiable1610
2 Replies