]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
ofdisk: add a comment about vscsi method
authorPaulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
Tue, 10 Nov 2015 23:20:20 +0000 (21:20 -0200)
committerPaulo Flabiano Smorigo <pfsmorigo@linux.vnet.ibm.com>
Tue, 10 Nov 2015 23:20:20 +0000 (21:20 -0200)
grub-core/disk/ieee1275/ofdisk.c

index 297f058ee286018da7328d39c5b2123c023d6174..0efe59a66572b8e7756b7ac0980a6e0787f6e2b4 100644 (file)
@@ -227,7 +227,10 @@ dev_iterate (const struct grub_ieee1275_devalias *alias)
 
       if (grub_ieee1275_open (alias->path, &ihandle))
        return;
-    
+
+      /* This method doesn't need memory allocation for the table. Open
+         firmware takes care of all memory management and the result table
+         stays in memory and is never freed. */
       INIT_IEEE1275_COMMON (&args.common, "call-method", 2, 3);
       args.method = (grub_ieee1275_cell_t) "vscsi-report-luns";
       args.ihandle = ihandle;