Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

static int mxc_asrc_mmap ( struct file *  file,
struct vm_area_struct *  vma 
) [static]

asrc interface - mmap function

file structure file *
vma structure vm_area_struct *
status 0 Success, EINTR busy lock error, ENOBUFS remap_page error

Definition at line 1452 of file mxc_asrc.c.

      unsigned long size;
      int res = 0;
      size = vma->vm_end - vma->vm_start;
      vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
      if (remap_pfn_range(vma, vma->vm_start,
                      vma->vm_pgoff, size, vma->vm_page_prot))
            return -ENOBUFS;

      vma->vm_flags &= ~VM_IO;
      return res;

Generated by  Doxygen 1.6.0   Back to index