linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Keith Owens <kaos@ocs.com.au>
To: linux-hotplug@vger.kernel.org
Subject: Re: hotplug TTD
Date: Sat, 03 Feb 2001 23:48:44 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-98124414710067@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-97901650309422@msgid-missing>

On Sat, 03 Feb 2001 15:37:06 -0800, 
Miles Lane <miles@megapathdsl.net> wrote:
>So, are we going to attempt to use the persistent module data for any 
>Hotplug related development?  Might this be helpful for giving some
>more consistent mapping of a device node to a physical device resource
>(e.g., /dev/eth0 -> the 3c575 with a particular set of device 
>characteristics -- memory ranges, IRQ, DMA, etc)>

I would be very wary of doing anything like that.  Persistent data is a
good fit for user controlled settings like volume and TV tuner values,
where the worst case is a wrong volume or the wrong TV channel at start
up.

If you use it for critical data such as IRQ then the worst case is the
module does not load.  It will confuse users when the data becomes
obsolete and the module fails to load.  It is not at all obvious where
the insmod data is coming from.

One option does make sense to me.  Use persistent data and rmmod -e to
extract the persistent data to a file.  Because rmmod -e does not
remove the module (it only extracts the data), hotplug can use this
mechanism as a way to extract data from the module and save it.  Then
the next hotplug load can decide if it wants to use the existing data
or not, erasing the saved persistent data before issuing modprobe.

Alternatively hotplug can try to load the module twice, once leaving
the persistent data alone, the second time it renames the saved data
file.  If one works, issue rmmod -e.  If neither work, reinstate the
persistent data file.


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

      parent reply	other threads:[~2001-02-03 23:48 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-09  4:59 hotplug TTD Morton, Andrew [WOLL:4009-M:EXCH]
2001-01-09  5:47 ` Miles Lane
2001-01-09  6:55 ` Miles Lane
2001-01-09  8:49 ` Adam J. Richter
2001-01-09 17:09 ` David Brownell
2001-01-09 17:38 ` David Brownell
2001-01-10  6:20 ` Grover, Andrew
2001-01-10  6:34 ` Grover, Andrew
2001-01-10 10:58 ` Andrew Morton
2001-01-10 10:58 ` Andrew Morton
2001-01-10 10:59 ` Andrew Morton
2001-01-11 16:10 ` David Brownell
2001-01-11 16:40 ` David Brownell
2001-01-11 17:18 ` David Hinds
2001-01-11 18:04 ` David Brownell
2001-01-12  0:09 ` Grover, Andrew
2001-01-12  0:33 ` Grover, Andrew
2001-01-12  1:13 ` Grover, Andrew
2001-01-12 12:51 ` Andrew Morton
2001-01-12 16:42 ` David Brownell
2001-01-12 17:37 ` David Brownell
2001-01-12 23:45 ` Keith Owens
2001-01-13 18:54 ` David Brownell
2001-01-13 23:25 ` Keith Owens
2001-02-03 23:37 ` Miles Lane
2001-02-03 23:48 ` Keith Owens [this message]

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-98124414710067@msgid-missing \
    --to=kaos@ocs.com.au \
    --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).