IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
Loading...
Searching...
No Matches
igros::drivers Namespace Reference

Driver table and initialization. More...

Classes

struct  driver_t
 Kernel driver description. More...

Typedefs

using driverInit_t = std::add_pointer_t<auto() noexcept -> bool>
 Driver init function (returns true on success).

Functions

template<igros_usize_t N>
auto init (const std::array< drivers::driver_t, N > &drivers) noexcept -> igros_usize_t
 Initialize drivers in order and print status of each, returns failed drivers count.

Detailed Description

Driver table and initialization.

Typedef Documentation

◆ driverInit_t

using igros::drivers::driverInit_t = std::add_pointer_t<auto() noexcept -> bool>

Driver init function (returns true on success).

Definition at line 30 of file driver.hpp.

Function Documentation

◆ init()

template<igros_usize_t N>
auto igros::drivers::init ( const std::array< drivers::driver_t, N > & drivers) ->igros_usize_t
noexcept

Initialize drivers in order and print status of each, returns failed drivers count.

Template Parameters
NNumber of drivers
Parameters
driversDrivers in init order
Returns
Number of drivers that failed to initialize

Definition at line 46 of file driver.hpp.