From 0e24592cb32f61bb59caad30ea9acc524974c6dd Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Thu, 18 Apr 2024 15:06:22 -0400 Subject: kernel: vm: Add device pager Signed-off-by: Ian Moffett --- sys/dev/ic/nvme.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sys/dev') 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); -- cgit v1.2.3