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

Re: whats wrong with my mmap code?



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