summaryrefslogtreecommitdiffstats
path: root/MdePkg/Include/Library
diff options
context:
space:
mode:
authorqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-24 06:54:04 +0000
committerqhuang8 <qhuang8@6f19259b-4bc3-4df7-8a09-765794883524>2007-09-24 06:54:04 +0000
commit98a14db6f24862dedd3d4a525d086f2619e43ebd (patch)
treee4e7e81bd5162ea0cd2015f2fc4629853875a163 /MdePkg/Include/Library
parenta0b4ea2aeca3f0686c0f7662356608ef189c39a7 (diff)
downloadedk2-98a14db6f24862dedd3d4a525d086f2619e43ebd.tar.gz
edk2-98a14db6f24862dedd3d4a525d086f2619e43ebd.tar.bz2
edk2-98a14db6f24862dedd3d4a525d086f2619e43ebd.zip
Update DevicePathLib to reflect the update of UEFI device utility protocol
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@3914 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'MdePkg/Include/Library')
-rw-r--r--MdePkg/Include/Library/DevicePathLib.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/MdePkg/Include/Library/DevicePathLib.h b/MdePkg/Include/Library/DevicePathLib.h
index bf7a73e0f8..b446f67579 100644
--- a/MdePkg/Include/Library/DevicePathLib.h
+++ b/MdePkg/Include/Library/DevicePathLib.h
@@ -1,5 +1,5 @@
/** @file
- Entry point to a DXE Boot Services Driver
+ Device Path services.
Copyright (c) 2006, Intel Corporation
All rights reserved. This program and the accompanying materials
@@ -59,7 +59,8 @@ DuplicateDevicePath (
SecondDevicePath is retained. The newly created device path is returned.
If FirstDevicePath is NULL, then it is ignored, and a duplicate of SecondDevicePath is returned.
If SecondDevicePath is NULL, then it is ignored, and a duplicate of FirstDevicePath is returned.
- If both FirstDevicePath and SecondDevicePath are NULL, then NULL is returned.
+ If both FirstDevicePath and SecondDevicePath are NULL, then a copy of an end-of-device-path is
+ returned.
If there is not enough memory for the newly allocated buffer, then NULL is returned.
The memory for the new device path is allocated from EFI boot services memory. It is the
responsibility of the caller to free the memory allocated.
@@ -83,8 +84,10 @@ AppendDevicePath (
This function creates a new device path by appending a copy of the device node specified by
DevicePathNode to a copy of the device path specified by DevicePath in an allocated buffer.
The end-of-device-path device node is moved after the end of the appended device node.
- If DevicePath is NULL, then NULL is returned.
- If DevicePathNode is NULL, then NULL is returned.
+ If DeviceNode is NULL then a copy of DevicePath is returned.
+ If DevicePathNode is NULL then a copy of DevicePath is returned.
+ If both DevicePathNode and DevicePath are NULL then a copy of an end-of-device-path device node
+ is returned.
If there is not enough memory to allocate space for the new device path, then NULL is returned.
The memory is allocated from EFI boot services memory. It is the responsibility of the caller to
free the memory allocated.