Lines Matching refs:vm
36 int vmwalk(Vmalloc_t* vm, int(*segf)(Vmalloc_t*, Void_t*, size_t, Vmdisc_t*, Void_t*), Void_t* handle )
38 int vmwalk(vm, segf, handle)
39 Vmalloc_t* vm;
47 if(!vm)
49 for(vm = Vmheap; vm; vm = vm->next)
50 { SETLOCK(vm, 0);
51 for(seg = vm->data->seg; seg; seg = seg->next)
52 if((rv = (*segf)(vm, seg->addr, seg->extent, vm->disc, handle)) < 0 )
54 CLRLOCK(vm, 0);
59 { SETLOCK(vm, 0);
60 for(seg = vm->data->seg; seg; seg = seg->next)
61 if((rv = (*segf)(vm, seg->addr, seg->extent, vm->disc, handle)) < 0 )
63 CLRLOCK(vm, 0);