Re: Basic Kernel Extension Programming questions
Re: Basic Kernel Extension Programming questions
- Subject: Re: Basic Kernel Extension Programming questions
- From: Andrew Gallatin <email@hidden>
- Date: Fri, 18 Nov 2011 11:27:42 -0500
What I am attempting to do now is to see if I can loop over all 8gb
of physical memory
for ( x = 0; x < 1024 * 1024 * 1024 * 8; x++ )
{
descriptor = IOMemoryDescriptor::withPhysicalAddress( x, 10,
kIODirectionOut );
descriptor->prepare( kIODirectionOut );
descriptor->readBytes( 0, buffer, 10 );
descriptor->complete();
descriptor->release();
}
You will almost certainly still run into problems, but
reading in 10 byte chunks is almost certainly causing
you more problems, since you're going to be reading
odd lengths.
Try reading 4 or 8 bytes.
I'd say the odds are good that you'll still crash, but
who knows..
Drew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden