linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stamatis Mitrofanis <ewstam@softhome.net>
To: linux-hotplug@vger.kernel.org
Subject: Network protocol for linux-hotplug.
Date: Mon, 08 Oct 2001 00:05:45 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-100250374523386@msgid-missing> (raw)

It had occurred to me that it might be a good idea to make things such 
that unsatisfied hotplug requests are forwarded through the network to 
certain database servers. A client would describe a 
hotplug-subsystem-specific piece of hardware (not necessarily "hardware" 
though -- the design allows for abstraction, but let's stick to actual 
hardware anyway) and a server will return info about how the client can 
find appropriate driver software (like a precompiled kernel module 
packaged together with appropriate driver agent scripts... or the source 
code for a kernel module... maybe a ready-to-install 
RPM/Debian/Slackware package...).

Of course, the idea behind all this is the principal idea behind 
hot-plugging: To have the user do ABSOLUTELY NOTHING to have his/her 
hardware devices working besides plugging them in. Thus, the driver 
pointed to by the server should be automatically downloaded, compiled, 
installed, loaded and initialized right after the user plugs in a device 
(otherwise this won't be much of an improvement).

When a policy agent has finished searching the map files and realizes 
that there's no matching driver it can load, it will log that this is 
the case and then pass all relevant information to the general program 
that downloads and installs a driver. If the program returns success 
(meaning that everything has been set up correctly) the agent will 
rescan the map files. The downloader should accept information from 
stdin since it can't guess what env. vars are useful. The reason it 
shouldn't simply output a list of driver names is because "driver names" 
are subsystem-specific (i.e. a policy agent may not be meant to do 
anything with kernel modules but instead work with something different).

The general program I'm talking about though needs not be just for 
downloading drivers from the Internet. It may serve, for example, as a 
front-end (a wizard for X maybe? :-) ) to guide the user through the 
installation of the drivers (from a manufacturer-provided disk for 
example). Of course, it should only fallback to requesting user 
assistance (or, better, not request it at all).

Now, there may be many formats the drivers may be downloaded in. Each 
format will have different installation/uninstallation procedures 
associated with it. An example of a format is the classical "tarball" 
which needs just unpacking, "configure"ing and "make install"ing. We can 
organize this stuff in mostly the same way we organize the policy agents 
(with "resource agents" handling specific formats which will take 
parameters describing the location of the resource and the action to 
perform).

This automatic-downloading system must be very small, very uniform and 
very simple to implement. Questions that need answers:
- What protocol do we use for communication of the user system with the 
server system? (must be well-known and standard)
- How do we organize scripts and programs to do the job?
- What will be the formats for drivers downloaded from the net?
- <insert your question here>

Ideas?



_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

             reply	other threads:[~2001-10-08  0:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-10-08  0:05 Stamatis Mitrofanis [this message]
2001-10-08  1:50 ` Network protocol for linux-hotplug Keith Owens
2001-10-08  1:57 ` Dmitri
2001-10-08 14:22 ` Randy.Dunlap
2001-10-08 19:01 ` Tim Jansen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-hotplug-100250374523386@msgid-missing \
    --to=ewstam@softhome.net \
    --cc=linux-hotplug@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).