summaryrefslogtreecommitdiff
path: root/src/kernel/ring.c
diff options
context:
space:
mode:
authordzwdz2023-01-25 20:56:36 +0100
committerdzwdz2023-01-25 20:56:36 +0100
commitc24a9376b4a048a3f9408df2d47eaad367459bd7 (patch)
tree74388b8b575719ab94e6f8eed9ad834abe7ba36b /src/kernel/ring.c
parent93194f8645ecd9f280372ec99497ede5f0ce7cee (diff)
kernel: consolidate some header files
Diffstat (limited to 'src/kernel/ring.c')
-rw-r--r--src/kernel/ring.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/kernel/ring.c b/src/kernel/ring.c
index 2cb6961..e69de29 100644
--- a/src/kernel/ring.c
+++ b/src/kernel/ring.c
@@ -1,9 +0,0 @@
-#include <kernel/mem/virt.h>
-#include <kernel/ring.h>
-
-size_t ring_to_virt(ring_t *r, Proc *proc, void __user *ubuf, size_t max) {
- char tmp[32];
- if (max > sizeof tmp) max = sizeof tmp;
- max = ring_get(r, tmp, max);
- return pcpy_to(proc, ubuf, tmp, max);
-}