1127668Sbms/*- 2127668Sbms * Copyright (c) 2010 Isilon Systems, Inc. 3127668Sbms * Copyright (c) 2010 iX Systems, Inc. 4127668Sbms * Copyright (c) 2010 Panasas, Inc. 5127668Sbms * Copyright (c) 2013, 2014 Mellanox Technologies, Ltd. 6127668Sbms * All rights reserved. 7127668Sbms * 8127668Sbms * Redistribution and use in source and binary forms, with or without 9127668Sbms * modification, are permitted provided that the following conditions 10127668Sbms * are met: 11127668Sbms * 1. Redistributions of source code must retain the above copyright 12127668Sbms * notice unmodified, this list of conditions, and the following 13127668Sbms * disclaimer. 14127668Sbms * 2. Redistributions in binary form must reproduce the above copyright 15127668Sbms * notice, this list of conditions and the following disclaimer in the 16127668Sbms * documentation and/or other materials provided with the distribution. 17127668Sbms * 18127668Sbms * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 19127668Sbms * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES 20127668Sbms * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 21127668Sbms * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 22127668Sbms * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 23127668Sbms * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 24127668Sbms * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25127668Sbms * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26127668Sbms * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 27127668Sbms * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28127668Sbms */ 29127668Sbms#ifndef _LINUX_UACCESS_H_ 30127668Sbms#define _LINUX_UACCESS_H_ 31127668Sbms 32127668Sbms#define get_user(_x, _p) -copyin((_p), &(_x), sizeof(*(_p))) 33127668Sbms#define put_user(_x, _p) -copyout(&(_x), (_p), sizeof(*(_p))) 34127668Sbms 35127668Sbms#endif /* _LINUX_UACCESS_H_ */ 36190207Srpaulo