Re: whats wrong with my mmap code?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




       qcard->memaccess = ioremap(qcard->memstart, qcard->memlen);

   unsigned long physical = (unsigned long) qcard->memaccess + off;
 
 
   if (remap_pfn_range(vma, vma->vm_start, phys_to_pfn(physical), vsize,
               vma->vm_page_prot))
       return -EAGAIN;
 
 
qcard->memaccess is not physical address .
 
Regards
Srinivas Bakki

[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux