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

Maurizio Lombardi mlombard at bsdbackstore.eu
Tue Oct 28 10:00:24 PDT 2025


On Tue Oct 28, 2025 at 5:32 PM CET, Bart Van Assche wrote:
> 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.

I understand your concern.
I could respin it to export the names of the active quirks
rather than the raw bitmask, if there is an interest in having
this feature.

Maurizio





More information about the Linux-nvme mailing list