From 2c78dc983d09e136dd016ae6ecee6b191e033de1 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Mon, 25 Sep 2023 00:12:57 +0200 Subject: kernel/intr: accept a message, allow killing processes via intrs --- src/kernel/vfs/procfs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/kernel/vfs') diff --git a/src/kernel/vfs/procfs.c b/src/kernel/vfs/procfs.c index 7ba43d8..5031840 100644 --- a/src/kernel/vfs/procfs.c +++ b/src/kernel/vfs/procfs.c @@ -146,7 +146,9 @@ procfs_accept(VfsReq *req) ); vfsreq_finish_short(req, res); } else if (req->type == VFSOP_WRITE && h->type == PhIntr) { - proc_intr(p); + size_t len = min(sizeof buf, req->input.len); + len = pcpy_from(req->caller, buf, req->input.buf, len); + proc_intr(p, buf, len); vfsreq_finish_short(req, req->input.len); } else { vfsreq_finish_short(req, -ENOSYS); -- cgit v1.2.3