Commit Graph

1319 Commits

Author SHA1 Message Date
jmg
19da85af4a add m_copyup function.. This can be used to help make our ip stack less
alignment restrictive, and help performance on some ethernet cards which
currently copy the entire packet a couple bytes to get the packet aligned
properly...

Wordsmithing by:	dwhite
Obtained from:	NetBSD (code only)
I'll clean it up later:	rwatson
2005-03-17 19:34:57 +00:00
imp
8f67ba140a Clarify that the end argument meaning for rman_reserve_resource_bound
is the highest acceptable value for the ending of the resource being
allocated.  One could also believe that it is the highest starting
value of the resource.  The code definitely expects the former, but I
could find no documentation of this apart from TFSC.
2005-03-15 23:58:55 +00:00
phk
50400e94bb Mangle a manpage. 2005-03-14 15:38:34 +00:00
jmg
283c3a89b1 spell resource correctly...
MFC after:	3 days
2005-03-09 07:56:09 +00:00
hmp
b15ac85d84 Remove stale information in IMPLEMENTATION NOTES section about alq_open()
using the calling thread's ucred.

While I am there, fix references to my name.
2005-03-09 01:56:48 +00:00
hmp
028925ec3c Make note of the ktrdump(8) utility in the opening paragraph of this
manual page.

Fix indentation of code block in EXAMPLE section so the manual page
can be viewed in a 80 column window.
2005-03-08 01:37:36 +00:00
brueffer
e5de59cc35 Correct a macro name.
PR:		78171
Submitted by:	"Wojciech A. Koszek" <dunstan@freebsd.czest.pl>
MFC after:	3 days
2005-02-28 02:02:27 +00:00
brooks
e5a9c072c1 Change the definition of struct if_data's member ifi_epoch from wall
clock time to uptime because wall clock time may go backwards.

This is a change in the API which will impact SNMP agents who are using
ifi_epoch to set RFC2233's ifCounterDiscontinuityTime.  None are know to
exist today.  This will not impact applications that are using the
<index, epoch> tuple to verify interface uniqueness except that it
eliminates a race which could lead to a false assumption of uniqueness.

Because this is a behavior change, bump __FreeBSD_version.

Discussed with:	re (jhb, scottl)
MFC after:	3 days
Pointed out by:	pkh (way back at EuroBSDCon)
Pointy hat:	brooks
2005-02-25 19:46:41 +00:00
glebius
1261faa23d Fix prototype for bpf_mtap2().
MFC after:	3 days
2005-02-25 15:58:05 +00:00
brueffer
1a4f1f8da5 Connect memguard(9) to the build. 2005-02-22 17:42:12 +00:00
brueffer
fdf635c9c0 Xref memguard(9) 2005-02-22 17:20:20 +00:00
brueffer
d809284cda First cut at a manpage for the MemGuard debugging allocator.
most content from:	bmilekic
mdoc lessons by:	ru
2005-02-22 17:18:27 +00:00
pjd
43ba7c7bcf Copyright year update. 2005-02-16 22:24:15 +00:00
ru
c3757b437a Don't say that mtx_lock() will "sleep" if another kernel thread is
holding the mutex, say it will "block".  Later in this manual page
we say that sleeping while holding a mutex isn't allowed, and this
can be confusing.

Submitted by:	jhb
2005-02-15 23:52:35 +00:00
ru
136924cea4 Expand contractions. 2005-02-15 09:27:00 +00:00
ru
6b6b8c04f6 Expand contractions. 2005-02-13 23:45:54 +00:00
ru
6f67e58f8d who's -> whose 2005-02-13 23:23:30 +00:00
ru
1541af42f1 Expand *n't contractions. 2005-02-13 22:25:33 +00:00
rwatson
b9befdc94b Add a bit more caveat text about MUTEX_PROFILING -- try to avoid using it
with other profiling and debugging options, such as INVARIANTS, WITNESS,
kernel profiling, etc.  They all interfere with each other nastily and
will generate fairly useless results.
2005-02-11 15:17:57 +00:00
ru
114ea39c76 Fixed the misplaced $FreeBSD$. 2005-02-09 18:07:17 +00:00
njl
21180427d3 Update device_find_child(9) to return the first matching child if unit
is set to -1.

Reviewed by:	dfr, imp
2005-02-08 18:00:29 +00:00
iedowse
885a9694bc Add a mechanism for associating a mutex with a callout when the
callout is first initialised, using a new function callout_init_mtx().
The callout system will acquire this mutex before calling the callout
function and release it on return.

In addition, the callout system uses the mutex to avoid most of the
complications and race conditions inherent in asynchronous timer
facilities, so mutex-protected callouts have much simpler semantics.
As long as the mutex is held when invoking callout_stop() or
callout_reset(), then these functions will guarantee that the callout
will be stopped, even if softclock() had already begun to process
the callout.

Existing Giant-locked callouts will automatically pick up the new
race-free semantics. This should close a number of race conditions
in the USB code and probably other areas of the kernel too.

There should be no change in behaviour for "MP-safe" callouts; these
still need to use the techniques mentioned in timeout(9) to avoid
race conditions.
2005-02-07 02:47:33 +00:00
brueffer
6a6bfa9dfa Remove Xref to nonexistant cap.3
Ok'ed by:	rwatson
MFC after:	3 days
2005-02-05 14:16:35 +00:00
brueffer
d0d7ed3880 Xref mac_lomac.4 instead of lomac.4
MFC after:	3 days
2005-02-05 13:36:33 +00:00
jkoshy
b0f32c379f Note that functions alq_flush() and alq_post() should not be called in
contexts where sleeping is disallowed.

Pointed out by:	ru
2005-02-05 02:39:07 +00:00
pjd
03d733ba6a Improve EIO error description and mention that it can also occur while
writting.

MFC after:	3 days
2005-02-04 11:18:46 +00:00
jkoshy
a37be2d715 Bring the prototype for alq_open() in line with the code.
Add a section on locking.
2005-01-30 10:21:04 +00:00
ru
e1559d6a6e Start sentences from a capital letter.
Submitted by:	Joel Dahl
2005-01-29 20:05:07 +00:00
ru
1c19ffd486 Fixed whitespace at EOL and double word.
Uncompact enumaration to make it look better.
2005-01-28 21:18:14 +00:00
ru
85b6200242 Mark lists as in the rest of section 9 manpages. 2005-01-28 10:48:52 +00:00
ru
2e89798459 Mark lists as in the rest of section 9 manpages.
Submitted by:	Joel Dahl (mostly)
2005-01-28 10:43:05 +00:00
ru
5391cb9508 Add a few colons.
Submitted by:	Joel Dahl
2005-01-26 20:50:52 +00:00
iedowse
29a34551e1 Attempt to describe the race conditions that must be considered
when using the callout subsystem. Show how the callout_pending(),
callout_active() and callout_deactivate() macros can be used to
achieve simpler race-free callout semantics in many situations.
2005-01-23 17:42:48 +00:00
bms
40a1c8b345 Fix markup.
Submitted by:	ru
2005-01-22 21:54:29 +00:00
bms
86980c5775 Add a note about the slot number not necessarily indicating the physical
location of a PCI device in the system chassis.
Remove the note about PAE.
Update document date.
Update my email address.
Update copyright.

MFC after:	1 week
2005-01-22 21:14:46 +00:00
ru
b8a9faaaa3 Fixed punctuation in xrefs. 2005-01-21 20:48:00 +00:00
ru
3732ee2c4e Fixed xref. 2005-01-21 10:17:17 +00:00
ru
7a3e657c56 Sort sections. 2005-01-21 08:36:40 +00:00
glebius
d4d1359bb9 log(9) requires sys/syslog.h.
MFC after:	3 days
2005-01-20 10:26:42 +00:00
ru
c047ae5475 Use the standard section name. 2005-01-18 20:54:50 +00:00
ru
d2fbbfa446 The rest of manpages spell this "PSEUDOCODE". 2005-01-18 20:37:11 +00:00
brueffer
fcec19ccf2 Typo fixes.
MFC after:	3 days
2005-01-18 18:13:03 +00:00
ru
ffafa9a9bb Folded two SEE ALSO sections into one. 2005-01-18 09:13:42 +00:00
scottl
69d36fcdfb Document bus_dmamap_load_mbuf_sg() 2005-01-15 20:50:52 +00:00
ru
d26afd541d Eliminate macro calls inside literal displays. 2005-01-15 12:28:01 +00:00
ru
94126d00b4 Markup fixes. 2005-01-14 20:23:58 +00:00
ru
e7cc3fe6d8 Markup fixes. 2005-01-14 17:22:51 +00:00
ru
2d56795677 Markup and grammar fixes. 2005-01-14 10:53:55 +00:00
ru
55782966df Markup nit. 2005-01-14 10:49:09 +00:00
ru
007d29aae3 Nits. 2005-01-13 09:33:06 +00:00