发明名称 METHOD AND APPARATUS FOR QUERYING AND TRAVERSING VIRTUAL MEMORY AREA
摘要 Disclosed are a method and an apparatus for querying and traversing a virtual memory area. The method comprises: determining whether a virtual memory area vma corresponding to a queried address is in an adjacent range of a cache vma, the adjacent range of the cache vma comprising an address range of at least one former adjacent vma and an address range of at least one latter adjacent vma of the cache vma; and if yes, querying the vma through a thread on a node of a threaded red-black tree, the node being a node corresponding to the cache vma, and the thread is a pointer pointing at a predecessor node and a successor node of each node on the threaded red-black tree. Further disclosed is a method for traversing a virtual memory area. Because acknowledgement for the adjacent range of the cache vma can always be met, thereby improving the hit rate of accessing the cache, and achieving the time complexity of the entire vma traversal being 0(n), so as to improve the querying efficiency of the vma.
申请公布号 WO2012149723(A1) 申请公布日期 2012.11.08
申请号 WO2011CN79293 申请日期 2011.09.02
申请人 HUAWEI TECHNOLOGIES CO., LTD.;HUANG, QIANG 发明人 HUANG, QIANG
分类号 G06F12/08 主分类号 G06F12/08
代理机构 代理人
主权项
地址