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

Commit b50f4ed5 authored by Mitchel Humpherys's avatar Mitchel Humpherys
Browse files

ion: export a few handle-related APIs



There are a few APIs (ion_handle_put and ion_handle_get_by_id) that are
useful for implementing Ion extensions (e.g. custom ioctl
handlers). Remove the `static' to make these APIs available to other Ion
code.

Change-Id: Ice8767853f628d8178e96a36db3da02fa97f3235
Signed-off-by: default avatarMitchel Humpherys <mitchelh@codeaurora.org>
parent 82fc02db
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 */