Re: MALLOC failing..
Re: MALLOC failing..
- Subject: Re: MALLOC failing..
- From: Andrew Gallatin <email@hidden>
- Date: Thu, 14 Aug 2003 17:20:05 -0400 (EDT)
Jim Magee writes:
>
limit (from a physical memory perspective). You may be having trouble
>
allocating enough contiguous virtual space in kernel - given that you
>
say most of the rest of memory is also wired down in the kernel.
The hundreds of megabytes which are wired came from the address space
of a user program, and are wired via prepare. They're never
explicitly mapped into the kernel's address space. Eg: (err checking
omitted for brevity):
md = IOMemoryDescriptor::withAddress ((vm_address_t) uaddr,
(IOByteCount) PAGE_SIZE,
kIODirectionOutIn, task);
md->prepare (kIODirectionOutIn);
*dma_addr = md->getPhysicalSegment (0, &len);
Does the above map the memory at uaddr into the kernel, or otherwise
waste kernel address space?
Thanks,
Drew
_______________________________________________
darwin-kernel mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/darwin-kernel
Do not post admin requests to the list. They will be ignored.