lkml.org 
[lkml]   [2010]   [Sep]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 5/5] uio: Statically allocate uio_class and use class .dev_attrs.
On Fri, Sep 17, 2010 at 10:37:26PM +0200, Thomas Gleixner wrote:
> On Tue, 14 Sep 2010, Eric W. Biederman wrote:
> >
> > Instead of adding uio class attributes manually after the uio device has
> > been created and we have sent a uevent to userspace, use the class
> > attribute mechanism. This removes races and makes the code simpler.
> >
> > At the same time don't bother to dynamically allocate a struct class for
> > uio, just declare one statically. Less code is needed and it is easier
> > to set the class parameters.tune the class
> >
> > Signed-off-by: Eric W. Biederman <ebiederm@aristanetworks.com>
>
> Reviewed-by: Thomas Gleixner <tglx@linutronix.de>

Signed-off-by: Hans J. Koch <hjk@linutronix.de>



\
 
 \ /
  Last update: 2010-09-17 22:59    [W:1.240 / U:0.388 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site