kernel: msg: include details about who sent a message

This commit is contained in:
2026-03-05 21:04:02 +00:00
parent 36c5ac7837
commit 09d292fd09
2 changed files with 12 additions and 0 deletions

View File

@@ -202,6 +202,8 @@ extern kern_status_t channel_recv_msg(
}
out_msg->msg_id = msg->msg_id;
out_msg->msg_sender = msg->msg_sender_thread->tr_parent->t_id;
out_msg->msg_endpoint = msg->msg_sender_port->p_base.ob_id;
spin_unlock_irqrestore(&msg->msg_lock, msg_lock_flags);

View File

@@ -61,9 +61,19 @@ typedef struct {
} kern_msg_handle_t;
typedef struct {
/* transaction id. identifies a particular request/response exchange.
* used when replying to a particular message. */
msgid_t msg_id;
/* the id of the task that sent a particular message. */
tid_t msg_sender;
/* the id of the port or channel used to send a particular message. */
koid_t msg_endpoint;
/* a list of iovecs that point to the buffers that make up the main
* message data. */
kern_iovec_t *msg_data;
size_t msg_data_count;
/* a list of handle entries that contain the kernel handles included
* in a message. */
kern_msg_handle_t *msg_handles;
size_t msg_handles_count;
} kern_msg_t;