NeKernel dev
Loading...
Searching...
No Matches
SystemCalls.cc File Reference

Functions

IMPORT_C Char * StrFmt (const Char *fmt,...)
IMPORT_C VoidPtr MmCopyMemory (_Input VoidPtr dest, _Input VoidPtr src, _Input UInt64 len)
 Copy memory region.
IMPORT_C SInt64 MmStrLen (const Char *in)
 Get length of string.
IMPORT_C VoidPtr MmFillMemory (_Input VoidPtr dest, _Input UInt64 len, _Input UInt8 value)
 Fill memory region.
IMPORT_C Ref IoOpenFile (_Input const Char *path, _Input const Char *drv_letter)
IMPORT_C Void IoCloseFile (_Input Ref desc)
 Closes a file and flushes its content.
IMPORT_C UInt64 IoSeekFile (_Input Ref desc, _Input UInt64 off)
IMPORT_C UInt64 IoTellFile (_Input Ref desc)
 Tell the current position of the file pointer.
IMPORT_C SInt32 PrintOut (_Input IORef desc, const Char *fmt,...)

Function Documentation

◆ IoCloseFile()

IMPORT_C Void IoCloseFile ( _Input Ref file_desc)

Closes a file and flushes its content.

Parameters
file_descthe file descriptor.
Returns
Function doesn't return a type.

◆ IoOpenFile()

IMPORT_C Ref IoOpenFile ( _Input const Char * path,
_Input const Char * drv_letter )

◆ IoSeekFile()

IMPORT_C UInt64 IoSeekFile ( _Input Ref desc,
_Input UInt64 off )

◆ IoTellFile()

IMPORT_C UInt64 IoTellFile ( _Input Ref file_desc)

Tell the current position of the file pointer.

Parameters
file_descthe file descriptor.
Returns
the current position of the file pointer.

◆ MmCopyMemory()

IMPORT_C VoidPtr MmCopyMemory ( _Input VoidPtr dest,
_Input VoidPtr src,
_Input UInt64 len )

Copy memory region.

◆ MmFillMemory()

IMPORT_C VoidPtr MmFillMemory ( _Input VoidPtr dest,
_Input UInt64 len,
_Input UInt8 value )

Fill memory region.

◆ MmStrLen()

IMPORT_C SInt64 MmStrLen ( const Char * in)

Get length of string.

◆ PrintOut()

IMPORT_C SInt32 PrintOut ( _Input IORef desc,
const Char * fmt,
... )

◆ StrFmt()

IMPORT_C Char * StrFmt ( const Char * fmt,
... )