msgsize(9F) Kernel Functions for Drivers msgsize(9F)NAME
msgsize - Return the total number of bytes in a message
SYNOPSIS
#include <sys/stream.h>
#include <sys/strsun.h>
size_t msgsize(mblk_t *mp);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI)
PARAMETERS
mp Message to be evaluated.
DESCRIPTION
The msgsize() function counts the number of bytes in a message, regardless of the data type of the underlying data blocks.
RETURN VALUES
Number of bytes in the message.
CONTEXT
This function can be called from user, kernel or interrupt context.
SEE ALSO msgdsize(9F)
STREAMS Programming Guide
SunOS 5.10 9 June 2004 msgsize(9F)
Check Out this Related Man Page
mioc2ack(9F) Kernel Functions for Drivers mioc2ack(9F)NAME
mioc2ack - Convert an M_IOCTL message to an M_IOCACK message
SYNOPSIS
#include <sys/stream.h>
#include <sys/strsun.h>
void mioc2ack(mblk_t *mp, mblk_t *dp, size_t count, int rval);
INTERFACE LEVEL
Solaris DDI specific (Solaris DDI).
PARAMETERS
mp M_IOCTL message.
dp Payload to associate with M_IOCACK message.
count Value to set the ioc_count of the iocblk(9S) to.
rval Value to set the ioc_rval of the iocblk(9S) to.
DESCRIPTION
The mioc2ack() function converts an M_IOCTL message into an M_IOCACK message using the supplied arguments.
To convert the message, mioc2ack() changes the message type to M_IOCACK, sets the ioc_count and ioc_rval members of the iocblk(9S) associ-
ated with mp to the passed-in values, and clears the ioc_error field. Further, it frees any message blocks chained off of mp->b_cont and
resets mp->b_cont to dp. Finally, if dp is not NULL, mioc2ack() resets dp->b_wptr to be dp->b_rptr + count (that is, it sets dp to be
exactly count bytes in length).
RETURN VALUES
None.
CONTEXT
This function can be called from user, kernel or interrupt context.
SEE ALSO miocack(9F), miocnak(9F), iocblk(9S)
STREAMS Programming Guide
SunOS 5.11 9 June 2004 mioc2ack(9F)
Hi,
from the manual
listen(2): listen for connections on socket - Linux man page
It has a parameter called backlog and it limits the maximum length of queue of pending list.
If I set backlog to 128, is it means no more than 128 packets can be handled by server?
If I have three... (3 Replies)
Hi All,
First of all thanks for reading this post.
In my application, I am trying to create a new message queue . I am attaching the code below.
mqd_t mqopen2(const char * pName,
unsigned long Flags,
long maxMsg,
long msgSz)
{... (15 Replies)
Hi,
I have a UDP server and client program, and they must run within a program, so I decided two threads, one for UDP server and another for UDP client.
The simple architecture is shown in attachment.
However, I can't send the packets out on the UDP client, no any time message and... (2 Replies)
Hi,
I am a newbie to linux programming. I have implemented msgqueue in C.
msgrcv() call at the client end is as below:
msgrcv( msgqid, msgptr, msgsize, msgtype, 0 );
My program works fine when msgrcv () from /lib/libc.so.6 is called.
However it crashes when __libc_msgrcv() is called.
... (3 Replies)
Hi,
I am using the libxml2 sax parser to parse a in memory xml string along with validating it against a schema.
I am using the following code:
xmlSAXHandlerPtr sax_ = new xmlSAXHandler();
sax_->initialized = XML_SAX2_MAGIC;
sax_->startElementNs =... (0 Replies)
Hi all,
Sorry for the title because I didn't find a proper name for it. My question is about POSIX functions, such as timer_create(), mq_open() and pthread_create().
void test_queue()
{
struct mq_attr attr;
attr.mq_maxmsg = 10;
attr.mq_msgsize = 64;
mq_unlink("/my_test_queue");... (6 Replies)
Hi guys,
I am trying to find the following string in a file, but I always get pattern not found error, not sure what is missing here. Can you help please?
I do a less to open the xrates.log and then do a /'="18"' in the file and tried various combinations to search the below string.
String... (8 Replies)