TianoCore EDK2 master
Loading...
Searching...
No Matches
DevicePathUtilitiesDxeSmm.c
Go to the documentation of this file.
1
17#include "UefiDevicePathLib.h"
18
33EFIAPI
35 IN EFI_HANDLE Handle
36 )
37{
38 EFI_DEVICE_PATH_PROTOCOL *DevicePath;
39 EFI_STATUS Status;
40
41 Status = gBS->HandleProtocol (
42 Handle,
43 &gEfiDevicePathProtocolGuid,
44 (VOID *)&DevicePath
45 );
46 if (EFI_ERROR (Status)) {
47 DevicePath = NULL;
48 }
49
50 return DevicePath;
51}
EFI_DEVICE_PATH_PROTOCOL *EFIAPI DevicePathFromHandle(IN EFI_HANDLE Handle)
#define NULL
Definition: Base.h:319
#define IN
Definition: Base.h:279
RETURN_STATUS EFI_STATUS
Definition: UefiBaseType.h:29
VOID * EFI_HANDLE
Definition: UefiBaseType.h:33
EFI_BOOT_SERVICES * gBS