lkml.org 
[lkml]   [2001]   [Apr]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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/

\
 
 \ /
  Last update: 2005-03-22 13:25    [W:0.189 / U:1.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site