minator// [VER_MAX-1]=1 <-- last byte is used as flag// the new client type// off by one, to leave space for the trailing '1' which is flagging/* No extra access to nv_mem_context->page_table here as we are called not under a lock and may race with inflight invalidate callback on that buffer. Extra handling was delayed to be done under nv_dma_map. *//* Here we expect an error in real life cases that should be ignored - not printed. * (e.g. concurrent callback with that call) *//* Error case handled as not mine *//* 1 means mine *//* acquire return code: 1 mine, 0 - not mine *//* Not expected, however in case callback was called on that buffer just before put pages we'll expect to fail gracefully (confirmed by NVIDIA) and return an error. *//* At that function we don't call IB core - no ticket exists *//* For now don't set nv_mem_context->page_table to NULL, * confirmed by NVIDIA that inflight put_pages with valid pointer will fail gracefully. *//* Save page_table locally to prevent it being freed as part of nv_mem_release * in case it's called internally by that callback. *//* * Copyright (c) 2006, 2007 Cisco Systems, Inc. All rights reserved. * Copyright (c) 2007, 2008 Mellanox Technologies. 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. *//home/runner/work/bulk-builder/bulk-builder/kernel-open/nvidia-peermem.mod.c"890AFFA635D55BDFFC7CFAE"srcversion=890AFFA635D55BDFFC7CFAEdepends=