iPXE
Functions
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)
 
int imgfdt (struct image *image)
 Apply flattened device tree image. More...
 

Detailed Description

Flattened Device Tree management.

Definition in file fdtmgmt.h.

Function Documentation

◆ FILE_LICENCE()

FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL  )

◆ imgfdt()

int imgfdt ( struct image image)

Apply flattened device tree image.

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

Definition at line 41 of file fdtmgmt.c.

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

References image_hide(), and image_tag().

Referenced by fdt_exec().