Messages in this thread | | | Date | Wed, 14 Nov 2012 01:19:06 +0200 | Subject | Re: [PATCH] LDT - Linux Driver Template | From | Constantine Shulyupin <> |
| |
On Wed, Nov 14, 2012 at 1:02 AM, Greg KH <gregkh@linuxfoundation.org> wrote: > On Wed, Nov 14, 2012 at 12:31:13AM +0200, Constantine Shulyupin wrote: >> >> + * Device Model (class, device) >> > Don't use class code in an example, it is slowly going away from the >> > whole kernel. >> What to use instead class_create and device_create? > > What are you trying to do?
I trying to properly register char device and device region. Single char device could be registered as misc device with just misc_register. How to register properly char devices region? Should to use device_register instead device_create to create dev files? Which other registration functions char device must to call besides alloc_chrdev_region, cdev_add?
| |