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

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Tejun Heo <tj@...>
Cc: Andrew Morton <akpm@...>, Linux Kernel Mailing List <linux-kernel@...>
Date: Thursday, August 28, 2008 - 1:38 pm

On Thu, Aug 28, 2008 at 06:56:48PM +0200, Tejun Heo wrote:

Hm, I thought Al covered that when he created the cdev interface, I
would be a bit supprised if this was the case.


But CUSE should be it's own module, right?  And it would "own" the cdev,
so the module and cdev count should be fine and matching.  The userspace
code could go away but the CUSE code should handle that with a different
reference count.  This is the way that hardware drivers handle the
issue.

thanks,

greg k-h
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

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