lkml.org 
[lkml]   [1999]   [Oct]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRE: USB device allocation
Date
I don't think we want to trap open()... Just a guess, but I'm sure that's
what you were hinting at.

-Shawn

-----Original Message-----
From: Alex Nicolaou [mailto:anicolao@cgl.uwaterloo.ca]
linux-usb@suse.com
Subject: Re: USB device allocation


Khimenko Victor wrote:

> P.S. It's the same as kerneld/kmod: it's not really needed -- you can load
> module by hand when needed. But it's convenient to have them autoloaded
when
> needed. The same with devfs: driver is loaded ONLY when I try to use
device.
> It's CAN NOT be done without virtual filesystem.

This is false. A skeletal device driver could be written that traps
open() and inserts the correct kernel module for the device when open is
called, passing the open args to the new driver. As long as there's some
way to tell what the right module to load is based on the filename
passed to open(), this approach should work find and does not require a
virtual filesystem.

Now, as to which way is more elegant ...

alex

-
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/

\
 
 \ /
  Last update: 2005-03-22 13:54    [W:0.021 / U:0.172 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site