Break a memory descriptor into its physically contiguous segments.
Framework
- Kernel
Declaration
#ifdef __LP64__
virtual addr64_t getPhysicalSegment(
IOByteCount offset,
IOByteCount *length,
IOOptionBits options = 0 ) = 0;
#else /* !__LP64__ */
virtual addr64_t getPhysicalSegment(
IOByteCount offset,
IOByteCount *length,
IOOptionBits options );
#endif
/* !__LP64__ */
Parameters
offsetA byte offset into the memory whose physical address to return.
lengthIf non-zero, getPhysicalSegment will store here the length of the physically contiguous segement at the given offset.
Return Value
A physical address, or zero if the offset is beyond the length of the memory.
Discussion
This method returns the physical address of the byte at the given offset into the memory, and optionally the length of the physically contiguous segment from that offset.