lkml.org 
[lkml]   [2008]   [Aug]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH RESEND] char_dev: add cdev->release() and convert cdev_alloc() to use it
On Thu, Aug 28, 2008 at 06:36:56PM +0200, Tejun Heo wrote:
> Add cdev->release() so that cdev can be considered in more involved
> object lifetime management. cdev_alloc() used a separate ktype for
> auto-free release(). This patch converts it to use cdev->release() so
> that there's no need for separate ktype and cdev_init() can be used
> for auto-free variant too.
>
> Signed-off-by: Tejun Heo <tj@kernel.org>

Ick, I really don't want struct cdev to be used for lifecycle
management, as it is only for major:minor stuff. Why do you want to
make this change?

thanks,

greg k-h


\
 
 \ /
  Last update: 2008-08-28 18:53    [W:0.054 / U:1.088 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site