rmvb(9r)rmvb(9r)NAME
rmvb - STREAMS: Removes a message block from a message block
SYNOPSIS
#include <sys/stream.h>
MBLKP rmvb(
MBLKP message_block_ptr,
MBLKP message_to_be_removed );
ARGUMENTS
Specifies a pointer to the message block from which a message block is to be removed. The typedef MBLKP is an alternate name for typedef
struct msgb *. Specifies a pointer to the message block to be removed. The typedef MBLKP is an alternate name for typedef struct msgb *.
DESCRIPTION
The rmvb interface removes a message block (the message_to_be_removed argument) from a message block (the message_block_ptr argument) and
returns a pointer to the altered message block. The rmvb interface does not free the message block; it merely removes the message block. It
is the module's or driver's responsibility to free the message block.
RETURN VALUES
Upon successful completion, rmvb returns a pointer to the message block (minus the removed message block). The pointer is NULL if the mes-
sage_to_be_removed argument was the only message block before the call to the rmvb interface. If the message block passed to mes-
sage_to_be_removed does not exist, rmvb returns the value -1.
SEE ALSO
Kernel Interfaces: rmvq(9r)rmvb(9r)
Check Out this Related Man Page
allocb(9r)allocb(9r)NAME
allocb - STREAMS: Allocates a message block
SYNOPSIS
#include <sys/stream.h>
MBLKP allocb(
int size,
uint pri );
ARGUMENTS
Specifies the number of bytes in the message block. Specifies the priority of the request. You use this argument to determine if the allo-
cation of memory blocks (waits) on the request. If you call the allocb interface at a high priority and it blocks on the request, the sys-
tem could deadlock. Typically, you pass the constant BPRI_WAITOK, which signifies that allocb can block. If allocb cannot block, you should
pass the BPRI_HI constant.
DESCRIPTION
The allocb interface attempts to allocate a STREAMS message block. Buffer allocation fails only when the system is out of memory. If no
buffer is available, you can call the bufcall interface, which helps a module recover from a memory allocation failure.
RETURN VALUES
Upon successful completion, the allocb interface returns a pointer to the allocated message block. This message block is of type struct
msgb *. The msgb data structure is defined in the /usr/sys/include/sys/stream.h file.
If allocb cannot allocate a message block, it returns a NULL pointer.
SEE ALSO
Kernel Routines: bufcall(9r), esballoc(9r), testb(9r)
Programmer's Guide: STREAMS
allocb(9r)
I need a bash script that will.
So here is what I made so far.
1. Convert video files to iPhone format
2. MV converted video to new directory (with domain.com attached to it)
4. Copy a NFO file (from another directory) and add some conversion information
5. Delete old directory
torrent... (6 Replies)
Hi,
I'm pretty poor at using UNIX but I'm learning. Please help me with these simple problems! Much appreciated!
1. I've changed my shell from bash to csh but I prefer bash. How do I change back? I've tried using chsh -s but it's not working!
2. I'm trying to download TopCat. I've done... (2 Replies)
I am looking for suggestions on how I could possibly optimized that piece of code where most of the time is spend on this script. In a nutshell this is a script that creates an xml file(s) based on certain criteria that will be used by a movie jukebox.
Example of data:
$SORTEDTMP= it is a... (16 Replies)
void main() {
long ((long)(&array));
int x;
for (;;)
{
(array) =+ 1023;
printf("%c", array);
}
}
What is wrong with this code to print Linux RAM? (13 Replies)
Hello,
I have a csv file with "^" as text delimiters and "|" as field delimiters. It's converted from a xls file. One record looks like this:
^Tablete Internet^|Archos|501838|^Tableta Internet ARCHOS 80 G9
...| ...
(more lines)
... "501|838"^|330.00|USD|sl|12|0|Link|^router wireless 150... (10 Replies)
Hi all,
Recently i started using sendmail instead of mutt to send the email .
In one script i have both sendmail and mutt included and they both give different emails.
##some HTML creation
1) First email
cat - $data_dir/TheMailer.txt <<EOF | sendmail -oi -t
From: ${MAILFROM}
To:... (7 Replies)
Hi,
I have downloaded Audio::Beep. I tried to install it through CPAN but i got YAML error. Then I have tried to install it manually. I tried all the instructions provided in README file. It worked but when i am compiling , it still gives me error:
# ls
acct21.pl~ imap(2).pl ... (15 Replies)
Hi all,
I have 3-4 years of experience working on unix environment. I am not a beginner, but unix is not my primary skill set. I am very good at awk programming and doing many of my tasks very well, really very weak on basics. I moved to a new job recently and the settings there are driving me... (5 Replies)
Hey guys,
I'm rather new to scripting with the shell (I started on Wednesday) and encountered a problem that left me clueless.
I moved to an old house recently and the sound of the 433mhz door bell is too quiet. Since I always wanted to start playing around with a raspberry pi and my wife... (11 Replies)
My shell environment is bash and desktop environment is LXDE. When I use the up and down button on the keyboard to view the command history on bash shell, many times part of the command from the history remains on the line. For example
/home/milhan > ssh somedomain.org
/home/milhan > then when I... (5 Replies)
ShellCheck doesn't find any issues with this script.
#!/bin/bash
# color_meanings: explain meanings of colors used in bash ls
eval "$(echo "no:fi:di:ln:pi:so:do:bd:cd:or:mi:su:sg:tw:st:ex" | sed -e 's/:/=/g; s/\;/\n/g')"
{
IFS=:
for i in $LS_COLORS
do
... (18 Replies)