On Fri, 2005-09-09 at 12:42 +0530, Vijay Ram Chitrapu (RCVIJAYD) wrote: > static struct file_operations this_fops = { > open:this_open, > ioctl:this_ioctl, > release:this_release, > }; > > int this_open (struct inode *ino, struct file *fp) > { > printk("<1> in open"); > return 0; > } > > int this_ioctl(struct inode * ino, struct file *fp, unsigned int cmd, > unsigned long len) > { > printk("<1> in ioctl function); > return 1; > } paste your user program and driver header file (which contains the ioctl magic number). -- Ashok S -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/