summaryrefslogtreecommitdiffstats
path: root/include/linux/soc
diff options
context:
space:
mode:
authorAsahi Lina <lina@asahilina.net>2023-01-21 16:42:53 +0900
committerHector Martin <marcan@marcan.st>2023-01-31 20:37:43 +0900
commit4435d63f172851b57a6a0943b73a6b8055a9356f (patch)
tree801872b5fb0cbae6ab5c6fcbf52e508c5f96fc88 /include/linux/soc
parentc289d5bce8521352a596f3ad27cd6d70b9f9f821 (diff)
downloadlinux-stable-4435d63f172851b57a6a0943b73a6b8055a9356f.tar.gz
linux-stable-4435d63f172851b57a6a0943b73a6b8055a9356f.tar.bz2
linux-stable-4435d63f172851b57a6a0943b73a6b8055a9356f.zip
soc: apple: rtkit: Add a private pointer to apple_rtkit_shmem
This allows downstream consumers to keep track of private data for shmem mappings. In particular, the Rust abstraction will use this to safely drop data associated with a mapping when it is unmapped. Signed-off-by: Asahi Lina <lina@asahilina.net> Reviewed-by: Sven Peter <sven@svenpeter.dev> Reviewed-by: Eric Curtin <ecurtin@redhat.com> Signed-off-by: Hector Martin <marcan@marcan.st>
Diffstat (limited to 'include/linux/soc')
-rw-r--r--include/linux/soc/apple/rtkit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/soc/apple/rtkit.h b/include/linux/soc/apple/rtkit.h
index a2446b45ed7f..927b214ef1c6 100644
--- a/include/linux/soc/apple/rtkit.h
+++ b/include/linux/soc/apple/rtkit.h
@@ -22,6 +22,7 @@
* @size: Size of the shared memory buffer.
* @iova: Device VA of shared memory buffer.
* @is_mapped: Shared memory buffer is managed by the co-processor.
+ * @private: Private data pointer for the parent driver.
*/
struct apple_rtkit_shmem {
@@ -30,6 +31,7 @@ struct apple_rtkit_shmem {
size_t size;
dma_addr_t iova;
bool is_mapped;
+ void *private;
};
/*