einit entity

One of the most important entities in KasperskyOS is the entity named einit, which is the first entity started by the operating system kernel when the image is loaded. In most solutions built on KasperskyOS, the einit entity starts all other entities included in the solution, which means that it serves as the initializing entity.

The set of tools shipped with the KasperskyOS Starter Kit includes the einit tool, which lets you generate the code of the einit entity in C, based on the init.yaml file (the so-called init description). The einit entity created using the einit script performs the following initializing functions:

The standard way of using the einit tool is to integrate an einit call into one of the steps of the build script. As a result, the einit tool uses the init.yaml file to generate the einit.c file containing the einit entity code. In one of the following steps of the build script, you must compile the einit.c file into the executable file of the einit entity and include it into the solution image. An example of such code is available in each example provided in the KasperskyOS Education Kit.

Page top