summaryrefslogtreecommitdiffhomepage
path: root/dev/user/SystemCalls.h
diff options
context:
space:
mode:
authorAmlal <amlal@nekernel.org>2025-04-26 13:44:35 +0200
committerAmlal <amlal@nekernel.org>2025-04-26 13:44:35 +0200
commit9c33e844d76f9db6d7110de4f05cbe2084cdbca1 (patch)
tree9875059712c6e819ae9a3dbbccda7ba105708326 /dev/user/SystemCalls.h
parenta02a39e77abf2a71bcd023c33c63d405ef1c3081 (diff)
dev, kernel and user: codebase additions and work in progress 'tactical pause'
why? - HeFS's Formating needs some thought before being layed out, that's the kind of thing that bites hard in the ass. - Alongside those changes I improved parts of the kernel too. Signed-off-by: Amlal <amlal@nekernel.org>
Diffstat (limited to 'dev/user/SystemCalls.h')
-rw-r--r--dev/user/SystemCalls.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/dev/user/SystemCalls.h b/dev/user/SystemCalls.h
index 1e391d8a..4ff7de11 100644
--- a/dev/user/SystemCalls.h
+++ b/dev/user/SystemCalls.h
@@ -60,6 +60,16 @@ IMPORT_C Ref IoOpenFile(const Char* fs_path, const Char* drive_letter);
/// @return Function doesn't return a type.
IMPORT_C Void IoCloseFile(_Input Ref file_desc);
+/// @brief I/O control (ioctl) on a file.
+/// @param file_desc the file descriptor.
+/// @param ioctl_code the ioctl code.
+/// @param in_data the input data.
+/// @param out_data the output data.
+/// @return the number of bytes written.
+/// @note This function is used to control the file descriptor, introduced for HeFS.
+IMPORT_C SInt32 IoCTLFile(_Input Ref file_desc, _Input UInt32 ioctl_code, _Input VoidPtr in_data,
+ _Output VoidPtr out_data);
+
/// @brief Gets the file mime (if any)
/// @param file_desc the file descriptor.
IMPORT_C const Char* IoMimeFile(_Input Ref file_desc);