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: Greg KH
Date: Thursday, August 28, 2008 - 10:48 am

On Thu, Aug 28, 2008 at 07:44:55PM +0200, Tejun Heo wrote:

That's fine, it's just like a USB device that uses a cdev, right?  Or a
PCI device, or any other type of device that can come and go independant
of the cdev or module lifespan.

So, you tie the cdev lifespan to the module lifespan with the
MODULE_OWNER in the file operations.  As the cuse.ko module will own the
cdev, it can handle that reference, and it can not be removed as long as
userspace has the cdev open, right?

It really isn't any different from any other type of removable device
(i.e. any type of device...)

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 conve ..., Greg KH, (Thu Aug 28, 10:48 am)