Re: proc_mknod() replacement

From: KC
Date: Mon May 09 2005 - 21:06:56 EST


On 5/10/05, Valdis.Kletnieks@xxxxxx <Valdis.Kletnieks@xxxxxx> wrote:
> On Tue, 10 May 2005 01:06:08 +0800, KC said:
>
> > Why I want to use proc_mknod() in driver ? I write a small package, ovi-dev,
> > which can be downloaded from
> > http://www.sourceforge.net/projects/ovi
> > The ovi-dev will scan the PCI bus and if it found, eg, 3 PCI devices, it
> > will create 3 device entries (nodes) automatically at module load time.
> > So number of device entries (nodes) will match number of devices
> > of the system ... well, UNIX/Linux doesn't work that way ... there are a lot
> > of device entries ... but no corresponding hardware existed.
>
> Congrats. You've re-invented udev.

No, it's not ... dynamic entry is not my purpose, but a good
feature which I want to have in my package and I did it using
proc_mknod() for 2.4.x ...
Anyway, I'll check udev to see if it's enough for me.

Thanks
KC

>
>
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/