Bug 87176

Summary: (no subject)
Product: Documentation Reporter: Devon H. O'Dell <dodell>
Component: Books & ArticlesAssignee: John Baldwin <jhb>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
device_get_softc.9.patch none

Description Devon H. O'Dell 2005-10-09 21:10:17 UTC
	The device_get_softc(9) manpage incorrectly or ambiguously specifies
	when allocation of the device's softc takes place. My interpretation
	was that it takes place on the call of device_get_softc(9). To the
	contrary, the implementation of device_get_softc simply returns the
	dev->softc field; allocation is automatically done when the device
	attaches.

How-To-Repeat: 	man 9 device_get_softc
Comment 1 John Baldwin freebsd_committer freebsd_triage 2005-10-13 17:58:02 UTC
State Changed
From-To: open->patched

Committed with some expansion.  The softc is also available during a driver's 
probe routine, but it is only persisent from probe to attach in a particular 
sitation as described in DEVICE_PROBE(9).  Thanks for the report and patch, 
will be merged to 5 and 6 in a few days. 


Comment 2 John Baldwin freebsd_committer freebsd_triage 2005-10-13 17:58:02 UTC
Responsible Changed
From-To: freebsd-doc->jhb

Committed with some expansion.  The softc is also available during a driver's 
probe routine, but it is only persisent from probe to attach in a particular 
sitation as described in DEVICE_PROBE(9).  Thanks for the report and patch, 
will be merged to 5 and 6 in a few days.
Comment 3 John Baldwin freebsd_committer freebsd_triage 2005-11-04 22:17:24 UTC
State Changed
From-To: patched->closed

Merged to 5.x and 6.x.