8795 loader: add efi_devpath_is_prefix()

Review Request #730 — Created Nov. 10, 2017 and submitted

tsoome
illumos-gate
8795
731
8867a13...
general
https://svnweb.freebsd.org/base?view=revision&revision=r324359
efi_devpath_is_prefix determines if a path matches a passed-in prefix.

Differential Revision: https://reviews.freebsd.org/D12564
Submitted by: Eric McCorkle

https://svnweb.freebsd.org/base?view=revision&revision=325641
updated to return bool and use unsigned len.


  • 0
  • 0
  • 0
  • 1
  • 1
Description From Last Updated
rm
  1. 
      
  2. usr/src/boot/sys/boot/efi/libefi/devpath.c (Diff revision 1)
     
     
     
    Is it possible for these to return NULL?
    1. no, its macro advancing the passed pointer by node length.

    2. Haha, so we'll just dereference into the abyss. Oh well. I guess that's how EFI rolls.

  3. 
      
rm
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...