grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v4 1/1] Add support for grub-emu to kexec Linux menu entries


From: Robbie Harwood
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

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: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]