[EXTERNAL] Re: [PATCH v4 1/1] lib/dma: add control-plane APIs for inter-domain DMA transfers
Thomas Monjalon
thomas at monjalon.net
Sun Oct 19 12:05:43 CEST 2025
19/10/2025 11:40, Vamsi Krishna Attunuru:
> From: Thomas Monjalon <thomas at monjalon.net>
> >19/10/2025 10:37, Vamsi Krishna Attunuru:
> >> >I'm not sure about having different API functions for leave and destroy.
> >> >I think the last leaving should automatically call the destroy driver function.
> >>
> >> Thanks Thomas. The leave and destroy operations are invoked from
> >different contexts.
> >> Group joiners call leave to exit the group, whereas group creator
> >> calls destroy to terminate the group after all members have left.
> >
> >I understand that, but why having a different function?
> >You could destroy automatically when all have left.
> >
>
> Yes, but I think the group creator & joiner's contexts and their lifecycles may not
> be tightly coupled here. If the creator intends to maintain the group for future joiners
> or delayed cleanup, it might lead to premature termination.
>
> With destroy API, group creator will have explicit control over group termination,
> and not inferred from usage.
OK
More information about the dev
mailing list