summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrandon Anderson <brandonand@google.com>2023-05-23 19:21:16 +0000
committerAndrew Chant <achant@google.com>2023-05-25 15:49:23 +0000
commite36e7c703be8ad3c6b15d3527fc885b79d1ca7a3 (patch)
tree7f8e2dad4de97e461061dfc909a2ceb640fb1bde
parentc7e4bc6168648e93a5183b1d5b3e1f05c029f802 (diff)
downloadtrusty-e36e7c703be8ad3c6b15d3527fc885b79d1ca7a3.tar.gz
ANDROID: add kernel doc for sched_share_state
Two recently addded fields in the structure for sched share didn't have documentation. This patch adds it to avoid warning on later kernels that recommends documentation for each field. Bug: 283996923 Change-Id: I3860b2e02f076f57fb2c1b619cc12d7fb251fc79 Signed-off-by: Brandon Anderson <brandonand@google.com> (cherry picked from commit 7bd4f91dbaac9fbd8af64330c26f441f2049c07a)
-rw-r--r--drivers/trusty/trusty-sched-share.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/trusty/trusty-sched-share.c b/drivers/trusty/trusty-sched-share.c
index 07b0d7e..9aac0a0 100644
--- a/drivers/trusty/trusty-sched-share.c
+++ b/drivers/trusty/trusty-sched-share.c
@@ -23,6 +23,13 @@
* @mem_size: size of trusty shared-memory block in bytes
* @buf_size: page-aligned size of trusty shared-memory buffer in bytes
* @num_pages: number of pages containing the allocated shared-memory buffer
+ * @is_registered: flag set to true when this driver has successfully registered
+ * the sched share memory with Trusty (and must be unregistered
+ * during cleanup). If Trusty image doesn't support sched
+ * share, this will remain false (and the memory can be reclaimed).
+ * @vm_is_shared: flag set to true when this driver has shared the sched memory
+ * with Trusty via FF-A (and must be reclaimed during cleanup
+ * after it has been unmapped by Trusty due to an unregister)
*/
struct trusty_sched_share_state {
struct device *dev;