Patent ID: 7234039
Filing Date: 2007-06-19
Classification: G06F

Abstract:
1. In a computer system having a memory and capable of supporting a physical memory address space and a virtual memory address space, a method for determining the address of an allocated memory buffer within the physical address space, the method comprising: requesting the allocation of memory for the memory buffer; in response to the request, receiving a virtual memory address in the virtual memory address space for the memory buffer; determining whether the virtual memory address in the virtual memory address space corresponds to a page boundary in the physical memory address space; in response to determining that the virtual memory address does not correspond to a page boundary in the physical memory address space, adjusting the virtual memory address to correspond to a page boundary in the physical memory address space; locking the memory buffer to its location within the physical memory address space; writing a predetermined bit pattern to the memory area identified by the adjusted virtual memory address; searching the physical memory address space for the bit pattern; determining whether the bit pattern was located in the physical memory address space; in response to locating the bit pattern in the physical memory address space, determining the address in the physical memory address space at which the bit pattern was located; and utilizing both the identified address in the physical memory address space at which the bit pattern was located and the adjusted virtual memory address in the virtual memory address space for the memory buffer to reference the memory buffer.