Skip to content
Snippets Groups Projects
Commit 75b79aa7 authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

lrdp-v2: Add docstring to MMU.virt_to_phys

MMU.virt_to_phys currently lacks a docstring. They're useful, so add
one.

Change-Id: I95b0a7a8f97912f178157eb4b68c453585e547bd
parent e0e640fd
No related branches found
No related tags found
No related merge requests found
# Copyright (c) 2013, The Linux Foundation. All rights reserved.
# Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 and
......@@ -43,6 +43,10 @@ class MMU(object):
self.load_page_tables()
def virt_to_phys(self, addr, skip_tlb=False, save_in_tlb=True):
"""Do a virtual to physical address lookup and possibly cache the
result in the "TLB".
"""
if addr is None:
return None
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment