miocpullup man page on SmartOS

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

MIOCPULLUP(9F)							MIOCPULLUP(9F)

NAME
       miocpullup - Prepare the payload of an M_IOCTL message for access

SYNOPSIS
       #include <sys/stream.h>
       #include <sys/strsun.h>

       int miocpullup(mblk_t *mp, size_t size);

INTERFACE LEVEL
       Solaris DDI specific (Solaris DDI).

PARAMETERS
       mp
	       M_IOCTL message.

       size
	       Number of bytes to prepare.

DESCRIPTION
       The miocpullup() function prepares the payload of the specified M_IOCTL
       message for access by ensuring that it consists of at least size	 bytes
       of data.

       If  the	M_IOCTL	 message  is transparent, or its total payload is less
       than size bytes, an error is returned.  Otherwise, the payload is  con‐
       catenated  as  necessary	 to provide contiguous access to at least size
       bytes of data.  As a  special  case,  if	 size  is  zero,  miocpullup()
       returns successfully, even if no payload exists.

RETURN VALUES
       Zero is returned on success. Otherwise an errno value is returned indi‐
       cating the problem.

CONTEXT
       This function can be called from user, kernel or interrupt context.

SEE ALSO
       STREAMS Programming Guide

				  Jun 9, 2004			MIOCPULLUP(9F)
[top]

List of man pages available for SmartOS

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