Home
last modified time | relevance | path

Searched refs:Block_t (Results 1 – 10 of 10) sorted by relevance

/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/
H A Dvmbest.c50 static int vmintree(Block_t* node, Block_t* b) in vmintree()
53 Block_t* node; in vmintree()
54 Block_t* b;
56 { Block_t* t;
69 static int vmonlist(Block_t* list, Block_t* b) in vmonlist()
72 Block_t* list; in vmonlist()
73 Block_t* b;
88 Block_t* b;
112 Block_t* b;
115 Block_t* t;
[all …]
H A Dvmhdr.h99 typedef struct _block_s Block_t; typedef
221 Block_t* block;
259 { Block_t* link; /* next in link list */
269 Block_t* self[1];
284 { Block_t* link;
285 Block_t* self;
312 Block_t* wild; /* wilderness block */
313 Block_t* root; /* root of free tree */
335 Block_t* free; /* recent free blocks */
354 #define LAST(b) (*((Block_t**)(((char*)(b)) - sizeof(Block_t*)) ) )
[all …]
H A Dvmlast.c44 Block_t *tp, *next;
101 Block_t *fp;
121 vd->free = NIL(Block_t*);
122 fp = (Block_t*)data;
126 seg->last = NIL(Block_t*);
145 Block_t *tp;
194 seg->free = NIL(Block_t*);
230 { tp = (Block_t*)data;
327 Block_t *fp;
339 seg->free = NIL(Block_t*);
[all …]
H A Dvmprivate.c42 static Block_t* _vmextend(vm, size, searchf ) in _vmextend()
50 reg Block_t *bp, *tp, *np;
60 s = size + sizeof(Seg_t) + sizeof(Block_t) + sizeof(Head_t) + 2*ALIGN;
62 return NIL(Block_t*);
64 return NIL(Block_t*);
88 return NIL(Block_t*);
106 vd->wild = NIL(Block_t*);
114 seg->free = NIL(Block_t*);
139 seg->free = NIL(Block_t*);
178 vd->wild = NIL(Block_t*);
[all …]
H A Dvmpool.c50 reg Block_t *tp, *next;
74 for(tp = NIL(Block_t*), seg = vd->seg; seg; seg = seg->next)
88 next = (Block_t*)((Vmuchar_t*)tp+size);
94 next = (Block_t*)((Vmuchar_t*)next + size);
96 seg->free = NIL(Block_t*);
122 Block_t *bp, *tp;
140 tp = (Block_t*)(laddr + (((Vmuchar_t*)addr-laddr)/size)*size );
167 Block_t *bp;
178 bp = (Block_t*)data;
252 Block_t *fp;
[all …]
H A Dvmclear.c42 Block_t *tp;
48 vd->free = vd->wild = NIL(Block_t*);
52 { vd->root = NIL(Block_t*);
54 TINY(vd)[s] = NIL(Block_t*);
56 CACHE(vd)[s] = NIL(Block_t*);
H A Dvmopen.c52 Block_t block[16]; /* space for a few blocks */
68 Block_t *bp, *np;
118 vd->free = vd->wild = NIL(Block_t*);
122 vd->root = NIL(Block_t*);
124 TINY(vd)[k] = NIL(Block_t*);
126 CACHE(vd)[k] = NIL(Block_t*);
138 seg->free = NIL(Block_t*);
H A Dvmdebug.c272 reg Block_t *b, *endb;
280 b = endb = NIL(Block_t*);
283 endb = (Block_t*)(seg->baddr - sizeof(Head_t));
313 b = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS) );
331 Block_t *b, *endb;
341 endb = (Block_t*)(seg->baddr - sizeof(Head_t));
352 b = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS) );
567 reg Block_t *b, *endb;
574 { if(_vmbestcheck(vd, NIL(Block_t*)) < 0)
584 endb = (Block_t*)(seg->baddr - sizeof(Head_t));
[all …]
H A Dvmstat.c45 Block_t *b, *endb;
110 b = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS) );
H A Dvmtrace.c260 { Block_t *b, *endb;
279 b = (Block_t*)((Vmuchar_t*)DATA(b) + (SIZE(b)&~BITS) );