<div>Hi all,</div>
<div>I want to implement a device driver with mmap operations. However, I am not using ioctl call.</div>
<div>My approach:</div>
<div>i. I have created a sysfs bin files (because it support mmap)</div>
<div>ii. Now, I have implemented my mmap in my driver and assign this attribute to the sysfs file I have created.</div>
<div>However, I am facing the problem. The mmap is being called properly, however mmap_fault my implementation is not being called as a result of which the memory is not mapped. So, when I try to access this file I get segmentation fault.</div>
<div> </div>
<div>Can you please suggest what I should modify or is there anyother way to do it other than this ??</div>
<div>Thanking you in advance.</div>
<div> </div>
<div>Thanks and Regards,</div>
<div>Niroj Pokhrel </div>