[RFC PATCH] nvme: add HW API tags

Christoph Hellwig hch at infradead.org
Wed Nov 18 05:55:30 PST 2015


On Tue, Nov 17, 2015 at 07:08:37PM +0200, Eliezer Tamir wrote:
> HW validation would like to use parts of the real Linux driver to
> exercise the HW, instead of writing their own driver.
> 
> This is a very custom environment (not a full OS) and the code needs to
> be preprocessed for it. The hwapi tag tells our preprocessor which
> functions must be left in.
> 
> We thought that this would be less intrusive than moving the code to a
> separate file, which would force some unneeded changes to the code.

Just mark them manually when you generate your validation workload.
These functions will regularly change, so your code calling it will
change as well anyway.



More information about the Linux-nvme mailing list