Re: [PATCH RESEND] char_dev: add cdev->release() and convert cdev_alloc() to use it

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Greg KH <greg@...>
Cc: Andrew Morton <akpm@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Thursday, August 28, 2008 - 1:55 pm

Greg KH wrote:

Ah.. right, but taking cdev refcount out of the picture requires adding
'severing' operation on cdev f_ops, which certainly is doable but isn't
it just cleaner to make cdev follow the usual lifetime management rules?
An object which is referenced counted requires ->release if it's gonna
be used in any non-simplistic way.

Thanks.

--
tejun
--

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH RESEND] char_dev: add cdev->release() and conv..., Tejun Heo, (Thu Aug 28, 1:55 pm)