** On Apr 13, Horst von Brand scribbled:
> Ricky Beam <jfbeam@bluetopia.net> said:
>=20
> [...]
>=20
> > If you wanted to be a purist, modules need a new function for reporting
> > devfs information... init_module, delete_module(?), devfs_module? That
> > certainly fixes one problem (and kills the need for devfsd.)
>=20
> No. How do you load a module for /dev/foo117, when /dev/foo117 doesn't
> currently exist? The kernel shouldn't have to know about each and every
That could be easily resolved by depmod. The modules can (in that situation
would _have_ to) use the MODULE_SUPPORTED_DEVICE doc string. That would
state what device(s) they are bound to. Depmod extracts that info and stores
it in /lib/modules/<kver>/device.map. Modinfo then just uses that map to
load appropriate device. Modules without the __module_device in the .modinfo
section wouldn't fit into this scheme, but the symbol can be made mandatory.
> device that might some day show up as a driver module (even third-party,
> binary-only compiled after the kernel proper perhaps). This mandates some
> userland involvement, with some configuration file that tells the daemon
None, provided the above is implemented and enforced. OTOH, loading module
involves userland anyway... - modprobe _is_ userland after all.
marek
--/WwmFnJnmDyWGHa4
Content-Type: application/pgp-signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (GNU/Linux)
Comment: For info see http://www.gnupg.org
iEYEARECAAYFAjj1xHgACgkQq3909GIf5up8SQCeK/qAedlPnIzesa+hniNbCsMM
dLcAn27HWl+Xbe21JxTNDn8WxpxxYNgA
=IUHb
-----END PGP SIGNATURE-----
--/WwmFnJnmDyWGHa4--
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/