kernel: do preparation work for copyless read/write

This commit is contained in:
Matheus
2024-09-18 21:17:37 -03:00
parent 1140244816
commit 611f13b562
12 changed files with 134 additions and 47 deletions
+1
View File
@@ -262,6 +262,7 @@ static int udp_recv(socket_t *socket, sockdesc_t *sockdesc) {
bool intstate = interrupt_set(false);
spinlock_acquire(&udpsocket->ringbufferlock);
// TODO rewrite this to handle a possible sleep in the ringbuffer
size_t copycount;
dataheader_t header;
if (flags & SOCKET_RECV_FLAGS_PEEK) {