]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Rework logpage extensibility.
authorimp <imp@FreeBSD.org>
Fri, 22 Feb 2019 15:15:36 +0000 (15:15 +0000)
committerimp <imp@FreeBSD.org>
Fri, 22 Feb 2019 15:15:36 +0000 (15:15 +0000)
commit90eaca25c12a69cc4efe6570818e52e6691c6660
treebe751788d234b551fa708da07e1ac8ed2c4d45ec
parentb9af2aaaa30720e40246db8b0ab3d9996688e9d6
Rework logpage extensibility.

Move from using a linker set to a constructor function that's
called. This simplifies the code and is slightly more obvious.  We now
keep a list of page decoders rather than having an array we managed
before. Commands will move to something similar in the future.

Reviewed by: jhb@
Differential Revision: https://reviews.freebsd.org/D19275
sbin/nvmecontrol/logpage.c
sbin/nvmecontrol/nvmecontrol.c
sbin/nvmecontrol/nvmecontrol.h