Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6334

Dynamic memory allocation in XV6 kernel

$
0
0

I want to implement a Queue struct (using Node struct, similiral to the C code here) in files Queue.c and Queue.h in order to store processes in proc.c in XV6 kernel.

I don't know how to to do it, since it requires to use malloc, but I can't use it inside methods which I call from the kernel.

What can I use instead, in order to implement and use the Queue?


Viewing all articles
Browse latest Browse all 6334

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>