Skip to main content.

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);

5.3.7. poll and =select= 1. Denx Training Topics 5.4. Debugging Techniques
Prev Home Next