aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2024-04-18 15:06:22 -0400
committerIan Moffett <ian@osmora.org>2024-04-18 15:06:22 -0400
commit0e24592cb32f61bb59caad30ea9acc524974c6dd (patch)
treef229e71727d51d0a21bf9da0e7111c2376f745a7 /sys/dev/ic
parent691302ee1f22a5458c4dab3d5f85cc3de9332bb5 (diff)
kernel: vm: Add device pager
Signed-off-by: Ian Moffett <ian@osmora.org>
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/nvme.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/ic/nvme.c b/sys/dev/ic/nvme.c
index addfd66..f471627 100644
--- a/sys/dev/ic/nvme.c
+++ b/sys/dev/ic/nvme.c
@@ -410,6 +410,7 @@ nvme_init_ns(struct nvme_state *state, uint16_t nsid)
dev->read = nvme_dev_read;
dev->write = nvme_dev_write;
dev->blocksize = ns->lba_bsize;
+ dev->mmap = NULL;
ns->dev_id = device_create(dev, state->major, nsid);
snprintf(devname, sizeof(devname), "nvme0n%d", nsid);