Commit Graph

8637 Commits

Author SHA1 Message Date
Julian Elischer
2139f5e0df Try clean up some of my original text and neaten a table.
MFC after:	1 week
2012-06-27 01:13:37 +00:00
Benjamin Kaduk
ca434adf56 Explicitly mention that setting the change and expiry times to zero is
equivalent to leaving the time unset. [1]

Wordsmith in the compat support section.

Use a full path to nologin(8) in the context of setting it as a user's shell,
keeping a separate cross-reference.

PR:		docs/169354 [1]
Approved by:	hrs (mentor)
MFC after:	3 weeks
2012-06-25 22:39:37 +00:00
Edward Tomasz Napierala
4c1ab22d15 Add missing MLINKS for whatever -> if_whatever.
Reviewed by:	brueffer
MFC after:	1 week
2012-06-25 21:33:45 +00:00
Kenneth D. Merry
c3fb2891f0 Fix a bug which causes a panic in daopen(). The panic is caused by
a da(4) instance going away while GEOM is still probing it.

In this case, the GEOM disk class instance has been created by
disk_create(), and the taste of the disk is queued in the GEOM
event queue.

While that event is queued, the da(4) instance goes away.  When the
open call comes into the da(4) driver, it dereferences the freed
(but non-NULL) peripheral pointer provided by GEOM, which results
in a panic.

The solution is to add a callback to the GEOM disk code that is
called when all of its resources are cleaned up.  This is
implemented inside GEOM by adding an optional callback that is
called when all consumers have detached from a provider, and the
provider is about to be deleted.

scsi_cd.c,
scsi_da.c:	In the register routine for the cd(4) and da(4)
		routines, acquire a reference to the CAM peripheral
		instance just before we call disk_create().

		Use the new GEOM disk d_gone() callback to register
		a callback (dadiskgonecb()/cddiskgonecb()) that
		decrements the peripheral reference count once GEOM
		has finished cleaning up its resources.

		In the cd(4) driver, clean up open and close
		behavior slightly.  GEOM makes sure we only get one
		open() and one close call, so there is no need to
		set an open flag and decrement the reference count
		if we are not the first open.

		In the cd(4) driver, use cam_periph_release_locked()
		in a couple of error scenarios to avoid extra mutex
		calls.

geom.h:		Add a new, optional, providergone callback that
		is called when a provider is about to be deleted.

geom_disk.h:	Add a new d_gone() callback to the GEOM disk
		interface.

		Bump the DISK_VERSION to version 2.  This probably
		should have been done after a couple of previous
		changes, especially the addition of the d_getattr()
		callback.

geom_disk.c:	Add a providergone callback for the disk class,
		g_disk_providergone(), that calls the user's
		d_gone() callback if it exists.

		Bump the DISK_VERSION to 2.

geom_subr.c:	In g_destroy_provider(), call the providergone
		callback if it has been provided.

		In g_new_geomf(), propagate the class's
		providergone callback to the new geom instance.

blkfront.c:	Callers of disk_create() are supposed to pass in
		DISK_VERSION, not an explicit disk API version
		number.  Update the blkfront driver to do that.

disk.9:		Update the disk(9) man page to include information
		on the new d_gone() callback, as well as the
		previously added d_getattr() callback, d_descr
		field, and HBA PCI ID fields.

MFC after:	5 days
2012-06-24 04:29:03 +00:00
Joel Dahl
d714b2c1ac Remove superfluous paragraph macro. 2012-06-23 20:44:45 +00:00
Mitsuru IWASAKI
154be29631 Add description about dev.acpi_ibm.0.handlerevents.
MFC after:	3 days
2012-06-23 18:45:32 +00:00
Sean Bruno
f89d8b9a0f Now that there is an est(4) man page, reference it here in cpufreq(4). 2012-06-20 17:26:22 +00:00
Sean Bruno
bf7f8bd30a Correct misunderstanding of hw.est.strict
Setting strict causes a validation of the requested
value vs the value currently running after a frequency
change is requested.

Change applicability to be single core not i386.

Thanks to mav@ for reviewing and commenting on my
lack of understanding.

MFC after:	2 weeks
2012-06-19 17:13:14 +00:00
Joel Dahl
b9f88e6a06 Remove end of line whitespace. 2012-06-19 05:55:14 +00:00
Joel Dahl
281858b479 Minor mdoc fixes. 2012-06-19 05:53:47 +00:00
Sean Bruno
5486d2ecee Document support for Intel Enhanced Speedstep Tech interface
of cpufreq(4) via a new man page est(4)

Document the two exposed tuneables of est(4).

I'd appreciate more reviews of content if possible.  I gleaned
the information contained herein from sys/x86/cpufreq/est.c and
the Intel reference documentation

Reviewed by:    wblock hrs gjb
MFC after:      2 weeks
2012-06-18 23:18:49 +00:00
Marius Strobl
78c3ff73c1 Document the hw.ahci.force tunable here, too, as it's also used by
ataahci(4) and atanvidia(4).

MFC after:	3 days
2012-06-18 19:14:06 +00:00
Marius Strobl
67e85209e9 Avoid hard sentence break.
MFC after:	3 days
2012-06-18 19:11:07 +00:00
Alexander V. Chernikov
36374fcf4b Make radix lookup on src and dst flow addresses optional
and configurable on per-interface basis.
Remove __inline__ for several functions being called once per
flow (e.g once per 10-20 packets on common traffic flows).
Update manual page to simplify search for BPF data link types.

Sponsored by Yandex LLC

Reviewed by:      glebius
Approved by:      ae(mentor)
MFC after:        2 weeks
2012-06-18 13:56:36 +00:00
Eitan Adler
3e5999f206 Fix mdoc style nits
PR:		kern/168910
Submitted by:	gjb
Approved by:	gjb
MFC after:	3 days
X-MFC-With:	r237178
2012-06-17 03:54:10 +00:00
Eitan Adler
f181f0e74b attach_generic causes missing devices in /dev when the driver
interacts with some non-highpoint controollers. Change attach_generic to
be off by default.

PR:		kern/168910
Submitted by:	Richard Yao <ryao@gentoo.org>
Approved by:	cperciva
No objections by:	-hackers
Obtained from:	Gentoo FreeBSD
MFC after:	2 weeks
2012-06-17 02:46:27 +00:00
Ruslan Ermilov
67a3f4b2a0 Fixed an example that set IP_ONESBCAST socket option to actually work,
and not return EINVAL.
2012-06-15 09:12:47 +00:00
Michael Tuexen
3cca425b29 Add a IP_RECVTOS socket option to receive for received UDP/IPv4
packets a cmsg of type IP_RECVTOS which contains the TOS byte.
Much like IP_RECVTTL does for TTL. This allows to implement a
protocol on top of UDP and implementing ECN.

MFC after: 3 days
2012-06-12 14:02:38 +00:00
Tom Rhodes
9de4ce048e "on the their types." -> "on their types." 2012-06-10 15:56:49 +00:00
John Baldwin
8403b19372 Several updates:
- Consistently refer to rmlocks as "read-mostly locks".
- Relate rmlocks to rwlocks rather than sx locks since they are closer to
  rwlocks.
- Add a separate paragraph on sleepable read-mostly locks contrasting them
  with "normal" read-mostly locks.
- The flag passed to rm_init_flags() to enable recursion for readers is
  RM_RECURSE, not LO_RECURSABLE.
- Fix the description for RM_RECURSE (it allows readers to recurse, not
  writers).
- Explicitly note that rm_try_rlock() honors RM_RECURSE.
- Fix some minor grammar nits.
2012-06-08 21:30:35 +00:00
Warren Block
de27bf3220 Add specific supported revision of ASUS USB-N13 ver. A1.
http://lists.freebsd.org/pipermail/freebsd-doc/2012-June/019960.html

Submitted by:	PseudoCylon (AK)
Approved by:	bcr (mentor)
MFC after:	3 days
2012-06-07 14:38:43 +00:00
Alexander Motin
f0f25b9c80 To make CAM debugging easier, compile in some debug flags (CAM_DEBUG_INFO,
CAM_DEBUG_CDB, CAM_DEBUG_PERIPH and CAM_DEBUG_PROBE) by default.
List of these flags can be modified with CAM_DEBUG_COMPILE kernel option.
CAMDEBUG kernel option still enables all possible debug, if not overriden.

Additional 50KB of kernel size is a good price for the ability to debug
problems without rebuilding the kernel. In case where size is important,
debugging can be compiled out by setting CAM_DEBUG_COMPILE option to 0.
2012-06-07 10:05:51 +00:00
David E. O'Brien
8124c91fde Add to the description and spell check. 2012-06-06 16:51:33 +00:00
John Baldwin
3d2a7480b3 Use the defined terms "readers" and "writers" to simplify some text. 2012-06-06 13:35:30 +00:00
Michael Tuexen
30852968ef The cmsg_len field includes the cmsg header. So use CMSG_LEN().
MFC after: 3 days
2012-06-05 20:48:13 +00:00
David E. O'Brien
db852c28f7 mdoc police.
Submitted by:	ru
Much thanks to:	ru
2012-06-05 20:32:38 +00:00
Joel Dahl
3fa1fde3b6 Remove end of line whitespace. 2012-06-05 17:58:47 +00:00
David E. O'Brien
568dbd8b45 RAID is an acronym. 2012-06-05 17:49:11 +00:00
Joel Dahl
d5064cc2f6 Various mdoc fixes. 2012-06-05 17:46:50 +00:00
David E. O'Brien
30a39288e4 Correct examples to the latest version I had. 2012-06-05 17:36:28 +00:00
Eitan Adler
3e0efd2ec4 Fix style nit: don't use leading zero for dates in .Dd
Prompted by:	brueffer
Approved by:	brueffer
MFC after:	3 days
2012-06-05 03:14:39 +00:00
Warren Block
00a58aed6b More wording corrections and simplifications.
Approved by:	gjb (mentor)
2012-06-05 02:18:54 +00:00
David E. O'Brien
27db57a90d Add a man page for filemon(4) [r236592]. 2012-06-04 22:59:06 +00:00
Sean Bruno
5c8d326cba Lines were a bit too long. Wrap some of them to 60 columns.
Suggested by:   bjk@
MFC after:      3 days
2012-06-04 22:46:04 +00:00
Joel Dahl
7e3de069ef mdoc: minor Bl improvements. 2012-06-02 11:03:14 +00:00
Joel Dahl
597646daac mdoc: terminate quoted string and remove unneeded paragraph macro. 2012-06-01 19:26:38 +00:00
Sean Bruno
a12015ef05 Doh! Bump the date as I touched it!
Noted by:	gjb@
MFC after:	3 days
2012-06-01 19:09:17 +00:00
Sean Bruno
ffc06c80d8 Add notes and information for exposed tuneables in bce(4).
Add source of documentation for this driver.

Thanks to Warren Block for the suggestions for readability.

Note that strict_rx_mtu in inverted in stable/7/8/9 and is
named loose_rx_mtu.  Ensure that this is converted over when MFC'd

hw.bce.rx_ticks
hw.bce.rx_ticks_int
hw.bce.rx_quick_cons_trip
hw.bce.rx_quick_cons_trip_int
hw.bce.tx_ticks
hw.bce.tx_ticks_int
hw.bce.tx_quick_cons_trip
hw.bce.tx_quick_cons_trip_int
hw.bce.strict_rx_mtu
hw.bce.hdr_split
hw.bce.tx_pages
hw.bce.rx_pages
hw.bce.tso_enable
hw.bce.verbose

Reviewed by:  Warren Block <wblock@wonkity.com>
MFC after:	3 days
2012-06-01 18:01:51 +00:00
Eitan Adler
3e2af38b96 Bump date for content missed in r236290
Submitted by:	gjb
Approved by:	cperciva (implicit)
MFC after:	3 days
X-MFC-With:	r236290
2012-05-31 07:16:50 +00:00
John Baldwin
1b5ba09fbb - Witness doesn't verify the old MTX_NOSWITCH flag's correctness (that was obsoleted
when critical sections were added).  Instead, list a check that witness does perform.
- Note that 'show locks' in DDB takes an optional thread argument.
- Document 'show all locks'.
- Remove the BUGS section, the bug in question was fixed 11 years ago in r76272.
2012-05-30 21:02:12 +00:00
Benjamin Kaduk
e98adf398d Catch up to the carp rewrite and refer to vhids instead of interfaces.
Pointy hat to:	bjk
Submitted by:	glebius
Approved by:	hrs (mentor)
2012-05-30 05:42:40 +00:00
Eitan Adler
a521695cf4 Document daily_status_security_chkportsum_enable
PR:		docs/167980
Submitted by:	"Bryan Drewery" <bryan@shatow.net>
Reported by:	rank1seeker@gmail.com
Approved by:	cperciva
MFC after:	2 weeks
2012-05-30 04:14:38 +00:00
Glen Barber
ee4e9133d4 Regen src.conf.5 after r236279.
MFC after:	3 days
2012-05-30 02:41:09 +00:00
Glen Barber
a82b501b27 Fix mdoc(7) style nits.
MFC after:	3 days
2012-05-30 02:29:47 +00:00
Kevin Lo
69e5d6b823 Hook up wbwd man page to the build. 2012-05-30 02:02:37 +00:00
Glen Barber
82f39c10fe Fix an mdoc(7) formatting nit.
MFC after:	3 days
2012-05-30 01:52:01 +00:00
Edward Tomasz Napierala
18183ca93f Fix lock interaction table for rmlocks - by default they cannot sleep,
just like rwlocks.

MFC after:	1 week
2012-05-29 14:41:16 +00:00
Warren Block
161172e59c Wording corrections and simplifications.
Approved by:	gjb (mentor)
MFC after:	3 days
2012-05-26 21:30:18 +00:00
Warren Block
344c81a166 Fixes to man8 groff mandoc style, usage mistakes, or typos.
PR:		168016
Submitted by:	Nobuyuki Koganemaru
Approved by:	gjb
MFC after:	3 days
2012-05-24 02:24:03 +00:00
Alexander V. Chernikov
6c74ff0ea6 Fix panic on attaching to non-existent interface (introduced by r233937, pointed by hrs@)
Fix panic on tcpdump being attached to interface being removed (introduced by r233937, pointed by hrs@ and adrian@)
Protect most of bpf_setf() by BPF global lock

Add several forgotten assertions (thanks to adrian@)

Document current locking model inside bpf.c
Document EVENTHANDLER(9) usage inside BPF.

Approved by:       kib(mentor)
Tested by:         gnn
MFC in:            4 weeks
2012-05-21 22:13:48 +00:00