[kernel] Allow blocking on empty channels

This commit adds a new flag, j6_channel_block, and a new flags param to
the channel_receive syscall. When the block flag is specified, the
caller will block waiting for data on the channel if the channel is
empty.
This commit is contained in:
Justin C. Miller
2022-02-28 20:10:56 -08:00
parent 446025fb65
commit b8684777e0
5 changed files with 38 additions and 30 deletions

View File

@@ -9,6 +9,10 @@ enum j6_vm_flags {
j6_vm_flag_MAX
};
enum j6_channel_flags {
j6_channel_block = 0x01,
};
enum j6_mailbox_flags {
j6_mailbox_block = 0x01,
};