亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? memcluster.mdoc

?? bind-3.2.
?? MDOC
字號:
.\" $Id: memcluster.mdoc,v 1.1.2.1 2001/11/02 21:06:03 gson Exp $.\".\"Copyright (c) 1995-1999 by Internet Software Consortium.\".\"Permission to use, copy, modify, and distribute this software for any.\"purpose with or without fee is hereby granted, provided that the above.\"copyright notice and this permission notice appear in all copies..\".\"THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS.\"ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES.\"OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE.\"CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL.\"DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR.\"PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS.\"ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS.\"SOFTWARE..\".\" The following six UNCOMMENTED lines are required..Dd Month day, year.\"Os OPERATING_SYSTEM [version/release].Os BSD 4.\"Dt DOCUMENT_TITLE [section number] [volume].Dt MEMCLUSTER 3.Sh NAME.Nm meminit ,.Nm memget ,.Nm memput ,.Nm memstats .Nd memory allocation/deallocation system.Sh SYNOPSIS.Fd #include \&<isc/memcluster.h\&>.Ft void * .Fn memget "size_t size".Ft void .Fn memput "void *mem" "size_t size".Ft void .Fn memstats "FILE *out".Sh DESCRIPTIONThese functions access a memory management system which allows callers to not fragment memory to the extent which can ordinarily occur through many random calls to.Xr malloc 3 .Instead, .Fn memgetgets a large contiguous chunk of blocks of the requested .Fa size and parcels out these blocks as requested.  The symmetric call is.Fn memput ,which callers use to return a piece of memory obtained from.Fn memget .Statistics about memory usage are returned by.Fn memstats , which prints a report on the stream.Fa out ..Ss INTERNALSInternally, linked lists of free memory blocks are stored in an array.The size of this array is determined by the value.Dv MEM_FREECOUNT ,currently set to 1100.  In general, for any requested blocksize.Dq Fa size ,any free blocks will be stored on the linked list at that index.No free lists are managed for blocks greater than or equal to.Dv MEM_FREECOUNTbytes; instead, calls to.Xr malloc 3or.Xr free 3are made, directly..PpSince the blocks are actually stored as linked lists, they must at leastbe large enough to hold a pointer to the next block.  This size, which is.Dv SMALL_SIZE_LIMIT ,is currently defined as.Bd -literal -offset indent#define SMALL_SIZE_LIMIT sizeof(struct { void *next; }).Ed.PpBoth .Fn memgetand.Fn memputenforce this limit; for example, any call to .Fn memget requesting a block smaller than.Dv SMALL_SIZE_LIMITbytes will actually be considered to be of size.Dv SMALL_SIZE_LIMIT internally.  (Such a caller request will be logged for .Fn memstatspurposes using the caller-requested.Fa size ;see the discussion of.Fn memstats ,below, for more information.).PpAdditionally, the requested.Fa sizewill be adjusted so that when a large .Xr malloc 3 Ns No -dchunk of memory is broken up into a linked list, the blocks will all fall onthe correct memory alignment boundaries.  Thus, one can conceptualize a callwhich mentions.Fa sizeas resulting in a.Fa new_sizewhich is used internally..PpIn order to more efficiently allocate memory, there is a .Dq targetsize for calls to .Xr malloc 3 .It is given by the pre-defined value.Dv MEM_TARGET , which is currently 4096 bytes.For any requested block.Fa size ,enough memory is .Xr malloc 3 Ns No -din order to fill up a block of about.Dv MEM_TARGETbytes.  .No [ Ns Sy NOTE :For allocations larger than.Dv MEM_TARGET Ns No /2bytes, there is a .Dq fudge factorintroduced which boosts the target size by 25% of.Dv MEM_TARGET .This means that enough memory for two blockswill actually be allocated for any .Fa sizesuch that.Pq Dv MEM_TARGET Ns No / 3 .No < Fa size No < .Pq Dv MEM_TARGET Ns No *5/8 ,provided that the value of.Dv MEM_FREECOUNT is at least as large as the upper limit shown above.].Pp.Ss FUNCTION DESCRIPTIONS.PpThe function.Fn memgetreturns a pointer to a block of memory of at least the requested.Fa size .After adjusting.Fa sizeto the value.Va new_sizeas mentioned above in the .Sx INTERNALSsubsection, the internal array of free lists is checked.If there is no block of the needed.Va new_size ,then.Fn memget will .Xr malloc 3a chunk of memory which is as many times as .Va new_sizewill fit into the target size.  This memory is then turned into a linked list of .Va new_size Ns No -sizedblocks which are given out as requested; the last such block is the first one returned by .Fn memget .If the requested.Fa sizeis zero or negative, then .Dv NULLis returned and.Va errnois set to.Dv EINVAL ;if .Fa sizeis larger than or equal to the pre-defined maximum size.Dv MEM_FREECOUNT ,then only a single block of exactly .Fa sizewill be.Xr malloc 3 Ns No -dand returned..PpThe.Fn memputcall is used to return memory once the caller is finished with it.After adjusting.Fa sizethe the value.Va new_sizeas mentioned in the .Sx INTERNALS subsection, above, the block is placed at the head of the free list of .Va new_size Ns -sizedblocks.If the given.Fa sizeis zero or negative, then .Va errnois set to.Dv EINVAL ,as for.Fn memget .If .Fa sizeis larger than or equal to the pre-defined maximum size.Dv MEM_FREECOUNT ,then the block is immediately.Xr free 3 Ns No -d ..Pp.Sy NOTE :It is important that callers give .Fn memput.Em onlyblocks of memory which were previously obtained from.Fn memget if the block is .Em actually less than.Dv SMALL_SIZE_LIMITbytes in size.  Since all blocks will be added to a free list, any block which is not at least.Dv SMALL_SIZE_LIMITbytes long will not be able to hold a pointer to the next block in thefree list..PpThe.Fn memstatsfunction will summarize the number of calls to .Fn memgetand.Fn memputfor any block size from 1 byte up to.Pq Dv MEM_FREECOUNT No - 1  bytes, followed by a single line for any calls using a .Fa sizegreater than or equal to .Dv MEM_FREECOUNT ; a brief header with shell-style comment lines prefaces the report andexplains the information.  The .Dv FILE pointer.Fa outidentifies the stream which is used for this report.  Currently, .Fn memstatreports the number of calls to .Fn memgetand.Fn memputusing the caller-supplied value .Fa size ; the percentage of outstanding blocks of a given size (i.e., the percentageby which calls to.Fn memgetexceed .Fn memput )are also reported on the line for blocks of the given.Fa size .However, the percent of blocks used is computed using the number of blocks allocated according to the internal parameter.Va new_size ;it is the percentage of blocks used to those available at a given.Va new_size ,and is computed using the.Em totalnumber of caller .Dq getsfor any caller.Fa size Ns No -swhich map to the internally-computed.Va new_size .Keep in mind that.Va new_sizeis generally .Em notequal to.Fa size , which has these implications:.Bl -enum -offset indent.ItFor.Fa sizesmaller than.Dv SMALL_SIZE_LIMIT ,.Fn memstat.Em will show statistics for caller requests under.Fa size , but "percent used" information about such blocks will be reported under.Dv SMALL_SIZE_LIMIT Ns No -sizedblocks.  .ItAs a general case of point 1, internal statistics are reported on the theline corresponding to.Va new_size ,so that, for a given caller-supplied.Fa size ,the associated internal information will appear on that line or on the nextline which shows "percent used" information..El.Pp.Sy NOTE :If the caller returns blocks of a given.Fa sizeand requests others of .Fa size Ns No -s which map to the same internal.Va new_size ,it is possible for.Fn memstatsto report usage of greater than 100% for blocks of size.Va new_size .This should be viewed as A Good Thing..Sh RETURN VALUESThe function.Fn memgetreturns a .No non- Ns Dv NULLpointer to a block of memory of the requested.Fa size .It returns.Dv NULLif either the.Fa sizeis invalid (less than or equal to zero) or a .Xr malloc 3of a new block of memory fails.  In the former case, .Va errnois set to .Dv EINVAL ; in the latter, it is set to.Dv ENOMEM ..PpNeither.Fn memputnor.Fn memstatsreturn a value..\" This next request is for sections 1, 6, 7 & 8 only.\" .Sh ENVIRONMENT.\" .Sh FILES.\" .Sh EXAMPLES.\" This next request is for sections 1, 6, 7 & 8 only.\"     (command return values (to shell) and.\"    fprintf/stderr type diagnostics).\" .Sh DIAGNOSTICS.\" The next request is for sections 2 and 3 error.\" and signal handling only..Sh ERRORS.Va errnois set as follows:.Bl -tag -width "ENOMEM  " -offset indent.It Dv EINVALset by both.Fn memgetand.Fn memputif the .Fa sizeis zero or negative.It Dv ENOMEMset by .Fn memgetif a call to.Xr malloc 3fails.El.Sh SEE ALSO.Xr free 3 ,.Xr malloc 3 ..\" .Sh STANDARDS.\" .Sh HISTORY.Sh AUTHORSSteven J. Richardson and Paul Vixie, Vixie Enterprises..\" .Sh BUGS

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲人成影院在线观看| 精品日韩av一区二区| 国产精品主播直播| 精品在线一区二区| 奇米精品一区二区三区四区| 日本不卡在线视频| 日韩vs国产vs欧美| 男女性色大片免费观看一区二区 | 7777精品伊人久久久大香线蕉最新版| 91污在线观看| 色妞www精品视频| 欧美无乱码久久久免费午夜一区| 色综合中文字幕国产 | av电影在线观看一区| 成年人国产精品| 99精品久久久久久| 欧美在线观看视频在线| 欧美卡1卡2卡| 久久嫩草精品久久久精品一| 中文字幕成人av| 亚洲午夜精品在线| 久国产精品韩国三级视频| 国产成人午夜精品5599| 成人99免费视频| 欧美日韩高清在线播放| 日韩三级高清在线| 国产精品国产自产拍高清av| 亚洲激情网站免费观看| 免费在线观看一区| 成人国产精品免费网站| 欧洲av在线精品| 久久午夜羞羞影院免费观看| 综合中文字幕亚洲| 免费观看久久久4p| 色综合久久中文综合久久牛| 日韩一区二区三区av| 亚洲视频免费在线观看| 另类专区欧美蜜桃臀第一页| av高清久久久| 精品久久一二三区| 欧美一个色资源| 一区二区三区中文在线观看| 久久国产精品无码网站| 色综合欧美在线视频区| 久久久久99精品国产片| 亚洲国产你懂的| 成人av电影在线网| 欧美成人官网二区| 亚洲电影第三页| 成人激情视频网站| 久久一日本道色综合| 午夜av区久久| 91蜜桃视频在线| 国产精品无圣光一区二区| 免费在线观看视频一区| 在线观看视频欧美| 国产精品美女视频| 国产在线精品视频| 精品裸体舞一区二区三区| 亚洲第一福利一区| 色88888久久久久久影院野外| 久久一区二区三区国产精品| 日本伊人色综合网| 欧美日韩色一区| 亚洲综合色网站| 在线一区二区视频| 亚洲欧美日韩在线不卡| www..com久久爱| 亚洲国产精品二十页| 粉嫩av一区二区三区在线播放| 精品av综合导航| 狠狠网亚洲精品| 欧美精品一区二区在线观看| 免费成人在线视频观看| 日韩欧美国产1| 久久se精品一区二区| 日韩精品在线一区| 国产一区二区三区在线观看免费视频 | 欧美成va人片在线观看| 蜜桃av噜噜一区| 日韩欧美在线一区二区三区| 免费一区二区视频| 欧美成人精品高清在线播放 | 国产欧美在线观看一区| 国产成人啪午夜精品网站男同| 久久这里只精品最新地址| 国产综合一区二区| 欧美激情一区不卡| 日本精品免费观看高清观看| 一区二区三区波多野结衣在线观看| 色综合天天综合网国产成人综合天| 亚洲色图视频免费播放| 欧美日产国产精品| 九色综合国产一区二区三区| 欧美国产一区视频在线观看| 91视频一区二区三区| 五月天亚洲婷婷| 国产亚洲欧美色| 一本色道久久加勒比精品| 亚洲成人1区2区| 欧美精品一区二区三| 成人国产精品免费观看动漫| 亚洲国产婷婷综合在线精品| 欧美成人性福生活免费看| 成人免费的视频| 午夜电影一区二区三区| 久久男人中文字幕资源站| 色综合久久九月婷婷色综合| 日本一区中文字幕| 亚洲欧洲日韩综合一区二区| 欧美日韩在线观看一区二区 | 亚洲欧美一区二区三区国产精品 | 国产亚洲福利社区一区| 91在线观看视频| 裸体健美xxxx欧美裸体表演| 国产精品国产三级国产a| 在线综合亚洲欧美在线视频 | 艳妇臀荡乳欲伦亚洲一区| 欧美电视剧免费全集观看| 97久久精品人人做人人爽50路| 青草国产精品久久久久久| 日韩理论片中文av| 日韩精品一区二区三区三区免费| 成人一区二区三区中文字幕| 日韩精品乱码免费| 亚洲欧洲三级电影| 久久奇米777| 欧美一三区三区四区免费在线看| 97精品超碰一区二区三区| 精品亚洲国内自在自线福利| 亚洲国产日韩a在线播放性色| 国产精品污www在线观看| 欧美成人性福生活免费看| 欧美亚洲国产bt| 日本道色综合久久| 成人精品小蝌蚪| 国产91色综合久久免费分享| 麻豆精品视频在线观看免费| 性感美女久久精品| 一区2区3区在线看| 亚洲男人电影天堂| 中文字幕在线一区免费| 欧美激情一区二区三区在线| 国产亚洲欧美日韩在线一区| 精品剧情v国产在线观看在线| 欧美一区二区三区视频在线观看 | 色综合久久综合| av成人免费在线| 99在线精品观看| 91在线免费视频观看| 9l国产精品久久久久麻豆| 懂色一区二区三区免费观看| 丁香一区二区三区| 国产69精品久久99不卡| 国产成人免费网站| 不卡av在线网| 色综合咪咪久久| 91搞黄在线观看| 欧美日本在线播放| 日韩一级片在线观看| 欧美videossexotv100| 精品国产青草久久久久福利| 26uuu色噜噜精品一区| 91精品欧美综合在线观看最新| 国产精品2024| 久久精品国产99久久6| 精品福利一区二区三区免费视频| 日韩一区二区免费在线电影| 精品国产一区二区三区忘忧草| 久久久精品国产免大香伊| 国产欧美日韩在线看| 亚洲日穴在线视频| 亚洲大片在线观看| 精品一区二区久久久| proumb性欧美在线观看| 欧美视频中文一区二区三区在线观看| 91在线云播放| 欧美日韩国产电影| 欧美大片一区二区| 欧美激情一区在线| 亚洲国产色一区| 国产精品一区专区| 色欧美日韩亚洲| 337p日本欧洲亚洲大胆色噜噜| 国产精品久久夜| 日韩专区一卡二卡| 成人avav影音| 91精品国产综合久久国产大片| 国产欧美日韩另类视频免费观看| 亚洲色图在线看| 久久99热这里只有精品| 99精品国产一区二区三区不卡| 欧美日韩三级视频| 中文字幕欧美激情| 青青草成人在线观看| 91免费精品国自产拍在线不卡| 日韩一级片在线播放| 亚洲欧美电影一区二区| 国模少妇一区二区三区| 欧美区一区二区三区|