Unix and Linux Discussions Tagged with block |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
4 |
9,290 |
UNIX for Beginners Questions & Answers |
|
|
|
4 |
14,283 |
Red Hat |
|
|
|
1 |
2,359 |
Shell Programming and Scripting |
|
|
|
8 |
11,778 |
UNIX for Beginners Questions & Answers |
|
|
|
5 |
4,519 |
UNIX for Beginners Questions & Answers |
|
|
|
1 |
18,743 |
Solaris |
|
|
|
11 |
2,544 |
UNIX for Beginners Questions & Answers |
|
|
|
3 |
8,476 |
Shell Programming and Scripting |
|
|
|
2 |
1,808 |
Shell Programming and Scripting |
|
|
|
2 |
1,862 |
Shell Programming and Scripting |
|
|
|
7 |
14,847 |
Shell Programming and Scripting |
|
|
|
2 |
1,950 |
Shell Programming and Scripting |
|
|
|
1 |
18,468 |
Solaris |
|
|
|
1 |
5,234 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,147 |
Shell Programming and Scripting |
|
|
|
0 |
1,451 |
Complex Event Processing RSS News |
|
|
|
0 |
1,902 |
Shell Programming and Scripting |
|
|
|
2 |
3,814 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
3,766 |
HP-UX |
|
|
|
4 |
3,917 |
Shell Programming and Scripting |
|
|
|
0 |
1,298 |
Security Advisories (RSS) |
|
|
|
1 |
55,657 |
Linux |
|
|
|
5 |
9,676 |
Shell Programming and Scripting |
|
|
|
0 |
9,028 |
Cybersecurity |
|
|
|
6 |
2,245 |
UNIX for Advanced & Expert Users |
|
|
|
1 |
4,784 |
Shell Programming and Scripting |
|
|
|
4 |
13,729 |
UNIX for Advanced & Expert Users |
|
|
|
0 |
5,666 |
Virtualization and Cloud Computing |
|
|
|
4 |
9,441 |
Programming |
|
|
|
4 |
1,883 |
Shell Programming and Scripting |
|
|
|
1 |
14,203 |
UNIX for Advanced & Expert Users |
|
|
|
2 |
2,783 |
Shell Programming and Scripting |
|
|
|
4 |
4,446 |
Shell Programming and Scripting |
|
|
|
2 |
2,645 |
Shell Programming and Scripting |
|
|
|
0 |
2,346 |
HP-UX |
|
|
|
0 |
2,099 |
Security Advisories (RSS) - Microsoft |
|
|
|
5 |
2,097 |
Shell Programming and Scripting |
|
|
|
0 |
1,745 |
Security Advisories (RSS) - Microsoft |
|
|
|
3 |
6,490 |
Shell Programming and Scripting |
|
|
|
4 |
10,335 |
IP Networking |
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 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.
allocb_tmpl() 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
allocb_tmpl() can be called from user or interrupt context.
SEE ALSO
allocb(9F), datab(9S), msgb(9S)
Writing Device Drivers
STREAMS Programming Guide
SunOS 5.10 18 Feb 2003 allocb_tmpl(9F)