Documentation of kernel API

This commit is contained in:
Kyle J Cardoza 2024-07-08 23:24:40 -04:00
parent 3d981098bb
commit a582a0daa9
1 changed files with 41 additions and 1 deletions

View File

@ -332,3 +332,43 @@ This call moves the internal file pointer, the position in the specified file fr
which data can be read or to which data can be written. On success, this call returns which data can be read or to which data can be written. On success, this call returns
STATUS_OK in C, and the new file position in X and Y. On error, C will contain a negative STATUS_OK in C, and the new file position in X and Y. On error, C will contain a negative
value indicating the specific error, and the new file position in X and Y. value indicating the specific error, and the new file position in X and Y.
## 0x13: Device I/O Control
This call performs driver-specific functions.
## 0x14: Delete File
Arguments:
C: 0x14
X: Bank of pathname
Y: Address of pathname
Return Values:
C: Status code
This call attempts to delete the file indicated by the given NULL-terminated string,
which must contain a fully-qualified pathname. On success, this C will contain
STATUS_OK. On failure, C will contain a negative number indicating the specific
error.
## 0x15: Move File
Arguments:
C: 0x15
X: Bank of argument structure
Y: Address of argument structure
Return Values:
C: Status code
Argument Structure:
struct {
char *src; // Fully-qualified source pathname.
char *dest; // Fully-qualified destination pathname.
};
This call attempts to move or rename the specified `source` file to `dest`. On success,
C will contain STATUS_OK. On error, C will contain a negative value indicating the
specific error.