allocb_tmpl man page on Solaris

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

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

NAME
       allocb_tmpl - allocate a message block using a template

SYNOPSIS
       #include <sys/stream.h>

       mblk_t *allocb_tmpl(size_t size, const mblk_t *tmpl);

INTERFACE LEVEL
       Solaris DDI specific (Solaris DDI)

PARAMETERS
       size    The number of bytes in the message block.

       tmpl    The template message block.

DESCRIPTION
       The  allocb_tmpl()  function  tries to allocate a STREAMS message block
       using allocb(9F). If the allocation is successful, the db_type field in
       the  data  block	 structure  (dblk_t,  see  datab(9S)), as well as some
       implementation-private data, are copied from the dblk_t associated with
       tmpl.

       The  allocb_tmpl()  function  should be used when a new STREAMS message
       block is allocated. This block is then used  to	contain	 data  derived
       from another STREAMS message block. The original message is used as the
       tmpl argument.

RETURN VALUES
       Upon success, allocb_tmpl() returns a pointer to the allocated  message
       block  of  the  same  type as tmpl. On failure, allocb_tmpl() returns a
       NULL pointer.

CONTEXT
       The allocb_tmpl() function can be called from user, interrupt, or  ker‐
       nel context.

SEE ALSO
       allocb(9F), datab(9S), msgb(9S)

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

List of man pages available for Solaris

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