diff options
author | Ian Moffett <ian@osmora.org> | 2024-03-30 20:25:11 -0400 |
---|---|---|
committer | Ian Moffett <ian@osmora.org> | 2024-03-30 20:25:11 -0400 |
commit | 14c6487648771963e7688c4d6338392e60ee0d87 (patch) | |
tree | 54f2bb93cd5d30eab2b82e7b7e8ad2d8d4631fb8 /sys/include/dev | |
parent | 6f0129f366e723e27f53c514685b454db1a787c4 (diff) |
kernel: nvme: Keep track of namespaces
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/include/dev')
-rw-r--r-- | sys/include/dev/ic/nvmevar.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/include/dev/ic/nvmevar.h b/sys/include/dev/ic/nvmevar.h index a4a5db6..d4b13e0 100644 --- a/sys/include/dev/ic/nvmevar.h +++ b/sys/include/dev/ic/nvmevar.h @@ -215,7 +215,10 @@ struct nvme_state { struct nvme_ns { size_t nsid; /* Namespace ID */ size_t lba_bsize; /* LBA block size */ + size_t size; /* Size in logical blocks */ + struct nvme_lbaf lba_fmt; /* LBA format */ struct nvme_state *cntl; /* NVMe controller */ + TAILQ_ENTRY(nvme_ns) link; }; #endif |