搜尋此網誌

2011年5月30日 星期一

EFI Shell commands -- UNLOAD(卸除驅動程式)

Unloads a EFI driver.

UNLOAD [-n] [-v] Handle

    -n       - Unload driver without prompting
    -v       - Display verbose information
    Handle   - Handle of driver to unload in hexadecimal format

Note:
    1. The '-n' option can be used to skip all prompts during unloading.
    2. If the '-v' option is specified, verbose image information will be
       displayed before the image is unloaded.
    3. Only drivers that support unloading can be successfully unloaded.
    4. Use the 'LOAD' command to load a driver.

Examples:
  * To find the handle for the EFI driver image to unload:
    Shell> dh -b
    Handle dump
      1: Image(DXE Core)
      2: FwVol FwFileSys FwVolBlk DevPath(MemMap(11:1760000-189FFC8))
         ...
     27: Image(Reset)
     28: Image(WinNtBlockIo) DriverBinding
     29: Image(Timer)
        ...

  * To unload the 'Reset' EFI driver image:
    Shell> unload 27
     27: Image(Reset)
    Unload driver image (y/n)? n
    Exit status code: Aborted

沒有留言:

張貼留言