[PATCH] nvme-pci: expose active quirks in sysfs

Bart Van Assche bvanassche at acm.org
Tue Oct 28 09:32:55 PDT 2025


On 10/28/25 7:29 AM, Maurizio Lombardi wrote:
> Currently, there is no straightforward way for a user to inspect
> the quirks value from userspace.
> Add a new read-only sysfs attribute "quirks";
> reading this file will display the hexadecimal
> value of the ctrl->quirks bitmask for the given NVMe device.

This patch changes the constants in enum nvme_quirks from
kernel-internal constants into an ABI. I'm not sure that's what we
want.

Thanks,

Bart.



More information about the Linux-nvme mailing list