summaryrefslogtreecommitdiff
path: root/src/kernel/mem/virt.h
blob: 7c9380ea81f050163cec72e21ea147cca1cc7a6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// move this to proc.h, maybe?
#pragma once
#include <kernel/types.h>
#include <stddef.h>

size_t pcpy_to(Proc *p, __user void *dst, const void *src, size_t len);
size_t pcpy_from(Proc *p, void *dst, const __user void *src, size_t len);
size_t pcpy_bi(
	Proc *dstp, __user void *dst,
	Proc *srcp, const __user void *src,
	size_t len
);