Next: , Previous: libefi-protocol, Up: libefi


5.1.2 Device Path Related Functions

These functions are user to manage device paths in different ways. Most of them are not part of the uefi interface, but implemented as convenience functions in the library.

— Function: efi_status_t efi_device_path_add_to_handle (efi_handle_t handle, efi_device_path_t *path)

Add device path specified by path to the device handle HANDLE.

— Function: efi_device_path_t* efi_device_path_get_from_handle (efi_handle_t handle)

Return device path for handle specified by handle, or NULL in case of error.

— Function: efi_device_path_t* efi_device_path_build (efi_boolean_t free_them, ...)

Build a device path from a given list of path nodes. The list is NULL terminated. If free_them is true, release memory for all given nodes.

— Function: efi_device_path_t* efi_device_path_iterate (efi_device_path_t **pathp)

Iterate nodes of the device path. *pathp should be set to point to the path that is to be iterated. NULL will be returned when the end of the path has been reached.