From c24a9376b4a048a3f9408df2d47eaad367459bd7 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Wed, 25 Jan 2023 20:56:36 +0100 Subject: kernel: consolidate some header files --- src/kernel/ring.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/kernel/ring.c') 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 -#include - -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); -} -- cgit v1.2.3