Hi Victor, ...snip... > but the new way is with alloc_chrdev_region and > > struct cdev *my_cdev = cdev_alloc( ); > my_cdev->ops = &my_fops; > > but i can not see any good and easy example on the internet I have a character driver which reflects the gpiolib API into kernel space over here: http://svn.hylands.org/linux/gpio/ The module directory contains the kernel driver. The lib directory contains the user-library which translates the gpiolib API into ioctl calls to the driver, and the app program is a simple program which uses the library. You can view the source vie websvn as well: <http://websvn.hylands.org/filedetails.php?repname=Projects&path=/linux/gpio/module/user-gpio-drv.c&rev=0&sc=0> -- Dave Hylands Shuswap, BC, Canada http://www.DaveHylands.com/ -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ