[kernel] Make channels stream based
Multiple changes regarding channels. Mainly channels are now stream based and can handle partial reads or writes. Channels now use the kernel buffers area with the related buffer_cache. Added a fake stdout stream channel and kernel task to read its contents to the screen in preparation for handing channels as stdin/stdout to processes.
This commit is contained in:
@@ -26,7 +26,8 @@ thread_proc()
|
||||
|
||||
_syscall_system_log("sub thread signaled user0");
|
||||
|
||||
result = _syscall_channel_send(chan, sizeof(message), (void*)message);
|
||||
size_t size = sizeof(message);
|
||||
result = _syscall_channel_send(chan, &size, (void*)message);
|
||||
if (result != j6_status_ok)
|
||||
_syscall_thread_exit(result);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user