kernel: re-implement sending handles via port messages
This commit is contained in:
@@ -78,10 +78,8 @@ kern_status_t port_disconnect(struct port *port)
|
||||
|
||||
kern_status_t port_send_msg(
|
||||
struct port *port,
|
||||
const struct iovec *req_data,
|
||||
size_t req_data_count,
|
||||
struct iovec *resp_data,
|
||||
size_t resp_data_count,
|
||||
const kern_msg_t *in_msg,
|
||||
kern_msg_t *out_reply,
|
||||
unsigned long *lock_flags)
|
||||
{
|
||||
if (port->p_status != PORT_READY) {
|
||||
@@ -94,10 +92,8 @@ kern_status_t port_send_msg(
|
||||
msg->msg_status = KMSG_WAIT_RECEIVE;
|
||||
msg->msg_sender_thread = self;
|
||||
msg->msg_sender_port = port;
|
||||
msg->msg_req_data = req_data;
|
||||
msg->msg_req_data_count = req_data_count;
|
||||
msg->msg_resp_data = resp_data;
|
||||
msg->msg_resp_data_count = resp_data_count;
|
||||
memcpy(&msg->msg_req, in_msg, sizeof msg->msg_req);
|
||||
memcpy(&msg->msg_resp, out_reply, sizeof msg->msg_req);
|
||||
|
||||
unsigned long flags;
|
||||
channel_lock_irqsave(port->p_remote, &flags);
|
||||
|
||||
Reference in New Issue
Block a user