mmaping device memory into userspace.
Hi list,
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?
But as mentioned in LDD3, should appropriate readb() / writeb() routines be actually used to read / write into device memory?
Thanks,
Dan
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Quoted 3 lines · Daniel Rodrick
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.
Quoted 2 lines
But as mentioned in LDD3, should appropriate
readb()/writeb()routines be actually used to read / write into device memory?
LDD3 is right (as usual :).
Erik
- --
They're all fools. Don't worry. Darwin may be slow, but he'll eventually get them. -- Matthew Lammers in alt.sysadmin.recovery -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iD8DBQFGCkOS/PlVHJtIto0RAlkIAJwMalJoA8QoQavSVCkNWUUmKCbsQACfXN9F KBBecJiZkGziQYhrx0bt8kU=
=XlKa
-----END PGP SIGNATURE-----
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs
Quoted 8 lines · Erik Mouw
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Quoted 3 lines · Daniel Rodrick
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?
Quoted 7 lines
Right.
Quoted 2 lines
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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs