mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: Modules and DevFS
@ 2001-02-01  8:44 William Knop
  2001-01-31 22:56 ` Michael B. Trausch
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: William Knop @ 2001-02-01  8:44 UTC (permalink / raw)
  To: linux-kernel

>One thing that I've noticed with devfs is that all the old-style names are
>symlinks.

Hmm... I have no symlinks until the module loads. Therefore X sees no 
/dev/input/mouse, doesn't ask the kernel for it, the kernel doesn't load the 
module, and DevFS doesn't add the /dev entry. There's got to be an easy way 
around this. Perhaps it has already been implimented, but I haven't been 
able to get anything to work well (manual loading for me).

>Everything is modularized here, including ppp and such, and modprobe is
>loading everything quite nicely for me.  I don't like to run one big
>kernel, it wastes too much memory, and so I use pretty much *everything*
>that I can in modules (IDE I can't, because I boot from IDE, but I leave
>SCSI in a module, becuase I use ide-scsi to burn my CDs and it's not
>*reqired*).

Really? How can DevFS know which devices to add to /dev/scsi/... without 
loading the module and scanning the bus first? Or do you manually insert the 
scsi module when you need it?

Do you think if I add symlinks manually perhaps it will force DevFS to look 
for a module to add the needed entry? Or maybe module aliases? I think I am 
going to spend some time checking out the DevFS code and experimenting with 
module entries.

-Will
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

^ permalink raw reply	[flat|nested] 13+ messages in thread
* Modules and DevFS
@ 2001-01-31 21:34 William Knop
  2001-01-30 22:20 ` Michael B. Trausch
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: William Knop @ 2001-01-31 21:34 UTC (permalink / raw)
  To: linux-kernel

I decided recently to go bleeding-edge on one of my Linux boxes and 
discovered I had a problem with module loading while using DevFS.

Correct me if I'm wrong, but DevFS only makes /dev entries when a device is 
present, and the device is not present until the module is loaded. So if I 
want to access /dev/hda and the IDE module has not been loaded yet, I will 
get a message telling me the device doesn't exist or some such instead of 
autoloading the module and being happy. Same goes for hotswap devices, 
right? I boot directly into X and have to crash out (otherwise it 
continually tries to unsuccessfully load X) so I could enable my USB mouse 
and various other devices.

I realize modularizing the entire IDE subsystem is not really good anyway, 
because every time it reloads it will rescan the bus... But what about USB? 
Suppose I don't have any IDE or USB devices, but want support so I can use 
them later. Especially in the case of USB, plugability is a must for desktop 
"home" systems.

I also have enabled the "module autoload" feature of DevFS, which 
conveniently autoloads my 3c59x driver. :)

Does the kernel only autoload modules through userspace request, or can a 
hardware request cause loading? For instance, inserting a USB peripheral 
would cause the USB chipset to signal the OS. So therefore the OS can update 
its device tables and unload the module again when it becomes inactive. This 
goes for all hot-swap devices, IMHO.

I read all the FAQs and stuff and found nothing that really addresses this, 
so here I ask if anyone has any idea as to a solution. No doubt I screwed 
something up somewhere along the line... If my kernel or XF86 config files 
are needed, I can pull 'em up and post 'em. Also, please CC responses to me 
because I'm not currently subscribed.

Thanks a bunch,
Will


Box info:
  Linux 2.4.1
  Abit M/B
  P3 550
  256MB RAM
  AGP Devices:
    Nvidia TNT2 AGP display card
  PCI Devices:
    S3Virge/VX display card
    Adaptec 3940UW SCSI card
    3Com "Boomerang" ethernet card
  ISA Devices:
    SB AWE 64 Gold ISA sound card
  IDE Drives:
    2 CDROM drives
  SCSI Drives:
    4.5 GB UW drive
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2001-02-05 10:37 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-01  8:44 Modules and DevFS William Knop
2001-01-31 22:56 ` Michael B. Trausch
2001-02-02 10:35   ` Helge Hafting
2001-02-02 20:00     ` Michael B. Trausch
2001-02-05 10:36       ` Helge Hafting
2001-02-02 20:33     ` Georg Nikodym
2001-02-01 10:23 ` Peter Samuelson
2001-02-01 15:22 ` John Jasen
2001-02-01 16:13 ` Georg Nikodym
  -- strict thread matches above, loose matches on Subject: below --
2001-01-31 21:34 William Knop
2001-01-30 22:20 ` Michael B. Trausch
2001-01-31 22:05 ` Brian May
2001-02-01 10:31 ` Helge Hafting

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®