Hi,
I am implementing the ioctl function for my own character device driver.
In that I want to get the size of the device.
ioctl takes the last argument as long int.
i have to use the copy_to_user() symbol
the second and third arguments for this symbol is the address of the
device size and the size of the long int.
(i.e)
copy_to_user(,&DEVICE_SIZE,sizeof(long int));
where DEVICE_SIZE is the size of my device.How can i use the first argument?
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive: http://mail.nl.linux.org/kernelnewbies/
FAQ: http://kernelnewbies.org/faq/