⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 components

📁 COS 0.0.1.rar Cos操作系统源代码
💻
字号:
Okay, these are my ideas so far on components and interfaces in COSFirstly, code will be separated into 2 types of executables/libraries.We will have "flat" binaries and "component" binaries, both in ELF format.Flat binaries are pretty much the usual. Components are what this OS is allabout. A component has a publicly visible "interface" and its implementationis generally hidden from the caller. The interface will be a list of functionpointers which should *only* be accessed by a system function called somethinglike "invoke()". Invoke might call the pointers directly, spawn a new threador process for the call, pass the call to a running instance of the componentor even send a message over a network to an instance running on a server.This has all been done/seen before. What I propose is to use these componentsmuch more widely, including in the kernel. A direct call (synchronous) shouldbe very fast, with none of the overhead often associated with component usage.On top of this, the caller should not have to worry about linkage.--Nextly, my ideas on modules. A module is a binary providing one or morecomponents. These will be very flexible in that a module can be loaded intothe kernel or into userspace as needed, either as requested by the caller(load into kernel something that can run in userspace in order to speed it up)or by a setting in the module file (driver that must run in kernel mode).--Another idea is "transition code". This is code that requests a move to kernelmode and moves from ring-3 to ring-0 (or equivalent). Once the critical partof the code has finished it can be dropped back to ring-3.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -