summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorYong Ding <yongding@codeaurora.org>2018-03-19 16:39:28 +0800
committerGerrit - the friendly Code Review server <code-review@localhost>2018-03-20 19:01:52 -0700
commit4fc0ee9d997b4f2ebff497655c024ec4d5b2ea47 (patch)
tree89badda802f35e33fa318228234593e381abffad /include/linux
parentbb9c0e0ec85aa211716bff72ae378e0c87dae4a2 (diff)
soc: qcom: hab: add habmm_socket_query support
This query API can be used by hab clients to get their virtual channels' info if necessary, eg, the local and remote vmids. Change-Id: I1293b51a1127997f493f07c0c2181423bf45d79e Signed-off-by: Yong Ding <yongding@codeaurora.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/habmm.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/include/linux/habmm.h b/include/linux/habmm.h
index 4d3a81f536d9..1c27ee4f14f7 100644
--- a/include/linux/habmm.h
+++ b/include/linux/habmm.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 2016-2017, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -35,4 +35,15 @@ int32_t habmm_import(int32_t handle, void **buff_shared, uint32_t size_bytes,
int32_t habmm_unimport(int32_t handle, uint32_t export_id, void *buff_shared,
uint32_t flags);
+struct hab_socket_info {
+ int32_t vmid_remote; /* habmm's vmid */
+ int32_t vmid_local;
+ /* name from hypervisor framework if available */
+ char vmname_remote[12];
+ char vmname_local[12];
+};
+
+int32_t habmm_socket_query(int32_t handle, struct hab_socket_info *info,
+ uint32_t flags);
+
#endif