What is Stop() in UEFI Driver Model?

Quick note explaining Stop() in UEFI Driver Model for BIOS/UEFI and embedded firmware readers.

2 min read
Đọc bằng English 日本語
Debug / Shell / Driver Terms cover

Stop() is the Driver Binding function that disconnects a driver from a controller and releases resources.

Why it matters

  • Explains how UEFI drivers are structured and connected.
  • Helps debug driver binding, controller connection, and resource cleanup.
  • Useful when reading Driver Binding Protocol code.

Practical example

Example: if Start() fails halfway, the driver should close protocols and free resources it already allocated before returning the error.

Quick checklist

Quick takeaway

Stop() in UEFI Driver Model is a small concept, but it often becomes important when reading logs or debugging real firmware.

How I usually read it

I try not to treat Stop() in UEFI Driver Model as a dictionary entry. I read it as part of a firmware path: who produces it, who consumes it, and what symptom appears when it is wrong. That habit makes the note useful during debugging, not only during study.

Where it shows up

Most firmware concepts become clearer when placed in the right phase. PEI, DXE, BDS, and runtime code have different responsibilities. For Stop() in UEFI Driver Model, I would ask which module creates it, which protocol/PPI/HOB or variable carries it, and which later component depends on it.

In a real debugging session

For Stop() in UEFI Driver Model, I usually ask four questions: which firmware phase sees it, which module produces it, which module consumes it, and where the symptom appears when it is wrong. That turns a BIOS/UEFI definition into a useful debug checkpoint.

When a DXE driver does not bind or BDS stops at an unexpected point, avoid staring at one error line only. Walk backward through protocols, handles, device paths, variables, and policy decisions. Firmware failures are usually chained.

Public references

Found this useful?

Save it or share it with someone learning firmware, BIOS/UEFI, and embedded systems.

Biến note thành bài viết hoàn chỉnh

Notes là nơi ghi nhanh khái niệm.