lkml.org 
[lkml]   [2023]   [Jan]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] soc: apple: rtkit: Add a private pointer to apple_rtkit_shmem
From
On 21/01/2023 16.42, Asahi Lina wrote:
> 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>
> ---
> include/linux/soc/apple/rtkit.h | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/include/linux/soc/apple/rtkit.h b/include/linux/soc/apple/rtkit.h
> index 62bfa37b5adb..1a9888a1797a 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;
> };
>
> /*

Thanks, applied to asahi-soc/soc!

- Hector

\
 
 \ /
  Last update: 2023-03-27 00:03    [W:0.074 / U:0.464 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site