summaryrefslogtreecommitdiff
path: root/src/shared/types.h
blob: f47e1bb6a4af92988d68f149b7f202fbe0919e54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
#include <stdint.h>

#ifdef __CHECKER__
#  define __user  __attribute__((noderef, address_space(__user)))
#  define __force __attribute__((force))
#else
#  define __user
#  define __force
#endif

typedef void __user * userptr_t;
typedef int handle_t;

enum vfs_operation {
	VFSOP_OPEN,
	VFSOP_READ,
	VFSOP_WRITE,
	VFSOP_CLOSE,
};