LIST_ENTRY *
EFIAPI
InsertTailList(
IN OUT LIST_ENTRY *ListHead,
IN OUT LIST_ENTRY *Entry
){//// ASSERT List not too long and Entry is not one of the nodes of List//ASSERT_VERIFY_NODE_IN_VALID_LIST(ListHead, Entry, FALSE);
Entry->ForwardLink = ListHead;
Entry->BackLink = ListHead->BackLink;
Entry->BackLink->ForwardLink = Entry;
ListHead->BackLink = Entry;return ListHead;}
CoreInstallProtocolInterfaceNotify:...//// Add this handle to the list global list of all handles// in the system//InsertTailList(&gHandleList,&Handle->AllHandles);//// Add this protocol interface to the head of the supported// protocol list for this handle//InsertHeadList(&Handle->Protocols,&Prot->Link);//// Add this protocol interface to the tail of the// protocol entry//InsertTailList(&ProtEntry->Protocols,&Prot->ByProtocol);...