|
IgrOS-Kernel 0.1.34.545
Simple C++20 Kernel for i386/x86_64
|
System formats (ELF). More...
Classes | |
| struct | device_t |
| Device description structure. More... | |
| struct | elfIdentity_t |
| ELF identity class. More... | |
| struct | elfHeader_t |
| ELF file header. More... | |
| struct | elfProgramHeader_t |
| ELF program header. More... | |
Typedefs | |
| using | devFuncInit_t = std::add_pointer_t<auto()->igros_pointer_t> |
| Device init function pointer. | |
| using | devFuncDeinit_t = std::add_pointer_t<void(igros_pointer_t)> |
| Device deinit function pointer. | |
| using | devFuncOpen_t = std::add_pointer_t<auto(const char*, const igros_dword_t)->igros_pointer_t> |
| Device open function pointer. | |
| using | devFuncClose_t = std::add_pointer_t<void(igros_pointer_t)> |
| Device close function pointer. | |
| using | devFuncWrite_t = std::add_pointer_t<auto(const igros_pointer_t, const void* const, const igros_usize_t)->igros_usize_t> |
| Device write function pointer. | |
| using | devFuncRead_t = std::add_pointer_t<auto(const igros_pointer_t, void* const, const igros_usize_t)->igros_usize_t> |
| Device read function pointer. | |
| using | devFuncIOCTL_t = std::add_pointer_t<auto(const igros_pointer_t, const igros_dword_t, ...)->igros_usize_t> |
| Device IOCTL function pointer. | |
Enumerations | |
| enum class | ELF_CLASS : igros_byte_t { NONE = 0x00_u8 , CLASS32 = 0x01_u8 , CLASS64 = 0x02_u8 } |
| ELF class type. More... | |
| enum class | ELF_DATA : igros_byte_t { NONE = 0x00_u8 , LSB = 0x01_u8 , MSB = 0x02_u8 } |
| ELF data type. More... | |
| enum class | ELF_VERSION : igros_byte_t { NONE = 0x00_u8 , CURRENT = 0x01_u8 } |
| ELF version. More... | |
| enum class | ELF_ABI : igros_byte_t { SYSV = 0x00_u8 , HP_UX = 0x01_u8 , NETBSD = 0x02_u8 , LINUX = 0x03_u8 , HURD = 0x04_u8 , SOLARIS = 0x06_u8 , AIX = 0x07_u8 , IRIS = 0x08_u8 , FREEBSD = 0x09_u8 , TRU64 = 0x0A_u8 , NOVELL = 0x0B_u8 , OPENBSD = 0x0C_u8 , VMS = 0x0D_u8 , NONSTOP = 0x0E_u8 , AROS = 0x0F_u8 , FENIX = 0x10_u8 , CLOUD = 0x11_u8 , VOS = 0x12_u8 } |
| ELF OS ABI. More... | |
| enum class | ELF_TYPE : igros_word_t { NONE = 0x0000_u16 , REL = 0x0001_u16 , EXEC = 0x0002_u16 , DYN = 0x0003_u16 , CORE = 0x0004_u16 , LOOS = 0xFE00_u16 , HIOS = 0xFEFF_u16 , LOPROC = 0xFF00_u16 , HIPROC = 0xFFFF_u16 } |
| ELF type. More... | |
| enum class | ELF_MACHINE : igros_word_t { NONE = 0x00_u16 , M32 = 0x01_u16 , SPARC = 0x02_u16 , I386 = 0x03_u16 , M68K = 0x04_u16 , M88K = 0x05_u16 , I8086 = 0x07_u16 , MIPS = 0x08_u16 , POWERPC = 0x14_u16 , S390 = 0x16_u16 , ARM = 0x28_u16 , SUPERH = 0x2A_u16 , IA_64 = 0x32_u16 , X86_64 = 0x3E_u16 , AARCH64 = 0xB7_u16 , RISC_V = 0xF3_u16 } |
| ELF machine type. More... | |
| enum class | ELF_PROGRAM_TYPE : igros_dword_t { NONE = 0x00000000_u32 , LOAD = 0x00000001_u32 , DYNAMIC = 0x00000002_u32 , INTERP = 0x00000003_u32 , NOTE = 0x00000004_u32 , SHLIB = 0x00000005_u32 , PHDR = 0x00000006_u32 , LOOS = 0x60000000_u32 , HIOS = 0x6FFFFFFF_u32 , LOPROC = 0x70000000_u32 , HIPROC = 0x7FFFFFFF_u32 } |
| ELF program type. More... | |
Functions | |
| auto | registerDevice (const device_t &dev) noexcept -> bool |
| Register device. | |
| auto | unregisterDevice (const device_t &dev) noexcept -> bool |
| Unregister device. | |
Variables | |
| static constexpr auto | ELF_MAGIC_0 {0x7F_u8} |
| 127 | |
| static constexpr auto | ELF_MAGIC_1 {0x45_u8} |
| 'E' | |
| static constexpr auto | ELF_MAGIC_2 {0x4C_u8} |
| 'L' | |
| static constexpr auto | ELF_MAGIC_3 {0x46_u8} |
| 'F' | |
System formats (ELF).
| using igros::sys::devFuncClose_t = std::add_pointer_t<void(igros_pointer_t)> |
Device close function pointer.
Definition at line 36 of file device.hpp.
| using igros::sys::devFuncDeinit_t = std::add_pointer_t<void(igros_pointer_t)> |
Device deinit function pointer.
Definition at line 31 of file device.hpp.
| using igros::sys::devFuncInit_t = std::add_pointer_t<auto()->igros_pointer_t> |
Device init function pointer.
Definition at line 29 of file device.hpp.
| using igros::sys::devFuncIOCTL_t = std::add_pointer_t<auto(const igros_pointer_t, const igros_dword_t, ...)->igros_usize_t> |
Device IOCTL function pointer.
Definition at line 44 of file device.hpp.
| using igros::sys::devFuncOpen_t = std::add_pointer_t<auto(const char*, const igros_dword_t)->igros_pointer_t> |
Device open function pointer.
Definition at line 34 of file device.hpp.
| using igros::sys::devFuncRead_t = std::add_pointer_t<auto(const igros_pointer_t, void* const, const igros_usize_t)->igros_usize_t> |
Device read function pointer.
Definition at line 41 of file device.hpp.
| using igros::sys::devFuncWrite_t = std::add_pointer_t<auto(const igros_pointer_t, const void* const, const igros_usize_t)->igros_usize_t> |
Device write function pointer.
Definition at line 39 of file device.hpp.
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
|
nodiscardnoexcept |
Register device.
| dev | Device |
|
nodiscardnoexcept |
Unregister device.
| dev | Device |