[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e25d2f8a-8ee9-c541-dac4-a254502df293@users.sourceforge.net>
Date: Fri, 9 Dec 2016 21:05:45 +0100
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: Joe Perches <joe@...ches.com>
Cc: linux-raid@...r.kernel.org, Shaohua Li <shli@...nel.org>,
LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: Re: md: Combine two kmalloc() calls into one in sb_equal()
> tmp1 = kmemdup(sb1, MD_SB_GENERIC_CONSTANT_WORDS * sizeof(__u32), GFP_KERNEL);
Is a function available in the Linux programming interface which would duplicate
the beginning of two array elements in a single call directly?
Regards,
Markus
Powered by blists - more mailing lists