# lv_uefi_context.h (/api/drivers/uefi/lv_uefi_context_h)



<ApiSummary functions="3" />

Functions [#functions]

<ApiMember kind="function" name="lv_uefi_init" file="drivers/uefi/lv_uefi_context.h" line="41" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/uefi/lv_uefi_context.h#L41">
  lv_uefi_init [#lv_uefi_init]

  Initialize the UEFI cache variables.

  ```c title=" " lineNumbers=1
  void lv_uefi_init(EFI_HANDLE image_handle, EFI_SYSTEM_TABLE *system_table)
  ```

  <span className="sr-only">
    Parameters
  </span>

  | Name           | Type                 | Description                     |
  | -------------- | -------------------- | ------------------------------- |
  | `image_handle` | `EFI_HANDLE`         | The handle of the current image |
  | `system_table` | `EFI_SYSTEM_TABLE *` | Pointer to the system table     |

  <Callout type="info">
    **Remark:** This has to be called before <ApiLink name="lv_init" display="lv_init()" />.
  </Callout>
</ApiMember>

<ApiMember kind="function" name="lv_uefi_platform_init" file="drivers/uefi/lv_uefi_context.h" line="51" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/uefi/lv_uefi_context.h#L51">
  lv_uefi_platform_init [#lv_uefi_platform_init]

  Initialize the LVGL UEFI backend.

  ```c title=" " lineNumbers=1
  void lv_uefi_platform_init(void)
  ```

  <Callout type="info">
    **Remark:** This is a private API which is used for LVGL UEFI backend implementation. LVGL users shouldn't use that because the LVGL has already used it in lv\_init.
  </Callout>
</ApiMember>

<ApiMember kind="function" name="lv_uefi_platform_deinit" file="drivers/uefi/lv_uefi_context.h" line="59" url="https://github.com/lvgl/lvgl/tree/a7b95c5b0839ce901c09c205610bc2c77cc3345d/src/drivers/uefi/lv_uefi_context.h#L59">
  lv_uefi_platform_deinit [#lv_uefi_platform_deinit]

  Cleanup the LVGL UEFI backend.

  ```c title=" " lineNumbers=1
  void lv_uefi_platform_deinit(void)
  ```

  <Callout type="info">
    **Remark:** This is a private API which is used for LVGL UEFI backend implementation. LVGL users shouldn't use that because the LVGL has already used it in lv\_deinit.
  </Callout>
</ApiMember>

Dependencies [#dependencies]

<FileIncludes includes="[&#x22;lv_conf_internal.h&#x22;, &#x22;lv_uefi.h&#x22;]" includedBy="[&#x22;lv_drivers.h&#x22;]" transitiveIncludes="[&#x22;lv_conf_kconfig.h&#x22;]" />
