/illumos-gate/usr/src/contrib/ast/src/lib/libast/include/ |
H A D | vmalloc.h | 38 typedef struct _vmalloc_s Vmalloc_t; typedef 43 typedef Void_t* (*Vmemory_f)_ARG_((Vmalloc_t*, Void_t*, size_t, size_t, Vmdisc_t*)); 44 typedef int (*Vmexcept_f)_ARG_((Vmalloc_t*, int, Void_t*, Vmdisc_t*)); 70 { Void_t* (*allocf)_ARG_((Vmalloc_t*,size_t,int)); 71 Void_t* (*resizef)_ARG_((Vmalloc_t*,Void_t*,size_t,int,int)); 72 int (*freef)_ARG_((Vmalloc_t*,Void_t*,int)); 73 long (*addrf)_ARG_((Vmalloc_t*,Void_t*,int)); 74 long (*sizef)_ARG_((Vmalloc_t*,Void_t*,int)); 75 int (*compactf)_ARG_((Vmalloc_t*,int)); 76 Void_t* (*alignf)_ARG_((Vmalloc_t*,size_t,size_t,int)); [all …]
|
H A D | dt.h | 34 extern Dt_t* dtnew(Vmalloc_t*, Dtdisc_t*, Dtmethod_t*); 35 extern Dt_t* _dtnew(Vmalloc_t*, Dtdisc_t*, Dtmethod_t*, unsigned long);
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/vmalloc/ |
H A D | vmopen.c | 45 { Vmalloc_t vm; /* embedded region if needed */ 46 Vmuchar_t a[ROUND(sizeof(Vmalloc_t),ALIGN)]; 56 Vmalloc_t* vmopen(Vmdisc_t* disc, Vmethod_t* meth, int mode) in vmopen() 58 Vmalloc_t* vmopen(disc, meth, mode) in vmopen() 64 Vmalloc_t *vm, *vmp, vmproto; 74 return NIL(Vmalloc_t*); 79 memset(vmp, 0, sizeof(Vmalloc_t)); 89 return NIL(Vmalloc_t*); 96 return NIL(Vmalloc_t*); 108 return NIL(Vmalloc_t*); [all …]
|
H A D | vmregion.c | 38 Vmalloc_t* vmregion(Void_t* addr) in vmregion() 40 Vmalloc_t* vmregion(addr) in vmregion() 44 Vmalloc_t *vm; 48 return NIL(Vmalloc_t*); 52 _vmlock(NIL(Vmalloc_t*), 1); 56 _vmlock(NIL(Vmalloc_t*), 0);
|
H A D | vmpool.c | 42 static Void_t* poolalloc(Vmalloc_t* vm, reg size_t size, int local) in poolalloc() 45 Vmalloc_t* vm; in poolalloc() 114 static long pooladdr(Vmalloc_t* vm, reg Void_t* addr, int local) in pooladdr() 117 Vmalloc_t* vm; in pooladdr() 159 static int poolfree(reg Vmalloc_t* vm, reg Void_t* data, int local ) in poolfree() 162 Vmalloc_t* vm; in poolfree() 192 static Void_t* poolresize(Vmalloc_t* vm, Void_t* data, size_t size, int type, int local ) in poolresize() 195 Vmalloc_t* vm; in poolresize() 232 static long poolsize(Vmalloc_t* vm, Void_t* addr, int local) in poolsize() 235 Vmalloc_t* vm; in poolsize() [all …]
|
H A D | vmwalk.c | 36 int vmwalk(Vmalloc_t* vm, int(*segf)(Vmalloc_t*, Void_t*, size_t, Vmdisc_t*, Void_t*), Void_t* hand… in vmwalk() argument 39 Vmalloc_t* vm; in vmwalk() 48 { _vmlock(NIL(Vmalloc_t*), 1); 56 _vmlock(NIL(Vmalloc_t*), 0);
|
H A D | vmdebug.c | 81 static void vmdbwarn(Vmalloc_t* vm, char* mesg, int n) in vmdbwarn() 84 Vmalloc_t* vm; in vmdbwarn() 98 static void dbwarn(Vmalloc_t* vm, Void_t* data, int where, in dbwarn() 102 Vmalloc_t* vm; /* region holding the block */ in dbwarn() 187 static void dbwatch(Vmalloc_t* vm, Void_t* data, in dbwatch() 191 Vmalloc_t* vm; in dbwatch() 264 static long dbaddr(Vmalloc_t* vm, Void_t* addr, int local) in dbaddr() 267 Vmalloc_t* vm; in dbaddr() 323 static long dbsize(Vmalloc_t* vm, Void_t* addr, int local) in dbsize() 326 Vmalloc_t* vm; in dbsize() [all …]
|
H A D | vmprofile.c | 54 Vmalloc_t* vm; /* region alloc from */ 73 static Vmalloc_t* Vmpf; /* heap for our own use */ 76 static Pfobj_t* pfsearch(Vmalloc_t* vm, char* file, int line) in pfsearch() 79 Vmalloc_t* vm; /* region allocating from */ in pfsearch() 182 static void pfclose(Vmalloc_t* vm) in pfclose() 185 Vmalloc_t* vm; in pfclose() 210 static void pfsetinfo(Vmalloc_t* vm, Vmuchar_t* data, size_t size, char* file, int line) in pfsetinfo() 213 Vmalloc_t* vm; in pfsetinfo() 354 int vmprofile(Vmalloc_t* vm, int fd) in vmprofile() 357 Vmalloc_t* vm; in vmprofile() [all …]
|
H A D | vmclose.c | 35 int vmclose(Vmalloc_t* vm) in vmclose() 38 Vmalloc_t* vm; in vmclose() 42 Vmalloc_t *v, *last; 60 _vmlock(NIL(Vmalloc_t*), 1); 67 _vmlock(NIL(Vmalloc_t*), 0);
|
H A D | vmlast.c | 36 static Void_t* lastalloc(Vmalloc_t* vm, size_t size, int local) in lastalloc() 39 Vmalloc_t* vm; in lastalloc() 92 static int lastfree(Vmalloc_t* vm, reg Void_t* data, int local ) in lastfree() 95 Vmalloc_t* vm; in lastfree() 135 static Void_t* lastresize(Vmalloc_t* vm, reg Void_t* data, size_t size, int type, int local) in lastresize() 138 Vmalloc_t* vm; in lastresize() 271 static long lastaddr(Vmalloc_t* vm, Void_t* addr, int local) in lastaddr() 274 Vmalloc_t* vm; in lastaddr() 294 static long lastsize(Vmalloc_t* vm, Void_t* addr, int local) in lastsize() 297 Vmalloc_t* vm; in lastsize() [all …]
|
H A D | vmmopen.c | 111 int _vmmdump(Vmalloc_t* vm, int fd) in _vmmdump() 300 static Void_t* mmgetmem(Vmalloc_t* vm, Void_t* caddr, in mmgetmem() 304 Vmalloc_t* vm; in mmgetmem() 335 static int mmexcept(Vmalloc_t* vm, int type, Void_t* data, Vmdisc_t* disc) in mmexcept() 338 Vmalloc_t* vm; in mmexcept() 387 Vmalloc_t* vmmopen(char* file, int proj, ssize_t size ) in vmmopen() 389 Vmalloc_t* vmmopen(file, proj, size ) in vmmopen() 395 Vmalloc_t *vm; 401 return NIL(Vmalloc_t*); 405 return NIL(Vmalloc_t*); [all …]
|
H A D | vmprivate.c | 40 static Block_t* _vmextend(reg Vmalloc_t* vm, size_t size, Vmsearch_f searchf ) in _vmextend() 43 reg Vmalloc_t* vm; /* region to increase in size */ in _vmextend() 186 static ssize_t _vmtruncate(Vmalloc_t* vm, Seg_t* seg, size_t size, int exact) in _vmtruncate() 189 Vmalloc_t* vm; /* containing region */ in _vmtruncate() 257 int _vmlock(Vmalloc_t* vm, int locking) in _vmlock() 285 NIL(void(*)_ARG_((Vmalloc_t*, 287 NIL(void(*)_ARG_((Vmalloc_t*))) /* _Vmpfclose */
|
H A D | malloc.c | 272 static Vmalloc_t *Region[64]; /* list of concurrent regions */ 275 static Vmalloc_t* Region[1]; /* list of concurrent regions */ 327 static Vmalloc_t* regionof(Void_t* addr) in regionof() 343 return NIL(Vmalloc_t*); in regionof() 353 return NIL(Vmalloc_t*); in regionof() 378 Vmalloc_t *vm; in clrfreelist() 404 static int regexcept(Vmalloc_t* vm, int type, Void_t* data, Vmdisc_t* disc) in regexcept() 414 static Vmalloc_t* getregion(int* local) in getregion() 416 Vmalloc_t *vm; in getregion() 463 /**/ASSERT(Region[p] == NIL(Vmalloc_t*)); in getregion() [all …]
|
H A D | vmstrdup.c | 35 char* vmstrdup(Vmalloc_t* v, register const char* s) in vmstrdup() 38 Vmalloc_t* v; in vmstrdup()
|
H A D | vmgetmem.c | 37 Void_t* vmgetmem(Vmalloc_t* vm, Void_t* data, size_t size) in vmgetmem() 40 Vmalloc_t* vm; in vmgetmem()
|
H A D | vmdisc.c | 37 Vmdisc_t* vmdisc(Vmalloc_t* vm, Vmdisc_t* disc) in vmdisc() 40 Vmalloc_t* vm; in vmdisc()
|
H A D | vmset.c | 36 int vmset(reg Vmalloc_t* vm, int flags, int on) in vmset() 39 reg Vmalloc_t* vm; /* region being worked on */ in vmset()
|
H A D | vmbest.c | 522 static int bestcompact(Vmalloc_t* vm, int local) in bestcompact() 525 Vmalloc_t* vm; in bestcompact() 606 static Void_t* bestalloc(Vmalloc_t* vm, size_t size , int local) in bestalloc() 609 Vmalloc_t* vm; /* region allocating from */ in bestalloc() 716 static long bestaddr(Vmalloc_t* vm, Void_t* addr, int local ) in bestaddr() 719 Vmalloc_t* vm; /* region allocating from */ in bestaddr() 768 static int bestfree(Vmalloc_t* vm, Void_t* data, int local ) in bestfree() 771 Vmalloc_t* vm; in bestfree() 840 static Void_t* bestresize(Vmalloc_t* vm, Void_t* data, reg size_t size, int type, int local) in bestresize() 843 Vmalloc_t* vm; /* region allocating from */ in bestresize() [all …]
|
H A D | vmsegment.c | 36 Void_t* vmsegment(Vmalloc_t* vm, Void_t* addr) in vmsegment() 39 Vmalloc_t* vm; /* region */ in vmsegment()
|
H A D | vmdcheap.c | 35 static Void_t* heapmem(Vmalloc_t* vm, Void_t* caddr, in heapmem() 40 Vmalloc_t* vm; /* region doing allocation from */ in heapmem()
|
H A D | vmtrace.c | 100 static void trtrace(Vmalloc_t* vm, in trtrace() 104 Vmalloc_t* vm; /* region call was made from */ in trtrace() 247 int vmtrbusy(Vmalloc_t* vm) in vmtrbusy() 250 Vmalloc_t* vm; in vmtrbusy()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/astsa/ |
H A D | vmalloc.c | 31 Vmalloc_t* Vmregion; 33 Vmalloc_t* 36 Vmalloc_t* vp; in _vm_open() 38 if (vp = newof(0, Vmalloc_t, 1, 0)) in _vm_open() 48 _vm_close(register Vmalloc_t* vp) in _vm_close() 66 _vm_resize(register Vmalloc_t* vp, void* o, unsigned long size) in _vm_resize()
|
H A D | vmalloc.h | 53 } Vmalloc_t; typedef 55 extern Vmalloc_t* Vmregion; 57 extern int _vm_close(Vmalloc_t*); 58 extern Vmalloc_t* _vm_open(void); 59 extern void* _vm_resize(Vmalloc_t*, void*, unsigned long);
|
/illumos-gate/usr/src/contrib/ast/src/lib/libast/cdt/ |
H A D | dtnew.c | 34 Vmalloc_t* vm; 59 _dtnew(Vmalloc_t* vm, Dtdisc_t* disc, Dtmethod_t* meth, unsigned long version) in _dtnew() 78 dtnew(Vmalloc_t* vm, Dtdisc_t* disc, Dtmethod_t* meth) in dtnew()
|
/illumos-gate/usr/src/contrib/ast/src/lib/libcmd/ |
H A D | vmstate.c | 58 Vmalloc_t* vm; 61 Vmalloc_t* region[256]; 137 visit(Vmalloc_t* vm, void* addr, size_t size, Vmdisc_t* disc, void* handle) in visit()
|