kernel: msg: implement asynchronous event messages

This commit is contained in:
2026-03-24 18:32:33 +00:00
parent 110f625f04
commit 89d02c72ee
7 changed files with 178 additions and 56 deletions

View File

@@ -60,9 +60,9 @@ kern_status_t sys_port_create(kern_handle_t *out)
kern_status_t status
= task_open_handle(self, &port->p_base, 0, &handle);
task_unlock_irqrestore(self, irq_flags);
object_unref(&port->p_base);
if (status != KERN_OK) {
object_unref(&port->p_base);
return status;
}
@@ -114,6 +114,7 @@ kern_status_t sys_port_connect(
status = port_connect(port, remote);
port_unlock_irqrestore(port, flags);
object_unref(&remote->c_base);
object_unref(port_obj);
return KERN_OK;
}