[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190604131935epcms5p1c4a375fca57e4df5d233fd2769a3c2be@epcms5p1>
Date: Tue, 04 Jun 2019 18:49:35 +0530
From: Vaneet Narang <v.narang@...sung.com>
To: Andrew Morton <akpm@...ux-foundation.org>,
Maninder Singh <maninder1.s@...sung.com>
CC: "herbert@...dor.apana.org.au" <herbert@...dor.apana.org.au>,
"davem@...emloft.net" <davem@...emloft.net>,
"keescook@...omium.org" <keescook@...omium.org>,
"gustavo@...eddedor.com" <gustavo@...eddedor.com>,
"joe@...ches.com" <joe@...ches.com>,
"linux-crypto@...r.kernel.org" <linux-crypto@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
AMIT SAHRAWAT <a.sahrawat@...sung.com>,
PANKAJ MISHRA <pankaj.m@...sung.com>,
Vaneet Narang <v.narang@...sung.com>
Subject: RE:(2) [PATCH 1/4] zstd: pass pointer rathen than structure to
functions
Hi Andrew,
>But struct ZSTD_CCtx_s.params is still a copied structure. Could we
>make it `const ZSTD_parameters *params'? Probably not, due to lifetime
>issues?
ZSTD maintains its own ctxt. Yes we can avoid storing pointers of other modules
because of lifetime issues. We should keep ZSTD_CCtx_s.params as structure instead of pointer.
Thanks & Regards,
Vaneet Narang
Powered by blists - more mailing lists