-.\" $OpenBSD: disk.9,v 1.34 2015/11/23 17:53:57 jmc Exp $
+.\" $OpenBSD: disk.9,v 1.35 2022/09/07 05:36:59 jsg Exp $
.\" $NetBSD: disk.9,v 1.2 1996/04/08 20:41:25 jtc Exp $
.\"
.\" Copyright (c) 1995, 1996 Jason R. Thorpe.
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd $Mdocdate: November 23 2015 $
+.Dd $Mdocdate: September 7 2022 $
.Dt DISK_INIT 9
.Os
.Sh NAME
routine:
.Bd -literal
void
-fooattach(parent, self, aux)
- struct device *parent, *self;
- void *aux;
+fooattach(struct device *parent, struct device *self, void *aux)
{
struct foo_softc *sc = (struct foo_softc *)self;
[ . . . ]
sent, e.g.:
.Bd -literal
void
-foostart(sc)
- struct foo_softc *sc;
+foostart(struct foo_softc *sc)
{
[ . . . ]
zero, the number of transfers the disk has performed is incremented.
.Bd -literal
void
-foodone(xfer)
- struct foo_xfer *xfer;
+foodone(struct foo_xfer *xfer)
{
struct foo_softc = (struct foo_softc *)xfer->xf_softc;
struct buf *bp = xfer->xf_buf;