Daniel Kiper <dki...@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

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to