version 1.1, 2015/12/21 10:06:17
|
version 1.2, 2015/12/21 10:07:51
|
Line 211 xxxdone(struct xxx_softc *sc, struct buf
|
Line 211 xxxdone(struct xxx_softc *sc, struct buf
|
dk_done(dksc, bp); |
dk_done(dksc, bp); |
dk_start(dksc, NULL); |
dk_start(dksc, NULL); |
} |
} |
|
</code></pre> |
|
|
---- |
---- |
|
|
## DK driver interface |
## DK driver interface |
|
|
|
<pre><code> |
static int |
static int |
xxx_lastclose(device_t dv) |
xxx_lastclose(device_t dv) |
{ |
{ |
Line 248 xxx_discard(device_t dv, off_t pos, off_
|
Line 250 xxx_discard(device_t dv, off_t pos, off_
|
{ |
{ |
// issue request to discard bytes |
// issue request to discard bytes |
} |
} |
|
</code></pre> |
|
|
---- |
---- |
|
|
## Alternative when using a separate I/O thread |
## Alternative when using a separate I/O thread |
|
|
|
<pre><code> |
static void |
static void |
xxxstrategy(struct buf *bp) |
xxxstrategy(struct buf *bp) |
{ |
{ |