Re: mmaping device memory into userspace.

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

 



On 3/28/07, Erik Mouw <mouw@xxxxxxxxxxxx> wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, Mar 28, 2007 at 09:45:52AM +0530, Daniel Rodrick wrote:
> If we map device memory into user space using mmap(), the user will be
> able to do read / write into device using normal memory handling
> routines, right?

Right.

> But as mentioned in LDD3, should appropriate readb() / writeb()
> routines be actually used to read / write into device memory?

LDD3 is right (as usual :).


So using mmap() to map device memory into user space, and then reading
/ writing to device memory in same way as normal memory isn't correct?

Thanks,

Dan.
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

[Index of Archives]     [Audio]     [Hams]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Fedora Users]

  Powered by Linux