Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

freeb(9r) [osf1 man page]

freeb(9r)																 freeb(9r)

NAME
freeb - STREAMS: Frees a message block SYNOPSIS
#include <sys/stream.h> void freeb( MBLKP message_block_ptr ); ARGUMENTS
Specifies a pointer to the message block to be deallocated. The typedef MBLKP is an alternate name for typedef struct msgb *. DESCRIPTION
The freeb interface deallocates a message block. If the reference count of the db_ref member of the datab structure is greater than the value 1, freeb decrements the count. If db_ref equals the value 1, freeb deallocates the message block and the corresponding data block and buffer. If the data buffer to be freed was allocated in a call to the esballoc interface, the buffer may be a non-STREAMS resource. In that case, the driver must be notified that the attached data buffer needs to be freed by calling the driver's freeing interface. To make this process independent of the driver used in the stream, freeb finds the free_rtn structure associated with the buffer. The free_rtn structure con- tains a pointer to the driver-independent interface that releases the buffer. Once this is accomplished, freeb releases the STREAMS resources associated with the buffer. RETURN VALUES
None SEE ALSO
Kernel Interfaces: allocb(9r), dupb(9r), esballoc(9r) Programmer's Guide: STREAMS freeb(9r)

Check Out this Related Man Page

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

NAME
freeb - free a message block SYNOPSIS
#include <sys/stream.h> void freeb(mblk_t *bp); PARAMETERS
bp Pointer to the message block to be deallocated. mblk_t is an instance of the msgb(9S) structure. INTERFACE LEVEL
Architecture independent level 1 (DDI/DKI). DESCRIPTION
freeb() deallocates a message block. If the reference count of the db_ref member of the datab(9S) structure is greater than 1, freeb() decrements the count. If db_ref equals 1, it deallocates the message block and the corresponding data block and buffer. If the data buffer to be freed was allocated with the esballoc(9F), the buffer may be a non-STREAMS resource. In that case, the driver must be notified that the attached data buffer needs to be freed, and run its own freeing routine. To make this process independent of the driver used in the stream, freeb() finds the free_rtn(9S) structure associated with the buffer. The free_rtn structure contains a pointer to the driver-dependent routine, which releases the buffer. Once this is accomplished, freeb() releases the STREAMS resources associated with the buffer. CONTEXT
freeb() can be called from user or interrupt context. EXAMPLES
Example 1: Using freeb() See copyb(9F) for an example of using freeb(). SEE ALSO
allocb(9F), copyb(9F), dupb(9F), esballoc(9F), free_rtn(9S) Writing Device Drivers STREAMS Programming Guide SunOS 5.10 13 Nov 2000 freeb(9F)
Man Page

15 More Discussions You Might Find Interesting

1. IP Networking

Routing

ok i configured my gateway and IP address(es) using ifconfig and route.. but how can i bind unique IPs to users ? (im using FreeBSD 4.2 RELEASE #3) (9 Replies)
Discussion started by: DevilGREEN
9 Replies

2. UNIX for Dummies Questions & Answers

where is unix?

this is going to sound really stupid, but i am new to unix and only have a tiny bit of experience with it such as typing in commands. that's about it. where can i get a copy of the unix software? isn't free to download somewhere? (9 Replies)
Discussion started by: Crimzon
9 Replies

3. UNIX for Advanced & Expert Users

snort installation on freebsd issues

i'm following the, "How to setup and secure Snort, MySQL and Acid on FreeBSD 4.6 Release" off of the snort.org website. in the documentation it says snort should be installed through the following: ----- make -DWITH_MYSQL -DWITH_FLEXRESP ; make install ----- later it says to do the... (13 Replies)
Discussion started by: xyyz
13 Replies

4. UNIX for Dummies Questions & Answers

Some FreeBSD issues

I have been using Linux for 3 years now, and I think I am getting enough knowledge (and confidence) to try some more 'traditional' unix variants. I installed FreeBSD 5.0-CURRENT. I have a couple of questions for the time being: 1) Frequently when I need to compile software packages they can't... (16 Replies)
Discussion started by: cbkihong
16 Replies

5. UNIX for Dummies Questions & Answers

Access FreeBSD (BSD) partition from Windows NT/2000/XP

Hello, I have already installed FreeBSD into my hard disk. In one partition I have Windows 2000, and on another FreeBSD. I can access Windows partition from FreeBSD, but is there any way to access FreeBSD partition from Windows? I know how to access Linux (ext/ext2) partition from Win, there is... (9 Replies)
Discussion started by: Aoidas
9 Replies

6. UNIX for Advanced & Expert Users

FreeBSD 5.00 /ports

Download FreeBSD 5.0 mini_install.ISO i was trying to do a post-installation , trying to install the ports but doesn't install it gives me could not find index error ?!any ideas..?? as the index file is on the cd and I checked it the file is not corrupt.!! A guy made me an offer i can't... (9 Replies)
Discussion started by: wizardofid
9 Replies

7. IP Networking

FreeBSD and two NICs

FreeBSD 4.8, Apache 1.3.27 - two NICs, one with a real-world IP plugged into a switch outside the PIX firewall, the other with a private IP plugged into a switch inside the PIX firewall. Apache listens on both IPs. my domain is mydomain.org. so in /etc/rc.conf i have something like this (these... (10 Replies)
Discussion started by: ednix
10 Replies

8. Shell Programming and Scripting

Automating CPAN on FreeBSD

When using CPAN for the first time, a number of questions are prompted to the user, thereby halting the process. Since I am running FreeBSD I was wondering whether the inclusion of the port instead leads to the same result. So instead of having the following: perl -MCPAN -e "install DBD::SQLite"... (12 Replies)
Discussion started by: figaro
12 Replies

9. BSD

How can install the FreeBSD on desktop!!

;)Hello everyone,I'm a new FreeBSD user,I don't know how to intall the BSD on desktop,please help me ~~ Thanks~~:D (11 Replies)
Discussion started by: johnney
11 Replies

10. Shell Programming and Scripting

"date" difference between FreeBSD & Linux

Hi there. I used to use lastdate=`date -v-14d %F` on my old server with FreeBSD, and now got to get the same result(current date -14 or -X days) in script running at another server, with Linux, but there's no such option for "date". How can i solve the prob(counting with absolute day number is... (10 Replies)
Discussion started by: strider_scripts
10 Replies

11. Shell Programming and Scripting

FreeBSD new user login script

I am a beginner programmer and would like to know where to start to modify the login process so that a user can login as username new password new and have it prompt user for username and password and nothing else and then create said user account on the system so they can ssh back in and login... (9 Replies)
Discussion started by: deshi
9 Replies

12. AIX

Networking Issues - Opera, FreeBSD, AIX

(1) Hi, Am working on FreeBSD 7.4/i386 and installed Opera 11.01 through ports collection manually... But when I run first time am getting "opera: cannot connect X server. Error: Unknown error: 0" What is this error all about???? Please help me to sort out this issue!!! (2) Hi, currently am... (12 Replies)
Discussion started by: Priya Amaresh
12 Replies

13. BSD

Connecting a samsung galaxy siii to freebsd

I am connecting a samsung smartphone (galaxy s3) to a freebsd machine. It does not automatically mount. When plugging this machine in, the following message appears: ugen 7.2: <SAMSUNG> at usbus7 When disconnecting, the following message appears: ugen 7.2: <SAMSUNG> at usbus7 (disconnected)... (13 Replies)
Discussion started by: figaro
13 Replies

14. UNIX for Dummies Questions & Answers

Problem with FreeBSD 8.3. BIOS affected

Hello everybody. I have a problem of this kind: After installation of FreeBSD, my Windows XP became unreachable. Boot from CDROM is impossible. The conclusion: BIOS was damaged by GParted or some other program. Question: Are there any Unix means of updating (repairing) BIOS ?:wall: (11 Replies)
Discussion started by: prabux
11 Replies

15. Programming

Changing script to work with freeBSD

hi all, i have made my machine a freeBSD machine instead of a centos machine and my script doesnt work anymore and i was wondering if anyone can help me into why, i thought the commands are the same, here it is - #!/bin/bash source=/vol/cha-work/_ARCHIVE/to_be_archived/audio... (9 Replies)
Discussion started by: robertkwild
9 Replies