Bug 34583

Summary: DECLARE_MODULE(9) man page is broken.
Product: Documentation Reporter: Martin Faxer <redpixel>
Component: Books & ArticlesAssignee: Murray Stokely <murray>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
DECLARE_MODULE.diff none

Description Martin Faxer 2002-02-03 12:20:01 UTC
	
	The DECLARE_MODULE(9) man page has a few inaccuracies.
	It states that a pointer to a moduledata_t is to be passed, when
	in fact you're supposed to pass the structure itself, which will
	be used as &structure by the SYSINIT() macro.
	The other inaccuracy is that it states that the valid values
	for ``sub'' are kept in the sysstem_sub_id enumeration.
	First off, it's misspelled; it should be system_sub_id, secondly,
	the name has changed and it's now sysinit_sub_id.

Fix: Apply the following fix against rev 1.5 of
	/usr/src/share/man/man9/DECLARE_MODULE.9
How-To-Repeat: 	
	Read the DECLARE_MODULE(9) man page, rev 1.5.
Comment 1 Murray Stokely freebsd_committer freebsd_triage 2002-03-28 09:31:46 UTC
Responsible Changed
From-To: freebsd-doc->murray

I will take a look at this.
Comment 2 Chad David freebsd_committer freebsd_triage 2002-06-10 05:37:35 UTC
State Changed
From-To: open->closed

Closed by applying the included patch. 

Rev: 1.6 
Approved by: murray