Changeset View
Changeset View
Standalone View
Standalone View
lib/libefivar/uefi-dputil.c
Show First 20 Lines • Show All 128 Lines • ▼ Show 20 Lines | |||||
/** | /** | ||||
Determine whether a given device path is valid. | Determine whether a given device path is valid. | ||||
If DevicePath is NULL, then ASSERT(). | If DevicePath is NULL, then ASSERT(). | ||||
@param DevicePath A pointer to a device path data structure. | @param DevicePath A pointer to a device path data structure. | ||||
@param MaxSize The maximum size of the device path data structure. | @param MaxSize The maximum size of the device path data structure. | ||||
@retval TRUE DevicePath is valid. | @retval TRUE DevicePath is valid. | ||||
@retval FALSE The length of any node node in the DevicePath is less | @retval FALSE The length of any node in the DevicePath is less | ||||
than sizeof (EFI_DEVICE_PATH_PROTOCOL). | than sizeof (EFI_DEVICE_PATH_PROTOCOL). | ||||
@retval FALSE If MaxSize is not zero, the size of the DevicePath | @retval FALSE If MaxSize is not zero, the size of the DevicePath | ||||
exceeds MaxSize. | exceeds MaxSize. | ||||
@retval FALSE If PcdMaximumDevicePathNodeCount is not zero, the node | @retval FALSE If PcdMaximumDevicePathNodeCount is not zero, the node | ||||
count of the DevicePath exceeds PcdMaximumDevicePathNodeCount. | count of the DevicePath exceeds PcdMaximumDevicePathNodeCount. | ||||
**/ | **/ | ||||
BOOLEAN | BOOLEAN | ||||
EFIAPI | EFIAPI | ||||
▲ Show 20 Lines • Show All 491 Lines • Show Last 20 Lines |