Przeglądaj źródła

[nvo] Expose non-volatile options block name

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 11 lat temu
rodzic
commit
08a6ae86a2
2 zmienionych plików z 5 dodań i 1 usunięć
  1. 2
    1
      src/core/nvo.c
  2. 3
    0
      src/include/ipxe/nvo.h

+ 2
- 1
src/core/nvo.c Wyświetl plik

@@ -296,7 +296,8 @@ int register_nvo ( struct nvo_block *nvo, struct settings *parent ) {
296 296
 		goto err_load;
297 297
 
298 298
 	/* Register settings */
299
-	if ( ( rc = register_settings ( &nvo->settings, parent, "nvo" ) ) != 0 )
299
+	if ( ( rc = register_settings ( &nvo->settings, parent,
300
+					NVO_SETTINGS_NAME ) ) != 0 )
300 301
 		goto err_register;
301 302
 
302 303
 	DBGC ( nvo, "NVO %p registered\n", nvo );

+ 3
- 0
src/include/ipxe/nvo.h Wyświetl plik

@@ -42,6 +42,9 @@ struct nvo_block {
42 42
 	struct dhcp_options dhcpopts;
43 43
 };
44 44
 
45
+/** Name of non-volatile options settings block */
46
+#define NVO_SETTINGS_NAME "nvo"
47
+
45 48
 extern void nvo_init ( struct nvo_block *nvo, struct nvs_device *nvs,
46 49
 		       size_t address, size_t len,
47 50
 		       int ( * resize ) ( struct nvo_block *nvo, size_t len ),

Ładowanie…
Anuluj
Zapisz