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

struct process;

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