This links to a simple tmcu-runner handler "ram.c". Feel free to grab it for another sample handler. It could use some more finishing, but it works for me, and I think it should work as is under tcmu-runner. https://github.com/DavidButterfield/SCST-Usermode-Adaptation/blob/scstu_tcmu/usermode/ram.c /* ram.c -- ramdisk driver for tcmu-runner or scstu_tcmu * * mmaps a backing file or anonymous memory and just copies to/from the mmap * for Write/Read. Flush does msync(2). Config string should be the pathname * of the backing file, or "/@" to use an anonymous mmap. * * Backing files get msync(2) at close time and persist across sessions. * Data in anonymous mmaps is discarded at close time. * Data can page to swapspace by default; mlock(2) enabled by config flag. * * XXX Notes areas in need of attention. */ -- To unsubscribe from this list: send the line "unsubscribe target-devel" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html