lkml.org 
[lkml]   [2009]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/2] chrdev: implement __[un]register_chrdev()
Greg KH wrote:
> On Wed, Aug 05, 2009 at 03:35:42PM +0900, Tejun Heo wrote:
>> [un]register_chrdev() assume minor range 0-255. This patch adds __
>> prefixed versions which take @minorbase and @count explicitly.
>
> What's the difference between this and the existing
> register_chrdev_region() function? Why doesn't that work for you?
>
> What am I missing here?

The function names in char_dev.c are quite confusing.
register_chrdev_region() only registers chrdev region.
register_chrdev() registers chrdev region and creates a cdev for the
region. :-)

--
tejun


\
 
 \ /
  Last update: 2009-08-05 18:31    [W:0.185 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site