Lines Matching defs:vm
35 int vmclose(Vmalloc_t* vm)
37 int vmclose(vm)
38 Vmalloc_t* vm;
43 Vmdata_t* vd = vm->data;
44 Vmdisc_t* disc = vm->disc;
47 if(vm == Vmheap) /* the heap is never freed */
50 if(vm->disc->exceptf && /* announcing closing event */
51 (rv = (*vm->disc->exceptf)(vm,VM_CLOSE,(Void_t*)1,vm->disc)) < 0 )
57 (*_Vmpfclose)(vm);
62 { if(v == vm)
76 else (*disc->memoryf)(vm,seg->addr,seg->extent,0,disc);
79 (*disc->memoryf)(vm,vmseg->addr,vmseg->extent,0,disc);
83 (void)(*disc->exceptf)(vm, VM_ENDCLOSE, (Void_t*)0, disc);
86 vmfree(Vmheap,vm);