devfs
[Top] [All Lists]

devfs and depmod

To: kaos@xxxxxxxxxx, rgooch@xxxxxxxxxxxxx
Subject: devfs and depmod
From: Jim Radford <radford@xxxxxxxxxxxxxxxxxxxx>
Date: Sun, 2 Jul 2000 13:02:30 -0700 (PDT)
Cc: devfs@xxxxxxxxxxx
Sender: owner-devfs@xxxxxxxxxxx
Hi Richard and Keith,

I've been thinking about the relationship between devfs and modutils.
I really don't like how spread out all the information is becoming.

  devfs.conf:

    LOOKUP     tts    MODLOAD

  modules.conf:

    alias /dev/tts serial

  serial.c:

    serial_driver.name = "tts/%d";

What I think would clean things up _significantly_ is if each module
could provide it's own dependencies, so that a 

  depmod serial.o

and (something like this)

  serial.c:

    serial_driver.name = "tts/%d";
    EXPORT_DEV("tts");

  defvs.conf:

    LOOKUP     .*    MODLOAD

would create everything needed.  All the information would be
derived from _one_ source.

Thoughts?
-Jim

<Prev in Thread] Current Thread [Next in Thread>