All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robbie Harwood <rharwood@redhat.com>
To: Daniel Kiper <dkiper@net-space.pl>
Cc: grub-devel@gnu.org, Raymund Will <rw@suse.com>,
	rw@suse.de, John Jolly <jjolly@suse.com>,
	Javier Martinez Canillas <javierm@redhat.com>
Subject: Re: [PATCH v4 1/1] Add support for grub-emu to kexec Linux menu entries
Date: Wed, 19 Oct 2022 14:06:15 -0400	[thread overview]
Message-ID: <jlgbkq77ko8.fsf@redhat.com> (raw)
In-Reply-To: <20221014111113.ptl44ny7vzrkeder@tomti.i.net-space.pl>

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]

Daniel Kiper <dkiper@net-space.pl> writes:

> On Tue, Oct 04, 2022 at 03:16:48PM -0400, Robbie Harwood wrote:
>
>> +  return rc;
>> +}
>> +
>> +static grub_err_t
>> +grub_linux_unload (void)
>> +{
>> +  grub_dl_unref (my_mod);
>
> I understand that this marks this module as not in use. Right? If yes
> please add a comment before grub_dl_unref() call what exactly happens
> here and why. It took me a while to understand why it is
> needed. Please do the same below for all grub_dl_ref() and
> grub_dl_unref() calls.

I expect it's modeled after the other linux.c - e.g.,
grub-core/loader/i386/linux.c has an almost identical
grub_linux_unload() function.

Be well,
--Robbie

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 861 bytes --]

  reply	other threads:[~2022-10-19 18:06 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-04 19:16 [PATCH v4 0/1] Add support for grub-emu to kexec Linux menu entries Robbie Harwood
2022-10-04 19:16 ` [PATCH v4 1/1] " Robbie Harwood
2022-10-14 11:11   ` Daniel Kiper
2022-10-19 18:06     ` Robbie Harwood [this message]
2022-10-16 19:18   ` Oskari Pirhonen
2022-10-18 19:26     ` Robbie Harwood
2022-10-19  7:02       ` Oskari Pirhonen

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=jlgbkq77ko8.fsf@redhat.com \
    --to=rharwood@redhat.com \
    --cc=dkiper@net-space.pl \
    --cc=grub-devel@gnu.org \
    --cc=javierm@redhat.com \
    --cc=jjolly@suse.com \
    --cc=rw@suse.com \
    --cc=rw@suse.de \
    /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.