Re: whats wrong with my mmap code?

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

 



On Tuesday 04 September 2007 08:18, srinivas bakki wrote:
> >        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 .

I double checked this - it doesn't work with qcard->memstart neither.

Bye...Frank

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[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