/*
 * Copyright (c) 2005-2006 Intel Corporation.  All rights reserved.
 *
 * This software is available to you under a choice of one of two
 * licenses.  You may choose to be licensed under the terms of the GNU
 * General Public License (GPL) Version 2, available from the file
 * COPYING in the main directory of this source tree, or the
 * OpenIB.org BSD license below:
 *
 *     Redistribution and use in source and binary forms, with or
 *     without modification, are permitted provided that the following
 *     conditions are met:
 *
 *      - Redistributions of source code must retain the above
 *        copyright notice, this list of conditions and the following
 *        disclaimer.
 *
 *      - Redistributions in binary form must reproduce the above
 *        copyright notice, this list of conditions and the following
 *        disclaimer in the documentation and/or other materials
 *        provided with the distribution.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
 * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
 * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */

#if !defined(IB_USER_MARSHALL_H)
#define IB_USER_MARSHALL_H

#include <rdma/ib_verbs.h>
#include <rdma/ib_sa.h>
#include <rdma/ib_user_verbs.h>
#include <rdma/ib_user_sa.h>

void ib_copy_qp_attr_to_user(struct ib_uverbs_qp_attr *dst,
			     struct ib_qp_attr *src);

void ib_copy_ah_attr_to_user(struct ib_uverbs_ah_attr *dst,
			     struct ib_ah_attr *src);

void ib_copy_path_rec_to_user(struct ib_user_path_rec *dst,
			      struct ib_sa_path_rec *src);

void ib_copy_path_rec_from_user(struct ib_sa_path_rec *dst,
				struct ib_user_path_rec *src);

#endif /* IB_USER_MARSHALL_H */
93b517036fab4500fe39de5'>tree</a><a class='active' href='/cgit.cgi/linux/net-next.git/commit/include/uapi/asm-generic?h=nds-private-remove&amp;id=99421c1cb27fb837e93b517036fab4500fe39de5'>commit</a><a href='/cgit.cgi/linux/net-next.git/diff/include/uapi/asm-generic?h=nds-private-remove&amp;id=99421c1cb27fb837e93b517036fab4500fe39de5'>diff</a></td><td class='form'><form class='right' method='get' action='/cgit.cgi/linux/net-next.git/log/include/uapi/asm-generic'>
<input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='99421c1cb27fb837e93b517036fab4500fe39de5'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/cgit.cgi/linux/net-next.git/commit/?h=nds-private-remove&amp;id=99421c1cb27fb837e93b517036fab4500fe39de5'>root</a>/<a href='/cgit.cgi/linux/net-next.git/commit/include?h=nds-private-remove&amp;id=99421c1cb27fb837e93b517036fab4500fe39de5'>include</a>/<a href='/cgit.cgi/linux/net-next.git/commit/include/uapi?h=nds-private-remove&amp;id=99421c1cb27fb837e93b517036fab4500fe39de5'>uapi</a>/<a href='/cgit.cgi/linux/net-next.git/commit/include/uapi/asm-generic?h=nds-private-remove&amp;id=99421c1cb27fb837e93b517036fab4500fe39de5'>asm-generic</a></div><div class='content'><div class='cgit-panel'><b>diff options</b><form method='get'><input type='hidden' name='h' value='nds-private-remove'/><input type='hidden' name='id' value='99421c1cb27fb837e93b517036fab4500fe39de5'/><table><tr><td colspan='2'/></tr><tr><td class='label'>context:</td><td class='ctrl'><select name='context' onchange='this.form.submit();'><option value='1'>1</option><option value='2'>2</option><option value='3' selected='selected'>3</option><option value='4'>4</option><option value='5'>5</option><option value='6'>6</option><option value='7'>7</option><option value='8'>8</option><option value='9'>9</option><option value='10'>10</option><option value='15'>15</option><option value='20'>20</option><option value='25'>25</option><option value='30'>30</option><option value='35'>35</option><option value='40'>40</option></select></td></tr><tr><td class='label'>space:</td><td class='ctrl'><select name='ignorews' onchange='this.form.submit();'><option value='0' selected='selected'>include</option><option value='1'>ignore</option></select></td></tr><tr><td class='label'>mode:</td><td class='ctrl'><select name='dt' onchange='this.form.submit();'><option value='0' selected='selected'>unified</option><option value='1'>ssdiff</option><option value='2'>stat only</option></select></td></tr><tr><td/><td class='ctrl'><noscript><input type='submit' value='reload'/></noscript></td></tr></table></form></div><table summary='commit info' class='commit-info'>
<tr><th>author</th><td>Linus Torvalds &lt;torvalds@linux-foundation.org&gt;</td><td class='right'>2017-01-15 16:09:50 -0800</td></tr>
<tr><th>committer</th><td>Linus Torvalds &lt;torvalds@linux-foundation.org&gt;</td><td class='right'>2017-01-15 16:09:50 -0800</td></tr>
<tr><th>commit</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/include/uapi/asm-generic?h=nds-private-remove&amp;id=99421c1cb27fb837e93b517036fab4500fe39de5'>99421c1cb27fb837e93b517036fab4500fe39de5</a> (<a href='/cgit.cgi/linux/net-next.git/patch/include/uapi/asm-generic?id=99421c1cb27fb837e93b517036fab4500fe39de5'>patch</a>)</td></tr>
<tr><th>tree</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/tree/?h=nds-private-remove&amp;id=99421c1cb27fb837e93b517036fab4500fe39de5'>de5fc5bacb671223f389793ad643cebe520bc292</a> /<a href='/cgit.cgi/linux/net-next.git/tree/include/uapi/asm-generic?h=nds-private-remove&amp;id=99421c1cb27fb837e93b517036fab4500fe39de5'>include/uapi/asm-generic</a></td></tr>
<tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/include/uapi/asm-generic?h=nds-private-remove&amp;id=c92816275674c1491ce228ee49aa030a5fa1be04'>c92816275674c1491ce228ee49aa030a5fa1be04</a> (<a href='/cgit.cgi/linux/net-next.git/diff/include/uapi/asm-generic?h=nds-private-remove&amp;id=99421c1cb27fb837e93b517036fab4500fe39de5&amp;id2=c92816275674c1491ce228ee49aa030a5fa1be04'>diff</a>)</td></tr><tr><th>parent</th><td colspan='2' class='oid'><a href='/cgit.cgi/linux/net-next.git/commit/include/uapi/asm-generic?h=nds-private-remove&amp;id=93362fa47fe98b62e4a34ab408c4a418432e7939'>93362fa47fe98b62e4a34ab408c4a418432e7939</a> (<a href='/cgit.cgi/linux/net-next.git/diff/include/uapi/asm-generic?h=nds-private-remove&amp;id=99421c1cb27fb837e93b517036fab4500fe39de5&amp;id2=93362fa47fe98b62e4a34ab408c4a418432e7939'>diff</a>)</td></tr></table>
<div class='commit-subject'>Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace</div><div class='commit-msg'>Pull namespace fixes from Eric Biederman:
 "This tree contains 4 fixes.

  The first is a fix for a race that can causes oopses under the right
  circumstances, and that someone just recently encountered.

  Past that are several small trivial correct fixes. A real issue that
  was blocking development of an out of tree driver, but does not appear
  to have caused any actual problems for in-tree code. A potential
  deadlock that was reported by lockdep. And a deadlock people have
  experienced and took the time to track down caused by a cleanup that
  removed the code to drop a reference count"

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace:
  sysctl: Drop reference added by grab_header in proc_sys_readdir
  pid: fix lockdep deadlock warning due to ucount_lock
  libfs: Modify mount_pseudo_xattr to be clear it is not a userspace mount
  mnt: Protect the mountpoint hashtable with mount_lock
</div><div class='diffstat-header'><a href='/cgit.cgi/linux/net-next.git/diff/?h=nds-private-remove&amp;id=99421c1cb27fb837e93b517036fab4500fe39de5'>Diffstat</a> (limited to 'include/uapi/asm-generic')</div><table summary='diffstat' class='diffstat'>