How to call ioctl function
I have a doubt in ioctl function..The function is
int device_ioctl(struct inode *inode,struct file *file,unsigned int ioctl_num,unsigned long ioctl_param)......
when its called in our program and what purpose it is used and also give me a detail about ioctl function with an simple example..
Thanks in advance..
ioctl user app didn't work for me
I tried your sample user space application but it didn't work for me.
i compiled successfully the userapp and ran in tha way as:
but after hitting enter nothing happened.
I want to see the practical example of ioctl like this e.g. but it's not working can you tell waht is problem?
I am using ubuntu9.10 ang gcc4.4.1