Changeset View
Changeset View
Standalone View
Standalone View
head/sys/boot/efi/libefi/efipart.c
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | |||||
static int | static int | ||||
efipart_init(void) | efipart_init(void) | ||||
{ | { | ||||
EFI_BLOCK_IO *blkio; | EFI_BLOCK_IO *blkio; | ||||
EFI_DEVICE_PATH *devpath, *devpathcpy, *tmpdevpath, *node; | EFI_DEVICE_PATH *devpath, *devpathcpy, *tmpdevpath, *node; | ||||
EFI_HANDLE *hin, *hout, *aliases, handle; | EFI_HANDLE *hin, *hout, *aliases, handle; | ||||
EFI_STATUS status; | EFI_STATUS status; | ||||
UINTN sz; | UINTN sz; | ||||
CHAR16 *path; | |||||
u_int n, nin, nout; | u_int n, nin, nout; | ||||
int err; | int err; | ||||
size_t devpathlen; | size_t devpathlen; | ||||
sz = 0; | sz = 0; | ||||
hin = NULL; | hin = NULL; | ||||
status = BS->LocateHandle(ByProtocol, &blkio_guid, 0, &sz, 0); | status = BS->LocateHandle(ByProtocol, &blkio_guid, 0, &sz, 0); | ||||
if (status == EFI_BUFFER_TOO_SMALL) { | if (status == EFI_BUFFER_TOO_SMALL) { | ||||
▲ Show 20 Lines • Show All 235 Lines • Show Last 20 Lines |