HomeFreeBSD

Implement efiblk_get_pdinfo_by_device_path

Description

Implement efiblk_get_pdinfo_by_device_path

Lookup a block device by it's device path. We use a 'loose' lookup
whereby we scan forward to the first Media Path portion of the device
path, then look at all our handles for one whose first Media Path
matches. This will also work if the device path pointed to has a
following file path (or paths) as that's ignored. It assumes that
there's only one media path node that describes the entire device,
which is true as of the latest UEFI spec (2.7 Errata A) as far as I've
been able to determine.

Sponsored by: Netflix

Details

Provenance
impAuthored on
Parents
rS336654: Implement efi_devpath_length
Branches
Unknown
Tags
Unknown