how to implement mmap for sysfs device driver

Valdis.Kletnieks at Valdis.Kletnieks at
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 : 

More information about the Kernelnewbies mailing list