Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2204993a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ion: export a few handle-related APIs"

parents b2c319e4 b50f4ed5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -360,7 +360,7 @@ static void ion_handle_get(struct ion_handle *handle)
	kref_get(&handle->ref);
}

static int ion_handle_put(struct ion_handle *handle)
int ion_handle_put(struct ion_handle *handle)
{
	struct ion_client *client = handle->client;
	int ret;
@@ -386,7 +386,7 @@ static struct ion_handle *ion_handle_lookup(struct ion_client *client,
	return ERR_PTR(-EINVAL);
}

static struct ion_handle *ion_handle_get_by_id(struct ion_client *client,
struct ion_handle *ion_handle_get_by_id(struct ion_client *client,
						int id)
{
	struct ion_handle *handle;
+5 −0
Original line number Diff line number Diff line
@@ -396,4 +396,9 @@ int ion_page_pool_shrink(struct ion_page_pool *pool, gfp_t gfp_mask,
int ion_walk_heaps(struct ion_client *client, int heap_id, void *data,
			int (*f)(struct ion_heap *heap, void *data));

struct ion_handle *ion_handle_get_by_id(struct ion_client *client,
					int id);

int ion_handle_put(struct ion_handle *handle);

#endif /* _ION_PRIV_H */