Messages in this thread | | | Date | Fri, 13 Apr 2001 19:36:57 -0600 | From | "Jeff V. Merkey" <> | Subject | Re: EXPORT_SYMBOL for chrdev_open 2.4.3 |
| |
On Fri, Apr 13, 2001 at 09:29:43PM -0400, Alexander Viro wrote: > > On Fri, 13 Apr 2001, Jeff V. Merkey wrote: > > > How are folks supposed to open disk and tape devices from kernel modules > > without these? Not everything should be done in user space Al. If you > > Normally - filp_open(). If all you want is ioctl on block device - > blkdev_get() + ioctl_by_bdev() + blkdev_put(). If you want it by > device _number_ - use bdget(). > > > remove blkdev_open I will not be able to properly increment the use > > count an a disk device I may be reading or writing to. >
> Yes, you will. And I would _really_ advice you to do that by > name instead of device number - that way you will avoid a lot of pain > couple of years down the road.
This is **VERY** good to know, and also shows that you in fact have looked through my code.
:-)
Jeff
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |