Displaying 4 results from an estimated 4 matches for "virt_to_pfn".
Did you mean:
virt_to_mfn
2007 Apr 18
0
[PATCH 4/5] Add address translation
...e/asm-i386/pgtable.h 2005-08-24 09:47:38.000000000 -0700
@@ -388,6 +388,28 @@ static inline pte_t pte_modify(pte_t pte
extern pte_t *lookup_address(unsigned long address);
/*
+ * Helper function that returns physical page for virtual address.
+ * This assumes the mapping is valid.
+ */
+#define virt_to_pfn(_address) \
+({ \
+ unsigned long long __paddr; \
+ pgd_t *pgd = pgd_offset_k(_address); \
+ pud_t *pud = pud_offset(pgd, (_address)); \
+ pmd_t *pmd = pmd_offset(pud, (_address)); \
+ if (pmd_large(*pmd)) \
+ __paddr = (pmd_val(*pmd) & LARGE_PAGE_MASK) | \
+ ((_addre...
2007 Apr 18
0
[PATCH 4/5] Add address translation
...e/asm-i386/pgtable.h 2005-08-24 09:47:38.000000000 -0700
@@ -388,6 +388,28 @@ static inline pte_t pte_modify(pte_t pte
extern pte_t *lookup_address(unsigned long address);
/*
+ * Helper function that returns physical page for virtual address.
+ * This assumes the mapping is valid.
+ */
+#define virt_to_pfn(_address) \
+({ \
+ unsigned long long __paddr; \
+ pgd_t *pgd = pgd_offset_k(_address); \
+ pud_t *pud = pud_offset(pgd, (_address)); \
+ pmd_t *pmd = pmd_offset(pud, (_address)); \
+ if (pmd_large(*pmd)) \
+ __paddr = (pmd_val(*pmd) & LARGE_PAGE_MASK) | \
+ ((_addre...
2018 May 02
2
[PATCH] kvmalloc: always use vmalloc if CONFIG_DEBUG_VM
On Tue, 24 Apr 2018 12:33:01 -0400 (EDT) Mikulas Patocka <mpatocka at redhat.com> wrote:
>
>
> On Tue, 24 Apr 2018, Michal Hocko wrote:
>
> > On Tue 24-04-18 11:30:40, Mikulas Patocka wrote:
> > >
> > >
> > > On Tue, 24 Apr 2018, Michal Hocko wrote:
> > >
> > > > On Mon 23-04-18 20:25:15, Mikulas Patocka wrote:
>
2012 Nov 26
13
[PATCH 0 of 4] Minios improvements for app development
This patch series contains a set of patches making minios rather easier
to use, from an application development point of view.
Overview of patches:
1 Command line argument parsing support, from Xen.
2 Weak console handler function.
3 Build system tweaks for application directories.
4 Trailing whitespace cleanup. (because it is very messy)
Patch 4 is likely to be more controversial than