iPXE
fdtmgmt.h File Reference

Flattened Device Tree management. More...

#include <ipxe/image.h>

Go to the source code of this file.

Functions

 FILE_LICENCE (GPL2_OR_LATER_OR_UBDL)
 FILE_SECBOOT (PERMITTED)
int imgfdt (struct image *image)
 Apply flattened device tree image.

Detailed Description

Flattened Device Tree management.

Definition in file fdtmgmt.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL )

◆ FILE_SECBOOT()

FILE_SECBOOT ( PERMITTED )

◆ imgfdt()

int imgfdt ( struct image * image)
extern

Apply flattened device tree image.

Parameters
imageFDT image, or NULL to clear FDT
Return values
rcReturn status code

Definition at line 42 of file fdtmgmt.c.

42 {
43
44 /* Record (or clear) FDT image */
45 image_tag ( image, &fdt_image );
46
47 /* Avoid including image in constructed initrd */
48 if ( image )
49 image_hide ( image );
50
51 return 0;
52}
static struct image * image_tag(struct image *image, struct image_tag *tag)
Tag image.
Definition image.h:297
static void image_hide(struct image *image)
Mark image as hidden.
Definition image.h:286
An executable image.
Definition image.h:24

References image_hide(), and image_tag().

Referenced by fdt_exec().