--- wikisrc/users/mlelstv/disk-driver-template.mdwn 2015/12/21 10:06:17 1.1 +++ wikisrc/users/mlelstv/disk-driver-template.mdwn 2015/12/21 10:07:51 1.2 @@ -211,11 +211,13 @@ xxxdone(struct xxx_softc *sc, struct buf dk_done(dksc, bp); dk_start(dksc, NULL); } + ---- ## DK driver interface +
static int
xxx_lastclose(device_t dv)
{
@@ -248,11 +250,13 @@ xxx_discard(device_t dv, off_t pos, off_
{
// issue request to discard bytes
}
+
----
## Alternative when using a separate I/O thread
+
static void
xxxstrategy(struct buf *bp)
{