DENX . Training2 . LddMemoryMapping

5.3.8. Memory mapping

API: mmap

file operation

int *mmap (struct file *filp, struct vm_area_struct *vma);

build page tables

int remap_pfn_range(struct vm_area_struct *vma, unsigned long virt_addr,
          unsigned long pfn, unsigned long size, pgprot_t prot);

/* identical to above on most plattforms: */
int io_remap_pfn_range(struct vm_area_struct *vma, unsigned long virt_addr, 
             unsigned long phys_addr, unsigned long size, pgprot_t prot);

----- Revision r1.2 - 25 Mar 2008 - 14:31 - MarkusKlotzbuecher
Copyright © 2002-2020 by DENX Software Engineering