1/**
2 * \file
3 * \brief User space memory access functions.
4 */
5
6/*
7 * Copyright (c) 2012, ETH Zurich.
8 * All rights reserved.
9 *
10 * This file is distributed under the terms in the attached LICENSE file.
11 * If you do not find this file, copies can be found by writing to:
12 * ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
13 */
14
15#include <kernel.h>
16#include <useraccess.h>
17
18/**
19 * Check the validity of the user space buffer.
20 *
21 * \param type   Type of access to check: ACCESS_WRITE or ACCESS_READ.
22 * \param buffer Pointer to beginning of buffer.
23 * \param size   Size of buffer.
24 */
25bool access_ok(uint8_t type, lvaddr_t buffer, size_t size)
26{
27    // FIXME: Implement!
28    return true;
29}
30