Commit Graph

390 Commits

Author SHA1 Message Date
Andrzej Bialecki
bd3cdc3105 These patches implement dynamic sysctls. It's possible now to add
and remove sysctl oids at will during runtime - they don't rely on
linker sets. Also, the node oids can be referenced by more than
one kernel user, which means that it's possible to create partially
overlapping trees.

Add sysctl contexts to help programmers manage multiple dynamic
oids in convenient way.

Please see the manpages for detailed discussion, and example module
for typical use.

This work is based on ideas and code snippets coming from many
people, among them:  Arun Sharma, Jonathan Lemon, Doug Rabson,
Brian Feldman, Kelly Yancey, Poul-Henning Kamp and others. I'd like
to specially thank Brian Feldman for detailed review and style
fixes.

PR:		kern/16928
Reviewed by:	dfr, green, phk
2000-07-15 10:26:04 +00:00
Jeroen Ruigrok van der Werven
7bca8b217f Install accept_filter.9
Forgotten by:	alfred
2000-07-11 13:50:04 +00:00
Alfred Perlstein
ad9bccc5f7 attrib properly.
Pointed out by: asmodai
2000-07-10 19:20:08 +00:00
Alfred Perlstein
fb567cd9eb Document the kernel interface for accept filters.
Thanks to sheldonh for cleaning up the rough initial manpage.
2000-07-10 17:23:53 +00:00
Nick Hibma
fd473ea108 Correct the text for the return value.
Submitted by:	phk
2000-07-04 12:45:56 +00:00
Alexander Langer
aa3524dbd4 mdoc style cleanup: newline for new sentence.
Submitted by:	sheldonh
2000-06-20 15:05:06 +00:00
Alexander Langer
8f8b4df79a Fix typo (accessable --> accessible) and add period.
PR:		18588
Submitted by:	Anatoly Vorobey <mellon@pobox.com>
Reviewed by:	asmodai
2000-06-14 17:53:11 +00:00
Alexander Langer
505f2a7ecf Document possible values for the waitfor arg.
PR:		18627, 18628
Reviewed by:	asmodai
2000-06-12 13:53:04 +00:00
Alexander Langer
dc661e78a8 Remove XXX: Describe if_init().
Reviewed by:	asmodai
2000-06-10 10:23:06 +00:00
Alexander Langer
9092a4bca7 Add bus_alloc_resource.9 and bus_release_resource.9.
bus_release_resource.9 contains a paragraph obtained from a mail
by Warner Losh <imp@FreeBSD.org> to myself.

Reviewed by:	asmodai, hoek;  in parts by msmith, mdodd and imp
2000-06-08 21:00:12 +00:00
Jeroen Ruigrok van der Werven
7603b950ef VFS_CHECKEXP.9:
Fix typo.
	Fix description.

VFS_FHTOVP.9:
	Fix order in which the manpage says the calls should be made.

PR:		18590
Submitted by:	Anatoly Vorobey <mellon@pobox.com>
2000-06-04 15:31:12 +00:00
Doug Rabson
823234556f Add documentation for taskqueue apis. 2000-05-28 16:53:50 +00:00
Tim Vanderhoek
bca1f3c245 The LOCKPARENT flag is singular. It doesn't work causing complications
is also a singular fact.
2000-05-21 03:23:10 +00:00
Chris Costello
878f9ca614 Replace a manual.section file reference with a proper mdoc(7) .Xr
reference.

PR:		18625
Submitted by:	Alexander Langer <alex@cichlids.com>
2000-05-18 00:20:55 +00:00
Paul Richards
1c7d91744e Correct duplicate use of word "been" in a sentence. 2000-05-12 15:31:54 +00:00
Bruce Evans
1c171d7474 Abuse .Fn for macros better (don't hand-format the parameter string by
quoting it all and adding commas).

Don't say that the expression in KASSERT() is an int.  It is a collection
of tokens forming a C expression that can be compared with 0.
2000-05-11 16:54:52 +00:00
Bruce Evans
7925aadbe5 Removed bogus quoting of single tokens in a .Fn invocation. This helps
my synopsis checker decide which .Fn's are for prototypes (most function
parameters require quoting because they have multiple tokens).
2000-05-11 16:39:33 +00:00
Bruce Evans
b1f2329c99 Fixed bitrot. The changes from buf to bio had not reached here. 2000-05-11 16:25:03 +00:00
Darren Reed
08aa4ea3b8 patch from Alexey Zelkin 2000-05-11 00:44:35 +00:00
Darren Reed
e9c7bebf95 Add pfil(9) subroutines and manpage from NetBSD. 2000-05-10 13:37:51 +00:00
Sheldon Hearn
0f5fcaa3f1 Supply only one author name per instance of %A, as per mdoc.samples(7).
PR:		18465
Submitted by:	Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
2000-05-10 09:49:04 +00:00
Tim Vanderhoek
b17407bbe3 Small grammar gnit. 2000-05-09 20:35:13 +00:00
Mike Pritchard
b68d89eb4c Spelling fix: despatching -> dispatching. This makes the
spelling consistent throughout the man page.

PR:		docs/18467
Submitted by:	Alexander N. Kabaev <ak03@gte.com>
2000-05-09 18:52:26 +00:00
Mike Pritchard
9dca1aebb4 Correct a patch name and use the correct macro for displaying it.
PR:		docs/18468
Submitted by:	Anatoly Vorobey <mellon@pobox.com>
2000-05-09 18:44:34 +00:00
Matthew Hunt
0486ee6f1f Correct "it's" to "its".
PR:		18469
Submitted by:	Anatoly Vorobey <mellon@pobox.com>
2000-05-09 18:08:52 +00:00
Sheldon Hearn
f167d7fb3e Fix miscellaneous mdoc macro argument limit infringements.
PR:		18465
Reported by:	Kazu TAKAMUNE <takamune@avrl.mei.co.jp>
2000-05-09 14:02:06 +00:00
Garrett Wollman
5d5e482682 Add punctuation to make a sentence more readable. 2000-04-25 16:40:57 +00:00
Brian Feldman
2b191cdcc1 Poul-Henning's changes necessitate s/bp->b_flags/bp->b_io/bio_cmd/. 2000-04-21 01:19:53 +00:00
Brian Feldman
447bb3d818 s/of possible/if possible/ 2000-04-21 01:14:33 +00:00
Chris Costello
5135e05024 Add a .Pp between the forklist_fn typedef and the at_fork prototype. 2000-04-19 02:43:04 +00:00
Chris Costello
72090231ad Replace a literal vertical space with a .Pp macro. 2000-04-19 02:42:11 +00:00
Chris Costello
98914f5e46 Fill in a missing word (`it'). 2000-04-19 02:32:41 +00:00
Doug Rabson
4bfe86c042 Use the existing Fx macros for rendering "FreeBSD ver".
Submitted by: Sheldon Hearn <sheldonh@uunet.co.za>
2000-04-10 08:21:16 +00:00
Doug Rabson
c685012659 Add manpage for kernel object system. 2000-04-08 13:24:40 +00:00
Chris Costello
2b66e5a322 - Add HPFS and NWFS vnode tags.
- Update ``struct vnode'' changes from revisions 1.91, 1.94, 1.98, 1.101,
  1.102.

Reviewed by:	alfred
2000-04-02 23:53:57 +00:00
Jeroen Ruigrok van der Werven
42a3fc35e6 Add and install BUS_SETUP_INTR.9.
This effectively replaces BUS_CREATE_INTR.9 and BUS_CONNECT_INTR.9.

Reviewed by:	n_hibma
2000-04-02 12:00:52 +00:00
Jeroen Ruigrok van der Werven
03be717064 Get rid of the manpages for BUS_CREATE_INTR() and BUS_CONNECT_INTR().
These got replaced by BUS_SETUP_INTR().

This once again illustrates an API change without informing -doc, so
that these sort post cleanup actions could've been avoided.

And then people wonder why the docs suck so much at times.

Reviewed by:	peter
2000-04-02 09:25:15 +00:00
Jeroen Ruigrok van der Werven
b25cda8a80 Remove spurious .Fc which caused this manpage to be closed
prematurely.
2000-04-01 20:31:07 +00:00
Mike Pritchard
d905b0b639 Minor style fixes: freebsd.org -> FreeBSD.org 2000-03-24 01:49:46 +00:00
Bruce Evans
25435b71b6 Fixed bitrot in synopsis (the third arg of vsunlock went away). 2000-03-23 14:33:14 +00:00
Jeroen Ruigrok van der Werven
8abb3721a5 Remove trailing comma. 2000-03-21 17:34:56 +00:00
Jeroen Ruigrok van der Werven
5cba0139b0 As bde was kind to point out:
"Man pages shouldn't refer to higher level interfaces
built using the interfaces in the man pages."

Submitted by:	bde
2000-03-21 16:38:19 +00:00
Jeroen Ruigrok van der Werven
dc027c46a6 Fix lameness I introduced by typing the Xr as a filename, sigh. 2000-03-21 13:46:57 +00:00
Jeroen Ruigrok van der Werven
25216c5cfb Fix EXAMPLE -> EXAMPLES.
Add Xr's for SPLASSERT and CONDSPLASSERT.
2000-03-21 13:21:36 +00:00
Jeroen Ruigrok van der Werven
eb2630afaf Assorted bag o' fixes:
fix Jonathan's name, fix copyright date, man -> manual,
	add const before char *msg, add email address.
2000-03-21 13:18:40 +00:00
Bruce Evans
084f33c228 Actually install KASSERT.9. 2000-03-20 20:23:43 +00:00
Brian Feldman
7e1a7176c3 Both:
Get rid of the "char *" before level which made no sense.  Change
  "char *msg" to the properly const-unpoisoned one.

Just SPLASSERT.9:
  Add an Xref to CONDSPLASSERT(9).  Change the function name "rtredirect"
  to the correct "rtalloc".
2000-03-20 14:44:42 +00:00
Jeroen Ruigrok van der Werven
30280e3601 Fix some mdoc nits.
.Fd - > .Cd
EXAMPLE - > EXAMPLES
man page -> manual page

Submitted by:	large part by sheldonh
2000-03-20 12:29:59 +00:00
Jeroen Ruigrok van der Werven
338c4376cf Fix typo. 2000-03-19 16:52:59 +00:00
Jeroen Ruigrok van der Werven
cd8b737d3c Trim trailing whitespace. 2000-03-19 15:55:38 +00:00
Jeroen Ruigrok van der Werven
6a6a8532b0 Document the sysctl knob for setting the severity of the SPLASSERT
macros.

Reviewed by:	ps
2000-03-19 15:47:33 +00:00
Jeroen Ruigrok van der Werven
0a8c1cdc73 Spell Jonathan's name correctly in the copyright. Which is funny,
considering the fact he wrote it himself. =)

Also add his email address in the AUTHORS section.
2000-03-19 14:46:56 +00:00
Jeroen Ruigrok van der Werven
2e6b4dc303 Add the manpage for CONDSPLASSERT().
This was based upon the manpage written by jmb for SPLASSERT().
2000-03-19 14:43:03 +00:00
Jeroen Ruigrok van der Werven
5eca43faa9 After about two months I am the first to notice that SPLASERT.9 never
got installed.

Also, correct the copyright to a more realistic date (1996->2000).
Fix some wordings and omissions.
2000-03-18 21:51:16 +00:00
Chris Costello
bd79f8422f Be consistent with struct vattr' naming. Half of this manual used vpp'
while the other half used `vap', and in one case resulted in code that
made no sense.  Replaced all of them with `vap'.

(Typically, `vpp' is a pointer to a pointer to a struct vnode anyway).
2000-03-16 22:40:38 +00:00
Sheldon Hearn
1111b49c35 Remove single-space hard sentence breaks. These degrade the quality
of the typeset output, tend to make diffs harder to read and provide
bad examples for new-comers to mdoc.
2000-03-03 14:05:08 +00:00
Sheldon Hearn
4e86fcacf6 Remove more single-space hard sentence breaks. 2000-03-02 14:54:02 +00:00
Jason Evans
9102cbc957 Fix a typo (simple --> simply). 2000-02-16 22:45:51 +00:00
Robert Watson
ca7d2b82e1 Fix man page structures/constants to match recent changes in acl.h
Fix a few more namespace messes and whitespace curiosities in acl.h
Fix comments in acl.h
Clean up some function prototypes from acl.h that won't be committed
    before the code freeze.

Some of this kindly pointed out by: the ever patient bde
2000-01-28 15:22:51 +00:00
Jonathan M. Bresler
c5395b92eb Add SPLASSERT.9 man page. SPLASSERT() commit to follow immediately.
Approved by: jkh
2000-01-16 02:08:37 +00:00
Peter Wemm
3c2c970655 Don't mix up KNF and style(9). This isn't KNF, it's a derivative of it. 2000-01-15 16:34:07 +00:00
Jonathan M. Bresler
6fc639dcd1 Document the KASSERT() macro. 2000-01-14 21:41:09 +00:00
Alexey Zelkin
ae5ccfad91 Add new manpages for:
microtime(9)
	nanotime(9)
	getmicrotime(9)
	getnanotime(9)
	microuptime(9)
	nanouptime(9)
	getmicrouptime(9)
	getnanouptime(9)
	tvtohz(9)

Based on PR:	docs/15889
Submitted by:	Kelly Yancey <kbyanc@posi.net>
2000-01-07 12:42:59 +00:00
Alexey Zelkin
db7b63631a Place #include's and $NetBSD$ tag to appropriate places. 2000-01-07 12:14:55 +00:00
Robert Watson
32900e82f3 Man pages for the VFS extended attribute and access control list vnops.
Reviewed by:	eivind
2000-01-05 04:59:02 +00:00
Bruce Evans
20c4d417bc Fixed some bugs (one serious one: timeouts were claimed to be executed at
spl0) and some bitrot (the not-so-new callout_init/stop/reset functions
were not mentioned; the callout_activate/deactivate/pending macros are
still not mentioned).

Submitted by:	mostly by jlemon
1999-12-27 16:22:20 +00:00
Bruce Evans
c1ab0cfd47 Fixed bitrot in synopsis. The prototype for panic() was moved to
<sys/param.h>, but the #includes weren't adjusted here.
1999-12-23 17:42:10 +00:00
Bruce Evans
31f698b8ca Fixed wrong function types (the device_add_child() family returns a
device_t, not an int).
1999-12-23 17:39:45 +00:00
Bruce Evans
9961a6adff Removed unused include of <sys/buf.h> from synopsis. This include is
needed to access the internals of buffers but not necessarily to use
the VOP.  <sys/buf.h> recently grew a bogus dependency on <sys/systm.h>
for the declaration of spl*, and I prefer to fix the synopsis breakage
by removing a wart instead of adding one.
1999-12-23 17:35:48 +00:00
Bruce Evans
6ee16659ac Fixed bitrot in synopsis. The prototype for VOP_ISLOCKED() changed
recently, except of course in the documentation.  Other parts of this
man page are several years out of date.
1999-12-23 17:28:46 +00:00
Bruce Evans
f644d0654b Fixed missing #includes in synopsis. 1999-12-23 17:24:40 +00:00
Bruce Evans
5770fb1361 Fixed bitrot in synopsis. Important interface changes hadn't reached here. 1999-12-23 17:22:58 +00:00
Bruce Evans
bd00dbfafc "Fixed" assorted bitrot. remove_dev() was renamed to destroy_dev().
VOP_ABORTOP() went away.  at_shutdown() was replaced by undocumented
event handling.  Rename remove_dev() here too, and remove the dead
and dead wrong man pages.
1999-12-23 17:16:32 +00:00
Eivind Eklund
4dc39f110c Correct the documentation of LOCKPARENT - it does not reliably result in the
parent being locked, but rather plays some hide and seek (does not lock if
dvp == vp).

Also add a BUGS section noting that this is undesired behaviour.
1999-12-18 20:50:48 +00:00
Eivind Eklund
9a8fa3c19f Document NDFREE w/flags, and fix up the description of NOFOLLOW. 1999-12-16 23:20:11 +00:00
David E. O'Brien
b7c42f7dde * State in words that "#define^IMACRO" is proper, as it is hard to tell
from the example.
* Embelish the usage() example to show how uppercase options are sorted.

Taken from previous bdelinting.
1999-12-16 10:02:20 +00:00
Alfred Perlstein
1e12157c61 explain that ioflags can be used to give read-ahead hints to the underlying
filesystem.
1999-12-13 02:28:53 +00:00
Kenneth D. Merry
86b2c8466d Revamp the devstat priority system. All disks now have the same priority.
The same goes for CD drivers and tape drivers.  In systems with mixed IDE
and SCSI, devices in the same priority class will be sorted in attach
order.

Also, the 'CCD' priority is now the 'ARRAY' priority, and a number of
drivers have been modified to use that priority.

This includes the necessary changes to all drivers, except the ATA drivers.
Soren will modify those separately.

This does not include and does not require any change in the devstat
version number, since no known userland applications use the priority
enumerations.

Reviewed by:	msmith, sos, phk, jlemon, mjacob, bde
1999-12-08 04:45:23 +00:00
Matthew N. Dodd
238ebf9958 Remove mention of 'ivars'. 1999-12-03 11:22:28 +00:00
Nick Hibma
fa930a7361 Add the device_get_children(9) man page. 1999-12-02 16:34:09 +00:00
Nick Hibma
2d876113a8 It's device_add_child*, not bus_add_child*. 1999-12-02 16:31:12 +00:00
John Polstra
907b750c0c The rt_refcnt member is a long now. 1999-11-22 04:26:00 +00:00
Poul-Henning Kamp
93efcae809 The at_exit and at_fork functions currently use a 'roll your own'
linked list to store the callbak routines.  The patch converts the
lists to queue(3) TAILQs, making the code slightly clearer and ensuring
that callbacks are executed in FIFO order.

Man page also updated as necesary.

(discontinued use of M_TEMP malloc type while here anyway /phk)

Submitted by:   Jake Burkholder jake@checker.org
PR:             14912
1999-11-19 21:29:03 +00:00
Eivind Eklund
b04b572b08 Document changed calling conventions (lost WILLRELE) for VOP_MKNOD and
VOP_SYMLINK.
1999-11-13 21:00:26 +00:00
Joerg Wunsch
93c6e868e8 Move the description of the traditional sleep() form out into the history
section, we no longer have it.

Fix mdoc style violations caused by a previous committer.
1999-11-03 10:39:54 +00:00
Alexey Zelkin
e1e5fdf6d4 mdoc(7)'fy 1999-10-30 15:12:25 +00:00
Alexey Zelkin
a169de1e31 mdoc(7)'fy, fix broken FreeBSD release number (3.0.1 -> 3.1) 1999-10-30 14:15:49 +00:00
Poul-Henning Kamp
02c58685a4 Change useracc() and kernacc() to use VM_PROT_{READ|WRITE|EXECUTE} for the
"rw" argument, rather than hijacking B_{READ|WRITE}.

Fix two bugs (physio & cam) resulting by the confusion caused by this.

Submitted by:   Tor.Egge@fast.no
Reviewed by:    alc, ken (partly)
1999-10-30 06:32:05 +00:00
Chris Piazza
20d8fa6f36 Revert previous change, I misread it as an if( when it really
wasn't.
1999-10-10 09:28:14 +00:00
Chris Piazza
133dba33b6 Add the missing ')' in
(p = f()) == NULL
1999-10-09 23:12:57 +00:00
Matthew Dillon
cc4a02e299 Bring kernel malloc documentation up to date, including the example.
PR:	docs/10059
1999-09-29 16:49:18 +00:00
Chris Costello
94b1839d20 Document the make_dev(9) and remove_dev(9) facilities.
remove_dev(9) is created as a link to the existing make_dev(9) page.

Reviewed by:	phk
1999-09-25 20:12:01 +00:00
Matthew Dillon
87b0140cdf mdoc style cleanup
Submitted by:	  Mike Pritchard <mpp@FreeBSD.ORG>
1999-09-25 17:21:21 +00:00
Chris Costello
2baad6b54c Remove a useless new line. 1999-09-25 16:11:09 +00:00
Chris Costello
2da64d5dd7 Document the devtoname(9) kernel interface. 1999-09-25 15:58:33 +00:00
Matthew Dillon
37af288330 More locking clarifications. Add skeleton manual page for VOP_LEASE 1999-09-24 17:11:02 +00:00
Matthew Dillon
fb3fd47611 More synchronization of the VOP documentation to the real world. 1999-09-24 13:58:55 +00:00
Matthew Dillon
bebac989cc More clarification of locking requirements. 1999-09-24 10:42:45 +00:00
Matthew Dillon
065aee8253 Bring more VOP manual pages up to date in regards to locking
requirements.
1999-09-24 10:19:43 +00:00
Matthew Dillon
fe11eb74af Update errors in documentation for various VOP_ calls. Specifically,
describe the correct locking state expected on entry and return.
1999-09-24 07:07:02 +00:00
Alexey Zelkin
0dc03e0114 Add to .Nm devstat_end_transaction_buf().
Do some ordering.

Noticed by: ken
1999-09-23 13:31:15 +00:00
Poul-Henning Kamp
04a2253821 Document the new free/erase transaction type.
Reminded about by:	ken
1999-09-22 20:27:21 +00:00
Alexey Zelkin
fe27e01fac Synchronization NAME section with SYNOPSIS. 1999-09-21 19:18:09 +00:00
Poul-Henning Kamp
bd9e52dcc4 document devstat_end_transaction_buf() 1999-09-18 21:31:19 +00:00
Ruslan Ermilov
c931dae17f Adjust descriptions for if_up() and if_down().
Reviewed by:	wollman
1999-09-14 01:05:40 +00:00
Doug Rabson
57129f42d5 Add new manpage device_set_flags.9 and add links for
device_set_desc_copy.9 and device_get_flags.9.
1999-09-12 16:01:11 +00:00
Alfred Perlstein
2f42dfd0a2 vnode -> mountpoint
reference vfs_check_export
change license to my own, (ok'd by dfr) and remove advert clause.
remove extra Id tags and emacs cruft, this should be a fresh file.
1999-09-11 21:00:03 +00:00
Chris Costello
7ad5ee3757 Add a link for uiomove.9 to uio.9 1999-09-11 15:39:31 +00:00
Alfred Perlstein
fb6d83aa60 Document VFS changes:
VFS_CHECKEXP.9, now used to check export credentials
VFS_FHTOVP.9, only used for filehandle to vnode, no access checks are done.
VFS.9, inform people of the vfs_std* functions available to avoid
       ugly casts to eopnotsup and making of dummy functions to return 0.
1999-09-11 00:57:20 +00:00
Doug Rabson
b99b8460af Add device_set_desc_copy(9). 1999-09-06 15:13:09 +00:00
Alexey Zelkin
0d28dd1dc5 Replace stale references to device_add_child_after(9) with
device_child_add_ordered(9)

PR:		13210
Submitted by:	Alexey Zelkin <phantom@cris.net>
Reviewed by:	mpp
Forgotten by:	dfr
1999-09-04 12:37:21 +00:00
Peter Wemm
7f3dea244c $Id$ -> $FreeBSD$ 1999-08-28 00:22:10 +00:00
Chris Costello
340b8cda25 Bad ref time(2) changed to time(3) 1999-08-16 22:11:19 +00:00
Mike Pritchard
ac23fd2044 Remove a self-referencing xref in the SEE ALSO section. 1999-08-15 13:47:08 +00:00
Mike Pritchard
def37e7c68 Various man page cleanup:
- Sort xrefs
- FreeBSD.ORG -> FreeBSD.org
- Be consistent with section names as outlined in mdoc(7).
- Other misc mdoc cleanup.

PR:		doc/13144
Submitted by:	Alexey M. Zelkin <phantom@cris.net>
1999-08-15 10:48:36 +00:00
Tim Vanderhoek
0983f2b022 English fixes: consistent spacing after periods, "userland", not "user land",
other typos, ~four grammar gnits, an ironic case of incorrect
               parallelization, bad capitalization, an incorrect use of the
               infamous slash ('/'), and an unclear sentence.
1999-08-02 04:00:33 +00:00
Tim Vanderhoek
4ac29fd62e Bruce noted that the use of err(), fixed to errx() in the last commit,
did not specify an exit code.  This implies the use of either a hand-
rolled err() (Bruce's suggestion) or a random error code (my suggestion),
both of which are against the style guidelines.  This commit specifies
the correct error code (implicitly).  This also changes the error message
to be a little more helpful.
1999-08-02 03:18:17 +00:00
Tim Vanderhoek
b787fc933a Use errx() instead of err() in example code calling err() after strtol(). 1999-07-31 15:04:37 +00:00
Matthew N. Dodd
15317dd875 Alter the behavior of sys/kern/subr_bus.c:device_print_child()
- device_print_child() either lets the BUS_PRINT_CHILD
	  method produce the entire device announcement message or
	  it prints "foo0: not found\n"

Alter sys/kern/subr_bus.c:bus_generic_print_child() to take on
the previous behavior of device_print_child() (printing the
"foo0: <FooDevice 1.1>" bit of the announce message.)

Provide bus_print_child_header() and bus_print_child_footer()
to actually print the output for bus_generic_print_child().
These functions should be used whenever possible (unless you can
just use bus_generic_print_child())

The BUS_PRINT_CHILD method now returns int instead of void.

Modify everything else that defines or uses a BUS_PRINT_CHILD
method to comply with the above changes.

	- Devices are 'on' a bus, not 'at' it.
	- If a custom BUS_PRINT_CHILD method does the same thing
	  as bus_generic_print_child(), use bus_generic_print_child()
	- Use device_get_nameunit() instead of both
	  device_get_name() and device_get_unit()
	- All BUS_PRINT_CHILD methods return the number of
	  characters output.

Reviewed by: dfr, peter
1999-07-29 01:03:04 +00:00
Nik Clayton
5bf6ab8369 Add $Id$, to make it simpler for members of the translation teams to
track.

The $Id$ line is normally at the bottom of the main comment block in the
man page, separated from the rest of the manpage by an empty comment,
like so;

     .\"    $Id$
     .\"

If the immediately preceding comment is a @(#) format ID marker than the
the $Id$ will line up underneath it with no intervening blank lines.
Otherwise, an additional blank line is inserted.

Approved by:            bde
1999-07-12 21:02:10 +00:00
Kris Kennaway
d30b1794da Flesh out VOP_ADVLOCK.9 with a description of the available flags
Sync vnode.9 with the definitions in <sys/vnode.h>

Reviewed by:	Doug Rabson
1999-06-30 12:02:52 +00:00
Mike Pritchard
5d70612b3f Fix some typos and do some minor mdoc cleanup. 1999-06-27 02:38:46 +00:00
Nick Hibma
6dcd4819f1 Add man page for device_quiet and friends 1999-06-22 18:09:54 +00:00
Tim Vanderhoek
3c218dea5c typo: Adviseroty -> Advisory 1999-06-22 02:34:47 +00:00
Nick Hibma
6979450036 Update the comments on values than can be returned by DEVICE_PROBE.
DEVICE_PROBE can return priorities.

Reviewed by:	Doug Rabson <dfr@nlsystems.com>
1999-06-17 19:22:12 +00:00
Bruce Evans
20891aba11 Fixed bitrot in synopsis (a missing include). 1999-06-02 16:33:22 +00:00
Nik Clayton
0bf3e334e5 Description of LOCKLEAF said "inode" when it should have said "vnode".
PR:             docs/11596
Submitted by:   Robert Watson <robert@fledge.watson.org>
1999-05-29 13:00:40 +00:00
Doug Rabson
86238261ee Document device_add_child_ordered(). 1999-05-28 09:38:25 +00:00
Michael Haro
476702b3c4 s/file it possible/file if possible/ 1999-05-11 01:19:34 +00:00
Poul-Henning Kamp
75c1354190 This Implements the mumbled about "Jail" feature.
This is a seriously beefed up chroot kind of thing.  The process
is jailed along the same lines as a chroot does it, but with
additional tough restrictions imposed on what the superuser can do.

For all I know, it is safe to hand over the root bit inside a
prison to the customer living in that prison, this is what
it was developed for in fact:  "real virtual servers".

Each prison has an ip number associated with it, which all IP
communications will be coerced to use and each prison has its own
hostname.

Needless to say, you need more RAM this way, but the advantage is
that each customer can run their own particular version of apache
and not stomp on the toes of their neighbors.

It generally does what one would expect, but setting up a jail
still takes a little knowledge.

A few notes:

   I have no scripts for setting up a jail, don't ask me for them.

   The IP number should be an alias on one of the interfaces.

   mount a /proc in each jail, it will make ps more useable.

   /proc/<pid>/status tells the hostname of the prison for
   jailed processes.

   Quotas are only sensible if you have a mountpoint per prison.

   There are no privisions for stopping resource-hogging.

   Some "#ifdef INET" and similar may be missing (send patches!)

If somebody wants to take it from here and develop it into
more of a "virtual machine" they should be most welcome!

Tools, comments, patches & documentation most welcome.

Have fun...

Sponsored by:   http://www.rndassociates.com/
Run for almost a year by:       http://www.servetheweb.com/
1999-04-28 11:38:52 +00:00
Bruce Evans
7784aabe43 Fixed bitrot in synopsis. 1999-03-26 02:11:59 +00:00
Guy Helmer
2112898830 Document the flags and p parameters to VOP_LOCK and VOP_UNLOCK. Also,
at Doug Rabson's suggestion, add vn_lock(9) as an alternative name for
this manpage and note its calling convention.

PR:		docs/9338
1999-03-17 20:17:32 +00:00
Bruce Evans
ec1b10869b Removed old scsi section 9 man pages. Only cd.9 has been converted to
cam.  scsiconf.9, sd.9, and st.9 can now be found in the Attic.

Reviewed by:	ken
1999-03-06 19:03:31 +00:00
Bruce Evans
2f02d39302 Fixed bitrot in synopsis (devfs_link was renamed to devfs_makelink).
Didn't fix bitrot in this page's name; just install a link.
1999-03-06 17:37:20 +00:00
Bruce Evans
5ad5ff52b2 Fixed wrong function prototype(s) in synopsis. 1999-03-06 17:25:50 +00:00
Bruce Evans
522e56cf6d Fixed bitrot in synopsis (u_long changed to uintptr_t for portability). 1999-03-06 17:21:14 +00:00
Bruce Evans
3b00e9bd92 Fixed C syntax error in synopsis. 1999-03-06 17:14:24 +00:00
Bruce Evans
399eae0d05 Fixed bitrot in synopsis (const poisoning hadn't reached here). 1999-03-06 17:10:15 +00:00
Bruce Evans
6232b00ed1 Fixed missing headers in synopsis. 1999-03-06 17:07:29 +00:00
Bruce Evans
95fd910edc Fixed bitrot in synopsis (fuword() and suword() changed to support alpha). 1999-03-06 17:04:18 +00:00
Matthew Dillon
c20b4df657 Clarify more of what VOP_LINK expects. 1999-02-13 07:56:49 +00:00
Matthew Dillon
3ac84fed2e Update man page - directory vnode should not be unlocked or released
by the VOP routine.  The caller does it.
1999-02-13 07:44:14 +00:00
Alexander Langer
43d1df332e Removed occurrences of consecutive repeated words (such as "the the"). 1999-02-12 02:12:08 +00:00
Kenneth D. Merry
2a888f938e Add a prioritization field to the devstat_add_entry() call so that
peripheral drivers can determine where in the devstat(9) list they are
inserted.

This requires recompilation of libdevstat, systat, vmstat, rpc.rstatd, and
any ports that depend on the devstat code, since the size of the devstat
structure has changed.  The devstat version number has been incremented as
well to reflect the change.

This sorts devices in the devstat list in "more interesting" to "less
interesting" order.  So, for instance, da devices are now more important
than floppy drives, and so will appear before floppy drives in the default
output from systat, iostat, vmstat, etc.

The order of devices is, for now, kept in a central table in devicestat.h.
If individual drivers were able to make a meaningful decision on what
priority they should be at attach time, we could consider splitting the
priority information out into the various drivers.  For now, though, they
have no way of knowing that, so it's easier to put them in an easy to find
table.

Also, move the checkversion() call in vmstat(8) to a more logical place.

Thanks to Bruce and David O'Brien for suggestions, for reviewing this, and
for putting up with the long time it has taken me to commit it.  Bruce did
object somewhat to the central priority table (he would rather the
priorities be distributed in each driver), so his objection is duly noted
here.

Reviewed by:	bde, obrien
1999-02-10 00:04:13 +00:00
Mike Pritchard
a04dd7481b Fix some spelling errors. 1999-02-01 22:55:54 +00:00
Nicolas Souchu
88ec80ed82 ppbconf.9 removed 1999-01-30 15:33:20 +00:00
Nicolas Souchu
06fc25611a Improve ppbus(4) microsequencer description. Remove ppbconf.9 which is
to rapidly depreciated.
1999-01-30 15:32:41 +00:00
Julian Elischer
2755f9f602 Slightly relax the requirements fro removing extra braces and parenthesis.
Objected to by: bde
1999-01-30 04:17:14 +00:00
David E. O'Brien
bc6b8d1239 Add MLINKS for devstat kernel interfaces. 1999-01-09 05:09:21 +00:00
Matthew Dillon
557d5a1caa M_AWAIT changed to M_ASLEEP 1998-12-23 01:06:57 +00:00