kernel: channel: implement channel_read_msg and msg_read

This commit is contained in:
2026-02-23 21:51:59 +00:00
parent 11c741bd68
commit 1c7c90ef39
4 changed files with 120 additions and 31 deletions

View File

@@ -38,15 +38,17 @@ extern kern_status_t channel_read_msg(
struct channel *channel,
msgid_t msg,
size_t offset,
void *buf,
size_t len,
struct vm_region *dest_region,
const struct iovec *dest_iov,
size_t dest_iov_count,
size_t *nr_read);
extern kern_status_t channel_write_msg(
struct channel *channel,
msgid_t msg,
size_t offset,
const void *buf,
size_t len,
struct vm_region *src_region,
const struct iovec *src_iov,
size_t src_iov_count,
size_t *nr_written);
DEFINE_OBJECT_LOCK_FUNCTION(channel, c_base)