File system endpoints
These endpoints are intended for working with the ROMFS file system used by the KasperskyOS kernel.
Information about methods of endpoints is provided in the tables below.
Methods of the fs.FS endpoint (kl.core.FS interface)
Method | Method purpose and parameters | Potential danger of the method |
---|---|---|
| Purpose Opens a file. Parameters
| Allows the kernel memory to be used up by creating a multitude of objects within it. |
| Purpose Closes a file. Parameters
| N/A |
| Purpose Reads data from a file. Parameters
| N/A |
| Purpose Lets you get the size of a file. Parameters
| N/A |
| Purpose Lets you get the unique ID of a file. Parameters
| N/A |
| Purpose Lets you get the number of files in the file system. Parameters
| N/A |
| Purpose Lets you get the name and unique ID of a file based on the file index. Parameters
| N/A |
| Purpose Lets you get the size of the file system. Parameters
| N/A |
Methods of the fs.FSUnsafe endpoint (kl.core.FSUnsafe interface)
Method | Method purpose and parameters | Potential danger of the method |
---|---|---|
| Purpose Changes the file system image. A different ROMFS image loaded into process memory will be used instead of the ROMFS image that was created during the solution build. Parameters
| Allows the following:
|