[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <a170cf65-6884-3592-1de9-4c235888cc8a@intel.com>
Date: Thu, 1 Nov 2018 18:43:53 +0200
From: Alexey Skidanov <alexey.skidanov@...el.com>
To: sbates@...thlin.com, danielmentz@...gle.com,
mathieu.desnoyers@...icios.co
Cc: Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Laura Abbott <labbott@...hat.com>
Subject: lib/genalloc
Hi,
I use gen_pool_first_fit_align() as pool allocation algorithm allocating
buffers with requested alignment. But if a chunk base address is not
aligned to the requested alignment(from some reason), the returned
address is not aligned too.
The reason is the allocation algorithm works on bitmap, omitting the
base address. Is this behavior by design?
Thanks,
Alexey
Powered by blists - more mailing lists