Searched defs:vm (Results 1 - 25 of 53) sorted by relevance

123

/illumos-gate/usr/src/lib/libast/common/vmalloc/
H A Dvmdisc.c37 Vmdisc_t* vmdisc(Vmalloc_t* vm, Vmdisc_t* disc) argument
39 Vmdisc_t* vmdisc(vm, disc)
40 Vmalloc_t* vm;
44 Vmdisc_t* old = vm->disc;
50 (*old->exceptf)(vm,VM_DISC,(Void_t*)disc,old) != 0 )
52 vm->disc = disc;
H A Dvmgetmem.c31 * vm open/close/resize - a handy default for discipline memory functions
43 Void_t* vmgetmem(Vmalloc_t* vm, Void_t* data, size_t size) argument
45 Void_t* vmgetmem(vm, data, size)
46 Vmalloc_t* vm;
51 if (!vm)
54 return vmresize(vm, data, size, VM_RSMOVE|VM_RSCOPY|VM_RSZERO);
55 vmclose(vm);
H A Dvmregion.c44 Vmalloc_t *vm; local
51 for(vm = Vmheap; vm; vm = vm->next)
52 if(vm->data == vd)
55 return vm;
H A Dvmwalk.c36 int vmwalk(Vmalloc_t* vm, int(*segf)(Vmalloc_t*, Void_t*, size_t, Vmdisc_t*, Void_t*), Void_t* handle ) argument
38 int vmwalk(vm, segf, handle)
39 Vmalloc_t* vm;
47 if(!vm)
48 { for(vm = Vmheap; vm; vm = vm->next)
49 { if(!(vm->data->mode&VM_TRUST) && ISLOCK(vm
[all...]
H A Dvmsegment.c36 Void_t* vmsegment(Vmalloc_t* vm, Void_t* addr) argument
38 Void_t* vmsegment(vm, addr)
39 Vmalloc_t* vm; /* region */
44 reg Vmdata_t* vd = vm->data;
H A Dvmclear.c35 int vmclear(Vmalloc_t* vm) argument
37 int vmclear(vm)
38 Vmalloc_t* vm;
45 reg Vmdata_t* vd = vm->data;
H A Dvmclose.c35 int vmclose(Vmalloc_t* vm) argument
37 int vmclose(vm)
38 Vmalloc_t* vm;
43 Vmdata_t* vd = vm->data;
46 if(vm == Vmheap)
52 if(vm->disc->exceptf &&
53 (ev = (*vm->disc->exceptf)(vm,VM_CLOSE,NIL(Void_t*),vm->disc)) < 0 )
61 (*_Vmpfclose)(vm);
[all...]
H A Dvmdcheap.c35 static Void_t* heapmem(Vmalloc_t* vm, Void_t* caddr, argument
39 static Void_t* heapmem(vm, caddr, csize, nsize, disc)
40 Vmalloc_t* vm; /* region doing allocation from */
47 NOTUSED(vm);
H A Dvmset.c36 int vmset(reg Vmalloc_t* vm, int flags, int on) argument
38 int vmset(vm, flags, on)
39 reg Vmalloc_t* vm; /* region being worked on */
45 reg Vmdata_t* vd = vm->data;
H A Dvmstat.c36 int vmstat(Vmalloc_t* vm, Vmstat_t* st) argument
38 int vmstat(vm, st)
39 Vmalloc_t* vm;
46 reg Vmdata_t* vd = vm ? vm->data : Vmregion->data;
H A Dvmopen.c56 reg Vmalloc_t* vm; local
72 if(!(vm = (Vmalloc_t*)vmalloc(Vmheap,sizeof(Vmalloc_t))) )
74 vm->meth = *meth;
75 vm->disc = disc;
76 vm->file = NIL(char*);
77 vm->line = 0;
81 if((e = (*disc->exceptf)(vm,VM_OPEN,(Void_t*)(&addr),disc)) != 0)
92 { vm->data = vd;
97 vmfree(Vmheap,vm);
109 if(!(addr = (Vmuchar_t*)(*memoryf)(vm,NI
[all...]
H A Dvmlast.c36 static Void_t* lastalloc(Vmalloc_t* vm, size_t size) argument
38 static Void_t* lastalloc(vm, size)
39 Vmalloc_t* vm;
46 reg Vmdata_t* vd = vm->data;
75 if((tp = (*_Vmextend)(vm,size,NIL(Vmsearch_f))) )
96 (*_Vmtrace)(vm, NIL(Vmuchar_t*), (Vmuchar_t*)tp, orgsize, 0);
100 ANNOUNCE(local, vm, VM_ALLOC, (Void_t*)tp, vm->disc);
106 static int lastfree(Vmalloc_t* vm, reg Void_t* data ) argument
108 static int lastfree(vm, dat
162 lastresize(Vmalloc_t* vm, reg Void_t* data, size_t size, int type ) argument
311 lastaddr(Vmalloc_t* vm, Void_t* addr) argument
328 lastsize(Vmalloc_t* vm, Void_t* addr) argument
347 lastcompact(Vmalloc_t* vm) argument
392 lastalign(Vmalloc_t* vm, size_t size, size_t align) argument
[all...]
H A Dvmprivate.c39 static Block_t* vmextend(reg Vmalloc_t* vm, size_t size, Vmsearch_f searchf ) argument
41 static Block_t* vmextend(vm, size, searchf )
42 reg Vmalloc_t* vm; /* region to increase in size */
51 reg Vmdata_t* vd = vm->data;
52 reg Vmemory_f memoryf = vm->disc->memoryf;
53 reg Vmexcept_f exceptf = vm->disc->exceptf;
58 if(!_Vmtrace && vm == Vmheap && (vd->mode&VM_TRUST) )
73 if(size > 2*vd->incr && vm->disc->round < vd->incr)
87 addr = (Vmuchar_t*)(*memoryf)(vm,seg->addr,seg->extent,
88 seg->extent+size-s,vm
211 vmtruncate(Vmalloc_t* vm, Seg_t* seg, size_t size, int exact) argument
[all...]
H A Dvmpool.c42 static Void_t* poolalloc(Vmalloc_t* vm, reg size_t size) argument
44 static Void_t* poolalloc(vm, size )
45 Vmalloc_t* vm;
49 reg Vmdata_t* vd = vm->data;
88 { if((tp = (*_Vmextend)(vm,ROUND(size,vd->incr),NIL(Vmsearch_f))) )
117 (*_Vmtrace)(vm,NIL(Vmuchar_t*),(Vmuchar_t*)tp,vd->pool,0);
120 ANNOUNCE(local, vm, VM_ALLOC, (Void_t*)tp, vm->disc);
126 static long pooladdr(Vmalloc_t* vm, reg Void_t* addr) argument
128 static long pooladdr(vm, add
179 poolfree(reg Vmalloc_t* vm, reg Void_t* data ) argument
227 poolresize(Vmalloc_t* vm, Void_t* data, size_t size, int type ) argument
281 poolsize(Vmalloc_t* vm, Void_t* addr) argument
292 poolcompact(Vmalloc_t* vm) argument
337 poolalign(Vmalloc_t* vm, size_t size, size_t align) argument
[all...]
/illumos-gate/usr/src/cmd/mdb/demo/common/
H A Dexample1.c68 vminfo_t vm; local
73 if (mdb_readvar(&vm, "vminfo") == -1) {
83 mdb_printf("%8llu pages of free memory\n", vm.freemem);
84 mdb_printf("%8llu pages of reserved swap\n", vm.swap_resv);
85 mdb_printf("%8llu pages of allocated swap\n", vm.swap_alloc);
86 mdb_printf("%8llu pages of unreserved swap\n", vm.swap_avail);
87 mdb_printf("%8llu pages of unallocated swap\n", vm.swap_free);
101 { "vminfo", NULL, "print vm information", vminfo },
/illumos-gate/usr/src/common/ficl/
H A Dprefix.c69 ficlVmParsePrefix(ficlVm *vm, ficlString s) argument
73 ficlWord *word = ficlSystemLookup(vm->callback.system, list_name);
104 ficlVmSetTibIndex(vm,
105 s.text + n - vm->tib.text);
106 ficlVmExecuteWord(vm, word);
118 ficlPrimitiveTempBase(ficlVm *vm) argument
120 int oldbase = vm->base;
121 ficlString number = ficlVmGetWord0(vm);
122 int base = ficlStackPopInteger(vm->dataStack);
124 vm
[all...]
H A Dmain.c92 ficlVm *vm; local
116 if ((vm = bf_init("", NULL)) == NULL)
118 returnValue = ficlVmEvaluate(vm, ".ver .( " __DATE__ " ) cr quit");
126 returnValue = ficlVmEvaluate(vm, buffer);
H A Dextras.c15 ficlPrimitiveSystem(ficlVm *vm) argument
17 ficlCountedString *counted = (ficlCountedString *)vm->pad;
19 ficlVmGetString(vm, counted, '\n');
24 sprintf(vm->pad, "System call returned %d\n",
26 ficlVmTextOut(vm, vm->pad);
27 ficlVmThrow(vm, FICL_VM_STATUS_QUIT);
30 ficlVmTextOut(vm, "Warning (system): nothing happened\n");
43 ficlPrimitiveLoad(ficlVm *vm) argument
54 ficlVmGetString(vm, counte
125 ficlPrimitiveSpewHash(ficlVm *vm) argument
166 ficlPrimitiveBreak(ficlVm *vm) argument
[all...]
H A Dsearch.c56 ficlPrimitiveDefinitions(ficlVm *vm) argument
58 ficlDictionary *dictionary = ficlVmGetDictionary(vm);
60 FICL_VM_ASSERT(vm, dictionary);
62 ficlVmThrowError(vm, "DEFINITIONS error - empty search order");
77 ficlPrimitiveForthWordlist(ficlVm *vm) argument
79 ficlHash *hash = ficlVmGetDictionary(vm)->forthWordlist;
80 ficlStackPushPointer(vm->dataStack, hash);
90 ficlPrimitiveGetCurrent(ficlVm *vm) argument
92 ficlDictionary *dictionary = ficlVmGetDictionary(vm);
94 ficlStackPushPointer(vm
107 ficlPrimitiveGetOrder(ficlVm *vm) argument
131 ficlPrimitiveSearchWordlist(ficlVm *vm) argument
161 ficlPrimitiveSetCurrent(ficlVm *vm) argument
182 ficlPrimitiveSetOrder(ficlVm *vm) argument
224 ficlPrimitiveFiclWordlist(ficlVm *vm) argument
243 ficlPrimitiveSearchPop(ficlVm *vm) argument
264 ficlPrimitiveSearchPush(ficlVm *vm) argument
283 ficlPrimitiveWidGetName(ficlVm *vm) argument
311 ficlPrimitiveWidSetName(ficlVm *vm) argument
326 ficlPrimitiveSetParentWid(ficlVm *vm) argument
[all...]
H A Dsystem.c121 callback.vm = NULL;
159 system->callback.vm = NULL;
271 ficlVm *vm = system->vmList; local
273 ficlVmDestroy(vm);
333 ficlVm *vm = ficlVmCreate(NULL, system->stackSize, system->stackSize); local
334 vm->link = system->vmList;
336 memcpy(&(vm->callback), &(system->callback), sizeof (system->callback));
337 vm->callback.vm = vm;
352 ficlSystemDestroyVm(ficlVm *vm) argument
[all...]
/illumos-gate/usr/src/lib/libast/common/cdt/
H A Ddtnew.c25 * dtopen() with handle placed in specific vm region
34 Vmalloc_t* vm; member in struct:Dc_s
51 return vmresize(((Dc_t*)disc)->vm, addr, size, VM_RSMOVE);
55 * open a dictionary using disc->memoryf if set or vm otherwise
59 dtnew(Vmalloc_t* vm, Dtdisc_t* disc, Dtmethod_t* meth) argument
69 dc.vm = vm;
/illumos-gate/usr/src/lib/libcmd/common/
H A Dvmstate.c55 Vmalloc_t* vm; member in struct:State_s
75 *pn = integralof(state->vm);
101 visit(Vmalloc_t* vm, void* addr, size_t size, Vmdisc_t* disc, void* handle) argument
106 if (vm != state->vm)
108 state->vm = vm;
110 state->region[state->regions++] = vm;
157 state.vm = state.region[i];
158 vmstat(state.vm,
[all...]
/illumos-gate/usr/src/cmd/tbl/
H A Dtv.c24 int tp=0, sl, ln, pos, epb, ept, vm; local
26 vm='v';
77 vm = 'm'; break;
85 vm = 'm';
108 fprintf(tabout, "\\L'|\\n(#%cu-%s", linestop[start]+'a'-1, vm=='v'? "1v" : "\\n(35u");
118 fprintf(tabout, "'\\s0\\v'\\n(\\*(#du-\\n(#%cu+%s", linestop[start]+'a'-1,vm=='v' ? "1v" : "\\n(35u");
/illumos-gate/usr/src/lib/libdll/common/
H A Ddllscan.c35 Vmalloc_t* vm; \
218 Vmalloc_t* vm; local
222 if (!(vm = vmopen(Vmdcheap, Vmlast, 0)))
241 if (!(scan = vmnewof(vm, 0, Dllscan_t, 1, i)) || !(scan->tmp = sfstropen()))
243 vmclose(vm);
246 scan->vm = vm;
264 if (!(scan->pb = vmnewof(vm, 0, char, t - (char*)name, 2)))
276 if (!(s = vmnewof(vm, 0, char, t - (char*)name, 1)))
349 if (scan->vm)
[all...]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dbitset.c145 int v, vm, vi; local
161 for (v = val_start; v < val_max; v = vm) {
163 vm = v + ruler_width;
165 vm = val_max;
167 nl = log10(vm) - 1;
173 for (vi = v; vi < vm; vi++) {
189 for (vi = v; vi < vm; vi++) {

Completed in 81 milliseconds

123