Re: [patch] depmod: export static device node information to modules.devname

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2010-05-24 at 16:15 +0200, Kay Sievers wrote:
> From: Kay Sievers <kay.sievers@xxxxxxxx>
> Subject: depmod: export static device node information to modules.devname
> 
> To be able to let udev support kernel module on-demand loading, the next
> kernel will export:
>   alias: devname:<name>
> for some well-defined common kernel modules. This will let the kernel call
> modprobe when the device node is accessed, the subsystem/driver will be
> initialized and the open() of the device node will magically succeed.

So this is for devtmpfs type accesses? If there's an attempt to
open /dev/foo and we have an alias for that device, load it?

I'm cool with taking this if this is the way the kernel is going (I've
not really thought about the devtmpfs/devfs/udev argument enough
recently to have a hugely strong opinion on it). I was going to ask the
same thing Scott did then I realized your point, so yea there's no way
to magically know what device a driver is going to export. If this is
landing in 2.6.35 then that is very good to know, thanks.

Jon.


--
To unsubscribe from this list: send the line "unsubscribe linux-modules" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux