Lines Matching +full:resource +full:- +full:id
1 /* SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB */
3 * Copyright (c) 2017-2018 Mellanox Technologies. All rights reserved.
24 * enum rdma_restrack_type - HW objects to track
40 * @RDMA_RESTRACK_CM_ID: Connection Manager ID (CM_ID)
66 * struct rdma_restrack_entry - metadata per-entry
87 * @kref: Protect destroy of the resource
91 * @comp: Signal that all consumers of resource are completed their work
95 * @task: owner of resource tracking entity
113 * @user: user resource
117 * @id: ID to expose to users
119 u32 id; member
125 * rdma_is_kernel_res() - check the owner of resource
126 * @res: resource entry
130 return !res->user; in rdma_is_kernel_res()
134 * rdma_restrack_get() - grab to protect resource from release
135 * @res: resource entry
140 * rdma_restrack_put() - release resource
141 * @res: resource entry
162 u32 id);
165 * rdma_restrack_no_track() - don't add resource to the DB
166 * @res: resource entry
173 res->no_track = true; in rdma_restrack_no_track()
177 return !res->no_track; in rdma_restrack_is_tracked()