Re: IOBufferMemoryDescriptor::getVirtualSegment Deprecated and Missing?
Re: IOBufferMemoryDescriptor::getVirtualSegment Deprecated and Missing?
- Subject: Re: IOBufferMemoryDescriptor::getVirtualSegment Deprecated and Missing?
- From: "Chas Williams (CONTRACTOR)" <email@hidden>
- Date: Sat, 11 Apr 2009 07:13:16 -0400
In message <email@hidden>,"Duane Murphy" writes:
>We are updating our drivers and moving them to 10.5 from 10.4. I am
>getting a link/load error when loading the kext.
>
>Undefined Symbols:
>IOBufferMemoryDescriptor::getVirtualSegment
sure you dont want to use getBytesNoCopy()? getVirtualSegment() is
basically the same except it optionally returned the remaining length
of the segment. you could subclass IOBufferMemoryDescriptor and
just implement this yourself if you really needed this functionality.
you should know the length you allocated.
/* DEPRECATED */ void * IOBufferMemoryDescriptor::getVirtualSegment(IOByteCount offset,
/* DEPRECATED */ IOByteCount * lengthOfSegment)
{
void * bytes = getBytesNoCopy(offset, 0);
if (bytes && lengthOfSegment)
*lengthOfSegment = _length - offset;
return bytes;
}
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden