⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 freemsg.9

📁 7号信令功能代码,为开源代码
💻 9
字号:
'\" tr.\" -*- nroff -*-.\".\" @(#) freemsg.9,v 1.1.4.1 2004/01/12 23:33:00 brian Exp.\".\" =========================================================================.\".\" Copyright (C) 2001-2004  OpenSS7 Corp. <www.openss7.com>.\".\" All Rights Reserved..\".\" Permission is granted to make and distribute verbatim copies of this.\" manual provided the copyright notice and this permission notice are.\" preserved on all copies..\".\" Permission is granted to copy and distribute modified versions of this.\" manual under the conditions for verbatim copying, provided that the.\" entire resulting derived work is distributed under the terms of a.\" permission notice identical to this one.\" .\" Since the Linux kernel and libraries are constantly changing, this.\" manual page may be incorrect or out-of-date.  The author(s) assume no.\" responsibility for errors or omissions, or for damages resulting from.\" the use of the information contained herein.  The author(s) may not.\" have taken the same level of care in the production of this manual,.\" which is licensed free of charge, as they might when working.\" professionally..\" .\" Formatted or processed versions of this manual, if unaccompanied by.\" the source, must acknowledge the copyright and authors of this work..\".\" =========================================================================.\".\" Modified 2004/01/12 23:33:00 by brian.\".\" =========================================================================.so lis.macros.R1bracket-label "\fR[\fB" "\fR]" "\fR, \fB"no-default-databasedatabase lis.refsaccumulatemove-punctuationabbreviate Ajoin-authors ", " ", " " and "et-al " et al" 2 3abbreviate-label-ranges ".."sort-adjacent-labels.R2.\".\".TH FREEMSG 9 "2004/01/12 23:33:00" "LiS-2_16_18-8" "Linux STREAMS DDI/DKI".SH NAME.B freemsg\- frees a \fISTREAMS\fR message.SH SYNOPSIS.PP.B #include <sys/stream.h>.HP 8.BI "freemsg(struct msgb *" mp );.SH DESCRIPTION.PP.BR freemsg ()frees the.IR STREAMS (4)message pointed to by.I mpand the associated message blocks, data blocks and data buffers..PPFreeing the message blocks of the message might or might not resultin thedeallocation of the message blocks, data blocks or data buffers, dependingupon the internal implementation, the binding of message blocks to data blocksand whether the buffers are internal or external buffers..PPFor external data buffers that are to be freed, the.I functionwill be called with the.I argprovided previously to a.BR esballoc (9)call..SH "RETURN VALUES".PP.BR freemsg ()returns void..SH ERRORS.PPIf the block pointer,.IR bp ,passed to.BR freeb ()is.BR NULL ,then.BR freeb ()will silently fail..SH CAVEATS.PP.BR freemsg (9)is implemented with a looping call to.BR freeb ()..PP.B LiS.[LiS.]uses a complicated message block and data block binding scheme with embeddeddata buffers.B FASTBUFor less in size.  Determining the point at which a buffer is actually freed israther complicated..PPIn addition,.B LiS.[LiS.]uses a free list to hold freed message blocks and data blocks.  It isparticularly inefficient for cache performance to do this..B LiS.[LiS.]should use kernel memory caches instead and should free the message blocks anddata blocks when they are no longer used to allow existing cache slots to bereused.  Bypassing the kernel memory allocation and deallocation mechanismsby using a free list results in poorer performance that might be suspected bythose that do not understand kernel memory chaching mechanisms..SH "SEE ALSO".PP.BR allocb (9),.BR esballoc "(9) and ".BR freeb (9)..SH VERSIONS.PPThis manpage was written for.B LiS\c..[LiS.].PP.BR freemsg ()appeared first in SVR 3..[svr3.].\".\".XX.[magic.].[svr42.].[svr4.].\".\".[$LIST$.].TA

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -