Invention Grant
US09003120B2 Method and apparatus for querying for and traversing virtual memory area 有权
用于查询和遍历虚拟内存区域的方法和装置

Method and apparatus for querying for and traversing virtual memory area
Abstract:
Embodiments of the present invention disclose a method and an apparatuses for querying for and traversing a virtual memory area. The method includes: determining whether a virtual memory area (vma) corresponding to a query address is in an adjacent range of a cached vma, and if the vma corresponding to the query address is in the adjacent range of the cached vma, querying for the vma by using a thread on a node of a threaded red-black tree. Since an adjacent range of the cached vma can always be determined, the hit rate of accessing the cache is improved, and the time complexity of implementing the whole vma traversal is O(n), thereby improving vma query efficiency.
Information query
Patent Agency Ranking
0/0