linux-um archives
 help / color / mirror / Atom feed
From: Dan Shearer <dan@shearer.org>
To: Jeff Dike <jdike@addtoit.com>
Cc: Cameron Patrick <cameron@patrick.wattle.id.au>,
	BlaisorBlade <blaisorblade_spam@yahoo.it>,
	user-mode-linux-devel@lists.sourceforge.net, miquels@cistron.nl
Subject: Re: [uml-devel] mconsole telinit design, worry about init standards?
Date: Thu, 12 Feb 2004 15:10:15 +1030	[thread overview]
Message-ID: <20040212044015.GZ4203@erizo.shearer.org> (raw)
In-Reply-To: <200402120349.i1C3nFip009121@ccure.user-mode-linux.org>

On Wed, Feb 11, 2004 at 10:49:15PM -0500, Jeff Dike wrote:
> dan@shearer.org said:
> > Could you tell us what the rules are?
> 
> The rule is - if it can be done in userspace, it is.  And if it can't be done
> in userspace, you implement as little as possible in the kernel, and export
> an interface that lets the rest be done in userspace.  C-A-D is a good example -
> you need to have the basic handler in the kernel, but the actual reaction to
> it is in init, and specified by inittab.
> 
> So, the stuff that I'm willing to stick in the mconsole driver are things like
> diagnosing a sick UML (where you may not be able to start processes - mconsole
> proc, which barely passed muster with Al Viro) and pulling hardware in and
> out.

There is very little overlap between this and what I'm looking for,
which is a way of interacting with an unmodified Linux, initially a way
of getting it to do a clean init-style shutdown without introducing any
specific new tools.

What about the ability to inject ACPI commands to the kernel? So long as
the user has installed whatever standard tools their distro uses to
listen on /proc/acpi (2.4.x) or /sys/power (2.6.x) then there is a
reasonable chance we can run externally imposed shutdown/resume/halt
events. APM would perhaps be simpler but presumably support for APM will
reduce over time.

This would integrate nicely with swsuspend for UML.

-- 
Dan Shearer
dan@shearer.org


-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

  reply	other threads:[~2004-02-12  4:38 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-06  0:37 [uml-devel] mconsole telinit design, worry about init standards? Dan Shearer
2004-02-06  5:42 ` Cameron Patrick
2004-02-07 15:33   ` BlaisorBlade
2004-02-09  0:11     ` Michael Richardson
2004-02-12  1:14 ` Jeff Dike
2004-02-12  1:47   ` Dan Shearer
2004-02-12  3:49     ` Jeff Dike
2004-02-12  4:40       ` Dan Shearer [this message]
2004-02-13 11:03   ` Miquel van Smoorenburg
2004-02-13 11:23     ` Dan Shearer

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=20040212044015.GZ4203@erizo.shearer.org \
    --to=dan@shearer.org \
    --cc=blaisorblade_spam@yahoo.it \
    --cc=cameron@patrick.wattle.id.au \
    --cc=jdike@addtoit.com \
    --cc=miquels@cistron.nl \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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