Re: IOBufferMemoryDescriptor::getVirtualSegment Deprecated and Missing?
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com In message <20090410204924.1368388445@mini.internal.murphyslogic.com>,"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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
Chas Williams (CONTRACTOR)