Re: [PATCH] LDT - Linux Driver Template

From: Constantine Shulyupin
Date: Tue Nov 13 2012 - 18:19:12 EST


On Wed, Nov 14, 2012 at 1:02 AM, Greg KH <gregkh@xxxxxxxxxxxxxxxxxxx> 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?
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/