All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: Move BSD and multiboot boot helper out of the kernel to their respective modules
Date: Sat, 7 Feb 2009 23:20:52 +0100	[thread overview]
Message-ID: <20090207222052.GN6343@thorin> (raw)
In-Reply-To: <4989853A.2020700@gmail.com>

On Wed, Feb 04, 2009 at 01:08:26PM +0100, phcoder wrote:
> Hello. On the IRC discussion it was said that removing call to 
> grub_dl_unload_all_modules isn't a good thing. I would like to discuss 
> this on the list
> 1) Call to this functon is present only on i386-pc
> 2) I would suggest an interface for preboot hooks if modules needs to do 
> something before booting
> 3) If it's really needed to unload modules one could add a function 
> grub_dl_unload_all_modules_except (grub_dl_t *mod)
> Then the module before booting kernel would call this function and after 
> it no external calls are allowed.
> 4) Not being able to add a new kernel type by module alone is IMHO a 
> severe limitation to module infrastructure
> Thanks

Or perhaps we could avoid grub_dl_unload_all_modules altogether.  For example,
gfxterm might think that graphical mode needs to be disabled when it's
unloaded, but the OS loader knows better.  You could want to tell your OS
about the framebuffer state so it can be used by it without glitches.

The same would apply, for example, to stopping the floppy drive.  Instead
of waiting for the drive to tell us it has stopped, we could tell the OS
it's still spinning if our loader knows how to do that (and the OS knows
how to receive this information).

-- 
Robert Millan

  The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and
  how) you may access your data; but nobody's threatening your freedom: we
  still allow you to remove your data and not access it at all."



  reply	other threads:[~2009-02-07 22:21 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-29 15:57 Move BSD and multiboot boot helper out of the kernel to their respective modules phcoder
2009-02-04 12:08 ` phcoder
2009-02-07 22:20   ` Robert Millan [this message]
2009-02-07 23:12     ` phcoder
2009-02-07 22:14 ` Robert Millan
2009-02-07 23:05   ` phcoder

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=20090207222052.GN6343@thorin \
    --to=rmh@aybabtu.com \
    --cc=grub-devel@gnu.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.