summaryrefslogtreecommitdiff
path: root/src/kernel/fd.c
blob: 7d448eb5f470eac240f1161ec807e062eb4eedfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <kernel/fd.h>
#include <kernel/panic.h>
#include <kernel/proc.h>

int fdop_dispatch(enum fdop fdop, struct fd *fd, void *ptr, size_t len) {
	switch(fd->type) {
		case FD_EMPTY:
			return -1;
		default:
			panic();
	}
}