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]
From: Tejun Heo
Date: Thursday, August 28, 2008 - 10:55 am

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 conve ..., Tejun Heo, (Thu Aug 28, 10:55 am)