]> git.proxmox.com Git - mirror_edk2.git/commitdiff
Modify MDE source code according to MDE library update.
authorxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 11 Oct 2008 12:32:19 +0000 (12:32 +0000)
committerxli24 <xli24@6f19259b-4bc3-4df7-8a09-765794883524>
Sat, 11 Oct 2008 12:32:19 +0000 (12:32 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6103 6f19259b-4bc3-4df7-8a09-765794883524

MdePkg/Include/Library/BaseLib.h
MdePkg/Library/BaseLib/LinkedList.c

index 6683d4c74127d5de6acf9be4b1d0bf9f41092186..24f93c9bb140226cd449a520bc53ccfeb13c6796 100644 (file)
@@ -1370,7 +1370,7 @@ BcdToDecimal8 (
 LIST_ENTRY *\r
 EFIAPI\r
 InitializeListHead (\r
-  IN      LIST_ENTRY                *ListHead\r
+  IN OUT  LIST_ENTRY                *ListHead\r
   );\r
 \r
 \r
@@ -1398,8 +1398,8 @@ InitializeListHead (
 LIST_ENTRY *\r
 EFIAPI\r
 InsertHeadList (\r
-  IN      LIST_ENTRY                *ListHead,\r
-  IN      LIST_ENTRY                *Entry\r
+  IN OUT  LIST_ENTRY                *ListHead,\r
+  IN OUT  LIST_ENTRY                *Entry\r
   );\r
 \r
 \r
@@ -1427,8 +1427,8 @@ InsertHeadList (
 LIST_ENTRY *\r
 EFIAPI\r
 InsertTailList (\r
-  IN      LIST_ENTRY                *ListHead,\r
-  IN      LIST_ENTRY                *Entry\r
+  IN OUT  LIST_ENTRY                *ListHead,\r
+  IN OUT  LIST_ENTRY                *Entry\r
   );\r
 \r
 \r
@@ -1513,11 +1513,13 @@ IsListEmpty (
 \r
 \r
 /**\r
-  Determines if a node in a doubly linked list is null.\r
+  Determines if a node in a doubly linked list is the head node of a the same\r
+  doubly linked list.  This function is typically used to terminate a loop that\r
+  traverses all the nodes in a doubly linked list starting with the head node.\r
 \r
-  Returns FALSE if Node is one of the nodes in the doubly linked list specified\r
-  by List. Otherwise, TRUE is returned. List must have been initialized with\r
-  InitializeListHead().\r
+  Returns TRUE if Node is equal to List.  Returns FALSE if Node is one of the\r
+  nodes in the doubly linked list specified by List.  List must have been\r
+  initialized with InitializeListHead().\r
 \r
   If List is NULL, then ASSERT().\r
   If Node is NULL, then ASSERT().\r
@@ -1600,8 +1602,8 @@ IsNodeAtEnd (
 LIST_ENTRY *\r
 EFIAPI\r
 SwapListEntries (\r
-  IN      LIST_ENTRY                *FirstEntry,\r
-  IN      LIST_ENTRY                *SecondEntry\r
+  IN OUT  LIST_ENTRY                *FirstEntry,\r
+  IN OUT  LIST_ENTRY                *SecondEntry\r
   );\r
 \r
 \r
@@ -3081,7 +3083,7 @@ InitializeSpinLock (
 SPIN_LOCK *\r
 EFIAPI\r
 AcquireSpinLock (\r
-  IN      SPIN_LOCK                 *SpinLock\r
+  IN OUT  SPIN_LOCK                 *SpinLock\r
   );\r
 \r
 \r
@@ -3105,7 +3107,7 @@ AcquireSpinLock (
 BOOLEAN\r
 EFIAPI\r
 AcquireSpinLockOrFail (\r
-  IN      SPIN_LOCK                 *SpinLock\r
+  IN OUT  SPIN_LOCK                 *SpinLock\r
   );\r
 \r
 \r
@@ -3126,7 +3128,7 @@ AcquireSpinLockOrFail (
 SPIN_LOCK *\r
 EFIAPI\r
 ReleaseSpinLock (\r
-  IN      SPIN_LOCK                 *SpinLock\r
+  IN OUT  SPIN_LOCK                 *SpinLock\r
   );\r
 \r
 \r
index d20c146c11bf891bb761dfd9ab11e8143937a86d..6f0d5c9534cb1855b8b98ec87ff662338477c3dc 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Linked List Library Functions.\r
 \r
-  Copyright (c) 2006, Intel Corporation<BR>\r
+  Copyright (c) 2006 - 2008, Intel Corporation<BR>\r
   All rights reserved. This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -289,11 +289,13 @@ IsListEmpty (
 }\r
 \r
 /**\r
-  Determines if a node in a doubly linked list is null.\r
+  Determines if a node in a doubly linked list is the head node of a the same\r
+  doubly linked list.  This function is typically used to terminate a loop that\r
+  traverses all the nodes in a doubly linked list starting with the head node.\r
 \r
-  Returns FALSE if Node is one of the nodes in the doubly linked list specified\r
-  by List. Otherwise, TRUE is returned. List must have been initialized with\r
-  InitializeListHead().\r
+  Returns TRUE if Node is equal to List.  Returns FALSE if Node is one of the\r
+  nodes in the doubly linked list specified by List.  List must have been\r
+  initialized with InitializeListHead().\r
 \r
   If List is NULL, then ASSERT().\r
   If Node is NULL, then ASSERT().\r