+
+ /*
+ * We're interested in the following bits of information:
+ * Are you a memory-backed device (always yes, in this case)?
+ * Physical memory (mdPhys)?
+ * What is your base page?
+ * What is your size?
+ */
+ case DKIOCGETMEMDEVINFO:
+ if (!(mdev[devid].mdFlags & mdInited)) return (ENXIO);
+ memdev_info->mi_mdev = TRUE;
+ memdev_info->mi_phys = (mdev[devid].mdFlags & mdPhys) ? TRUE : FALSE;
+ memdev_info->mi_base = mdev[devid].mdBase;
+ memdev_info->mi_size = mdev[devid].mdSize;
+ break;
+