Hi All,
?
I have a doubt about mmap system call.
?
We have developed a character driver for Camera device. We used mmap system call in the application code to map the kernel image buffer pointer to user process with out implementing any mmap call back function in the driver code. No compilation and/or run time error. But, we are not getting the image in the proper way. When we try to open the saved file in paintbrush it shows only junk (i.e. some parallel lines.) Please find the attached zip file. Camera is working fine. We have taken pictures from Windows Machine with good clarity.
?
My doubt is, is it compulsory to implement the call back function in the driver code? OR Is it taken care by File system level functions?
?
Any help greatly appreciated.
?
Thanks and regards,
Srinivas G
?
?