bget.h

来自「COS 0.0.1.rar Cos操作系统源代码」· C头文件 代码 · 共 34 行

H
34
字号
/*	Interface definitions for bget.c, the memory management package.02/09/04:	Slightly trimmed down for cos by Paul Barker		(should have done this a *long* time ago)*/// protect from multiple inclusion#ifndef _BGET_H_#define _BGET_H_// All compilers should understand prototypestypedef long bufsize;void	bpool	    (void *buffer, bufsize len);void*	bget	    (bufsize size);void*	bgetz	    (bufsize size);void*	bgetr	    (void *buffer, bufsize newsize);void	brel	    (void *buf);void	bectl	    (int (*compact)(bufsize sizereq, int sequence),		       void *(*acquire)(bufsize size),		       void (*release)(void *buf), bufsize pool_incr);void	bstats	    (bufsize *curalloc, bufsize *totfree, bufsize *maxfree,		       long *nget, long *nrel);void	bstatse     (bufsize *pool_incr, long *npool, long *npget,		       long *nprel, long *ndget, long *ndrel);void	bufdump     (void *buf);void	bpoold	    (void *pool, int dumpalloc, int dumpfree);int	bpoolv	    (void *pool);#endif // !_BGET_H_

⌨️ 快捷键说明

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