SimpleKernel 1.17.0
Loading...
Searching...
No Matches
DriverEntry Struct Reference

类型擦除的驱动条目 — 每个已注册驱动对应一条。 More...

#include <driver_registry.hpp>

Collaboration diagram for DriverEntry:
Collaboration graph

Public Attributes

const char * name {nullptr}
 
etl::span< const MatchEntrymatch_table {}
 
etl::delegate< bool(DeviceNode &)> match {}
 硬件检测
 
etl::delegate< Expected< void >(DeviceNode &)> probe {}
 驱动初始化
 
etl::delegate< Expected< void >(DeviceNode &)> remove {}
 驱动卸载
 

Detailed Description

类型擦除的驱动条目 — 每个已注册驱动对应一条。

Precondition
注册前 match/probe/remove 委托必须已绑定

Definition at line 37 of file driver_registry.hpp.

Member Data Documentation

◆ match

etl::delegate<bool(DeviceNode&)> DriverEntry::match {}

硬件检测

Definition at line 41 of file driver_registry.hpp.

41{};

◆ match_table

etl::span<const MatchEntry> DriverEntry::match_table {}

Definition at line 39 of file driver_registry.hpp.

39{};

◆ name

const char* DriverEntry::name {nullptr}

Definition at line 38 of file driver_registry.hpp.

38{nullptr};

◆ probe

etl::delegate<Expected<void>(DeviceNode&)> DriverEntry::probe {}

驱动初始化

Definition at line 43 of file driver_registry.hpp.

43{};

◆ remove

etl::delegate<Expected<void>(DeviceNode&)> DriverEntry::remove {}

驱动卸载

Definition at line 45 of file driver_registry.hpp.

45{};

The documentation for this struct was generated from the following file: