MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / SaveBufferList

Function SaveBufferList

ShellPkg/Application/Shell/Shell.c:1437–1444  ·  view source on GitHub ↗

Create a new buffer list and stores the old one to OldBufferList @param OldBufferList The temporary list head used to store the nodes in BufferToFreeList. **/

Source from the content-addressed store, hash-verified

1435 @param OldBufferList The temporary list head used to store the nodes in BufferToFreeList.
1436**/
1437VOID
1438SaveBufferList (
1439 OUT LIST_ENTRY *OldBufferList
1440 )
1441{
1442 CopyMem (OldBufferList, &ShellInfoObject.BufferToFreeList.Link, sizeof (LIST_ENTRY));
1443 InitializeListHead (&ShellInfoObject.BufferToFreeList.Link);
1444}
1445
1446/**
1447 Restore previous nodes into BufferToFreeList .

Callers 2

DoShellPromptFunction · 0.85
RunScriptFileHandleFunction · 0.85

Calls 1

CopyMemFunction · 0.50

Tested by

no test coverage detected