how to implement mmap for sysfs device driver

Valdis.Kletnieks at vt.edu Valdis.Kletnieks at vt.edu
Fri Sep 20 11:03:18 EDT 2013


On Fri, 20 Sep 2013 14:24:02 +0530, Niroj Pokhrel said:

> i. I have created a sysfs bin files (because it support mmap)

This is *definitely* the Wrong Way To Do I/O.  Period. Full Stop.

Please implement an actual character or block special device, as appropriate
for the hardware in question.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 865 bytes
Desc: not available
Url : http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20130920/4a8e62d8/attachment.bin 


More information about the Kernelnewbies mailing list