On Wed, 11 Jul 2012, Theo de Raadt wrote:
There are quite a few pretendy-SCSI drivers in the tree, but most of them deal with fairly complicated hardware so they're not good reference points.sparc64's vdsk(4) driver is probably the best reference point, since it's also for a virtual disk driver (see sys/arch/sparc64/dev/vdsk.c).Oh yes, vdsk(4) is also a good suggestion.
ok, thanks. I will take a look at that one.