diff options
| author | Caleb Sander Mateos <csander@purestorage.com> | 2026-02-27 13:23:50 -0700 |
|---|---|---|
| committer | Keith Busch <kbusch@kernel.org> | 2026-03-27 07:35:04 -0700 |
| commit | b465046c8cca9e418c7b39cfb41bb8e3b62f22f6 (patch) | |
| tree | 472bbc2e4070d760fad940ab0ee791e96c7b27b7 /scripts/stackusage | |
| parent | 823340b7e877b410a814177360df34810878e916 (diff) | |
nvme: add from0based() helper
The NVMe specifications are big fans of "0's based"/"0-based" fields for
encoding values that must be positive. The encoded value is 1 less than
the value it represents. nvmet already provides a helper to0based() for
encoding 0's based values, so add a corresponding helper to decode these
fields on the host side.
Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Caleb Sander Mateos <csander@purestorage.com>
Signed-off-by: Keith Busch <kbusch@kernel.org>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions
