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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? memcluster.mdoc

?? bind 9.3結(jié)合mysql數(shù)據(jù)庫
?? MDOC
字號:
.\" $Id: memcluster.mdoc,v 1.1.2.1.10.1 2004/03/09 08:33:43 marka Exp $.\".\" Copyright (c) 2004 by Internet Systems Consortium, Inc. ("ISC").\" 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 ISC DISCLAIMS ALL WARRANTIES.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF.\" MERCHANTABILITY AND FITNESS.  IN NO EVENT SHALL ISC 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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩欧美国产综合一区| 波多野结衣中文字幕一区二区三区| 精品视频1区2区3区| 一区二区三区欧美日| 欧美性xxxxxx少妇| 五月婷婷色综合| 欧美tickling挠脚心丨vk| 国产在线精品免费| 国产精品久久久久久久久免费桃花 | 自拍偷拍欧美激情| 在线观看免费视频综合| 亚欧色一区w666天堂| 欧美一区二区三区在| 麻豆国产欧美日韩综合精品二区| 久久一区二区三区国产精品| 成人深夜福利app| 一区av在线播放| 日韩一级片在线播放| 国产成人免费av在线| 亚洲精品日日夜夜| 日韩写真欧美这视频| 风流少妇一区二区| 亚洲一区精品在线| 精品三级在线看| 91蝌蚪porny| 青青草伊人久久| 成人欧美一区二区三区视频网页 | 国产成人一级电影| 一区二区三区欧美| 欧美成人a视频| 色综合久久99| 国产主播一区二区| 亚洲福利一二三区| 国产欧美日本一区视频| 欧美午夜精品一区| 高潮精品一区videoshd| 午夜欧美在线一二页| 欧美国产精品v| 91麻豆精品国产91久久久资源速度| 国产高清不卡二三区| 日韩avvvv在线播放| 亚洲视频1区2区| 久久综合网色—综合色88| 欧美综合天天夜夜久久| 国产91富婆露脸刺激对白| 日韩国产欧美视频| 亚洲人快播电影网| 久久精品一区蜜桃臀影院| 在线播放亚洲一区| 色天使色偷偷av一区二区| 国产激情一区二区三区桃花岛亚洲| 香蕉成人啪国产精品视频综合网| 国产精品久久久一区麻豆最新章节| 日韩欧美成人激情| 欧美电影影音先锋| 欧美大度的电影原声| 在线亚洲一区二区| 成人ar影院免费观看视频| 久久狠狠亚洲综合| 日本不卡123| 亚洲电影视频在线| 亚洲国产综合色| 亚洲精品高清视频在线观看| 中文字幕一区二区在线播放| 久久嫩草精品久久久久| 欧美成人一区二区三区在线观看| 91精品国产一区二区三区香蕉| 欧美午夜精品久久久久久超碰| 色综合天天综合狠狠| www.日韩大片| 99精品黄色片免费大全| 成人黄色片在线观看| 波多野洁衣一区| 成人中文字幕电影| 成人高清视频在线| 成人天堂资源www在线| 成熟亚洲日本毛茸茸凸凹| 成人激情电影免费在线观看| 成人免费毛片a| 成人高清伦理免费影院在线观看| 成人精品亚洲人成在线| 94色蜜桃网一区二区三区| 91在线观看一区二区| 一本一道久久a久久精品| 91免费看片在线观看| 色香蕉成人二区免费| 欧美色综合影院| 7777精品伊人久久久大香线蕉经典版下载 | 精品国产一区二区三区忘忧草| 91精品国产黑色紧身裤美女| 91精品国产综合久久久久久久久久| 91精品国产欧美日韩| 亚洲人一二三区| 一区二区三区精品在线观看| 亚洲综合久久久| 日韩国产成人精品| 美女视频黄久久| 国产做a爰片久久毛片| 粉嫩av亚洲一区二区图片| 91啪在线观看| 欧美一区二区三区在线视频| 久久久久久亚洲综合| 日韩精品一区第一页| 亚洲成人综合在线| 亚洲福利一二三区| 日韩av一二三| 亚洲欧美激情在线| 91视频在线观看| 日本不卡免费在线视频| 国产精品全国免费观看高清 | 成人av免费在线播放| 亚洲成人免费在线观看| 久久精品欧美日韩精品 | 亚洲1区2区3区4区| 精品国产三级a在线观看| 99久久亚洲一区二区三区青草| 婷婷一区二区三区| 国产精品不卡视频| 欧美一区2区视频在线观看| 成人精品国产一区二区4080| 日本欧美在线观看| 亚洲欧美日韩国产一区二区三区| 日韩一区二区三区免费观看| av资源站一区| 精品夜夜嗨av一区二区三区| 一区二区三区在线视频免费观看| 久久亚区不卡日本| 91精品国产色综合久久ai换脸| 色综合色狠狠天天综合色| 精久久久久久久久久久| 亚洲国产精品久久人人爱蜜臀| 亚洲国产精品二十页| 日韩视频免费观看高清在线视频| 成人av在线影院| 国产传媒一区在线| 另类小说一区二区三区| 手机精品视频在线观看| 一区二区三区自拍| 自拍偷拍亚洲综合| 国产精品卡一卡二| 亚洲国产精品精华液ab| 久久蜜桃av一区精品变态类天堂 | 亚洲日韩欧美一区二区在线| 久久久久成人黄色影片| 制服丝袜激情欧洲亚洲| 欧美日韩国产小视频| 欧美午夜电影网| 在线视频欧美区| 在线视频欧美精品| 欧美色图激情小说| 欧美性高清videossexo| 欧美性大战xxxxx久久久| 欧美性一级生活| 欧美色老头old∨ideo| 欧美日韩国产成人在线91| 777亚洲妇女| 欧美午夜不卡在线观看免费| 欧美色中文字幕| 欧美精品xxxxbbbb| 日韩网站在线看片你懂的| 日韩欧美色综合网站| 久久综合狠狠综合| 欧美国产成人精品| 一区二区在线观看av| 亚洲一二三区视频在线观看| 午夜欧美2019年伦理| 男女性色大片免费观看一区二区 | 欧洲人成人精品| 91视频你懂的| 51精品视频一区二区三区| 欧美videofree性高清杂交| 久久久一区二区| 18成人在线视频| 亚洲成人一区二区| 国模冰冰炮一区二区| 成人看片黄a免费看在线| 在线观看亚洲专区| 欧美乱妇20p| 国产欧美日韩精品一区| 亚洲一区二区五区| 国内精品久久久久影院色| av电影一区二区| 欧美四级电影在线观看| 久久久美女毛片| 一区二区三区高清| 狠狠久久亚洲欧美| 色综合久久综合中文综合网| 91精品午夜视频| 日韩一区在线免费观看| 久久国产乱子精品免费女| 97久久超碰精品国产| 精品国产乱码久久久久久图片| 国产精品久久久久毛片软件| 天堂精品中文字幕在线| av在线不卡观看免费观看| 67194成人在线观看| 亚洲欧美一区二区三区久本道91| 麻豆一区二区三| 在线观看欧美精品| 国产精品无人区|