hi all,
we are beginners in kernel programming. we are writing a device driver. we tried a very simple ioctl to pass an integer pointer from user to kernel space. the problem is that the ioctl_param argument which is supposed to hold the address of the memory in user space(from wer data is to be copied to kernel space,i.e driver)is not getting passed correctly.
wen we print the address in user space & wen we print the address getting passed to kernel space they r different. the correct user space location is not getting accessed at all.
we have used the get_user to transfer the required data into kernel space.
we followed the linux kernel modular programming guide written by peter salzman.
anybody with any clue y our ioctl is not working please help us as soon as possible.
thanking you, sapna