Handle Database(系統資源資料庫)
The handle database is composed of objects called handles and protocols.
handle database(系統資源資料庫)是由被handles(資源控制)與protocols(通訊協定)呼叫的物件所組成。
Handles are a collection of one or more protocols, and protocols are data structures that are named by a GUID.
handles(資源控制)是由一個(含)以上的protocols(通訊協定)所組成,而protocols(通訊協定)則是用GUID所命名的資料結構體。
The data structure for a protocol may be empty, may contain data fields, may contain services, or may contain both services and data fields.
protocols(通訊協定)的資料結構內容可能是空的、或是包含資料欄位、或是包含系統服務,也可能同時包含系統服務與資料欄位兩者。
During EFI initialization, the system firmware, EFI drivers, and EFI applications create handles and attach one or more protocols to the handles.
在EFI初始化的過程中,系統韌體、驅動程式(EFI drivers)與應用程式(EFI applications)會建立handles(資源表),並將一個以上的protocols(通訊協定)加入此handles(資源表)中。
Information in the handle database is global and can be accessed by any executable EFI image.
handle database(系統資源資料庫)中的資訊是公開的,而且任何可執行的EFI映像檔(EFI image)都可以存取。
The handle database is the central repository for the objects that are maintained by EFI-based firmware.
handle database(系統資源資料庫)是一種EFI基礎韌體所維護的物件儲存中心。
The handle database is a list of EFI handles, and each EFI handle is identified by a unique handle number that is maintained by the system firmware.
handle database(系統資源資料庫)也可視為EFI handles(資源控制)的列表,每一個handles(資源控制)是利用系統韌體所維護的handle number(系統資源標號)作為標示號,以避免重複。
A handle number provides a database “key” to an entry in the handle database.
Handle number(系統資源標號)提供了資料庫的鍵值,給在handle database(系統資源資料庫)中的進入點函式。
Each entry in the handle database is a collection of one or more protocols.
每一個在handle database(系統資源資料庫)的進入點函式都是由一個(含)以上的protocols(通訊協定)所組成的。
The types of protocols, named by a GUID, that are attached to an EFI handle determine the handle type.
由GUID做命名的protocols(通訊協定)的類別,是取決於EFI handles(資源表)所決定的handle type。
An EFI handle may represent components such as the following:
EFI handles(資源表)所象徵的組件如下:
■ Executable images such as EFI drivers and EFI applications
可執行的映像檔,如:EFI驅動程式與EFI應用程式。
■ Devices such as network controllers and hard drive partitions
設備,如:網路控制器與硬碟分區。
■ EFI services such as EFI Decompression and the EBC Virtual Machine
EFI系統服務,如:EFI解壓縮程式(EFI Decompression)與EBC虛擬機(EBC Virtual Machine)。
Figure 2.1 below shows a portion of the handle database.
圖2.1所示為handle database(系統資源資料庫)的一部分。
In addition to the handles and protocols, a list of objects is associated with each protocol.
除了handles(資源表)與protocols(通訊協定)的關聯之外,物件列表會被每一個protocols(通訊協定)連結。
This list is used to track which agents are consuming which protocols.
這個列表是用於追蹤正在使用此protocols(通訊協定)的物件。
This information is critical to the operation of EFI drivers, because this information is what allows EFI drivers to be safely loaded, started, stopped, and unloaded without any resource conflicts.
此資訊是驅動程式(EFI drivers)運行的關鍵,因為這樣可以允許驅動程式(EFI drivers)被安全的載入、開始、停止與卸載而不會造成系統資源的衝突。
沒有留言:
張貼留言