Module Name: src Committed By: riastradh Date: Thu Nov 16 18:40:28 UTC 2017
Modified Files: src/share/man/man9: driver.9 Log Message: Use device_private, not cast, to get at softc. Someone^TM should turn this wall of prose into a nice itemized list to make it clearer. To generate a diff of this commit: cvs rdiff -u -r1.30 -r1.31 src/share/man/man9/driver.9 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/share/man/man9/driver.9 diff -u src/share/man/man9/driver.9:1.30 src/share/man/man9/driver.9:1.31 --- src/share/man/man9/driver.9:1.30 Mon Jul 3 21:28:48 2017 +++ src/share/man/man9/driver.9 Thu Nov 16 18:40:28 2017 @@ -1,4 +1,4 @@ -.\" $NetBSD: driver.9,v 1.30 2017/07/03 21:28:48 wiz Exp $ +.\" $NetBSD: driver.9,v 1.31 2017/11/16 18:40:28 riastradh Exp $ .\" .\" Copyright (c) 2001 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -234,9 +234,11 @@ is a pointer to the driver's parent devi The second argument .Fa self is a pointer to the driver's device structure. -It is also a pointer to our +The device's .Em softc -structure since the device structure is its first member. +structure can be obtained from it using the +.Xr device_private 9 +function. The third argument .Fa aux is a pointer to the attachment structure.