Hello, Greg. I'm now trying to convert the cdev thing for CUSE and it just ain't feel right. Greg KH wrote:That "normally" is from the days when only a single or fixed number of devices are associated with single module or driver. Yes, it requires all drivers to have global device table and check whether the device is still available at ->open. For most, drivers usually have certain fixed number of devices which can directly be indexed with minor. For CUSE, it gotta be a hash table or a b-tree. I don't really see any point in not adding ->release. Time has changed and everybody is playing with reference counts and ->release methods. Plus, cdev_alloc() interface is half-baked anyway (no free function for cases where cdev_add() fails, drivers call cdev_del() in those cases risking unregistering other driver's map). It's perfectly okay to keep it around for compatibility but there just is no reason to cling to it. Heh... CUSE did that too. Removing it. Thanks. -- tejun --
| Peter Zijlstra | [PATCH 00/23] per device dirty throttling -v8 |
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
git: | |
| Gerrit Renker | [PATCH 03/37] dccp: List management for new feature negotiation |
| Frans Pop | svc: failed to register lockdv1 RPC service (errno 97). |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| David Miller | [GIT]: Networking |
