ed
e3697d4040
Mark kern.ttys as MPSAFE.
...
sysctl now allows Giantless calls, so make kern.ttys use this. If it
needs Giant, it locks the proper TTY anyway.
2009-01-24 18:20:15 +00:00
bz
d6d77a1d4d
New sentence starts on a new line.
...
MFC after: 2 week
2009-01-24 15:56:44 +00:00
bz
28f34791a2
Update the description of the '-h' option wrt to primary addresses
...
per address family and add a reference to the ip-addresses option.
MFC after: 1 week
2009-01-24 15:53:37 +00:00
bz
d0e994cfa3
Change IP addresses/prefixes to be from "Test-Net" (IPv4 documentation
...
prefix 192.0.2.0/24) rather than from private-use networks.
MFC after: 1 week
2009-01-24 15:33:09 +00:00
rwatson
73fa22c409
Use __FBSDID() for $FreeBSD$ version strings in .c files.
...
Obtained from: TrustedBSD Project
MFC after: 3 days
2009-01-24 13:15:45 +00:00
rwatson
f6d46136a4
Begin to add SDT tracing of the MAC Framework: add policy modevent,
...
register, and unregister hooks that give access to the mac_policy_conf
for the policy.
Obtained from: TrustedBSD Project
MFC after: 3 days
2009-01-24 10:57:32 +00:00
rwatson
aaaff3620b
Add explicit static DTrace tracing to the callout mechanism, capturing
...
pointers to the callout handler just before and just after the callout
it invoked. I attempted to do this in a manner congruent to tracing in
Solaris's callout mechanism, but couldn't quite use the same names due
to convention and syntax differences.
Example DTrace script to generate a distribution graph of callout
execution times:
callout_execute:::callout_start
{
self->cstart = timestamp;
}
callout_execute:::callout_end
{
@length = quantize(timestamp - self->cstart);
}
Reviewed by: jb
MFC after: 3 days
2009-01-24 10:22:49 +00:00
trhodes
855f844ab0
When "-b" is specified, one could easily create "smaller" files
...
that are much larger than expected (given the default size).
Change "smaller files" to "split files" which is more in line
with what "-b" actually does.
PR: 119329
Submitted by: Julian Stacey <jhs@berklix.org>
2009-01-24 05:32:11 +00:00
trhodes
86a2750a15
Update the supported device list a little bit.
...
PR: 84538
Submitted by: asmodai
2009-01-24 04:08:00 +00:00
trhodes
5ac2a4f984
Add a comment on kern.ipc.maxpipekva.
...
PR: 105997
Reviewed by: keramida
2009-01-24 01:46:46 +00:00
jhb
a9601871c9
- Mark all standalone INT/LONG/QUAD sysctl's MPSAFE. This is done
...
inside the SYSCTL() macros and thus does not need to be done for
all of the nodes scattered across the source tree.
- Mark the name-cache related sysctl's (including debug.hashstat.*) MPSAFE.
- Mark vm.loadavg MPSAFE.
- Remove GIANT_REQUIRED from vmtotal() (everything in this routine already
has sufficient locking) and mark vm.vmtotal MPSAFE.
- Mark the vm.stats.(sys|vm).* sysctls MPSAFE.
2009-01-23 22:49:23 +00:00
jhb
0245a3370f
- Add conditional Giant locking around the vrele() in
...
sysctl_kern_proc_pathname().
- Mark all the kern.proc.* sysctls as MPSAFE.
Submitted by: csjp (2)
2009-01-23 22:46:45 +00:00
jhb
b6d1e3ceff
Add a flag to tag individual sysctl leaf nodes as MPSAFE and thus not
...
needing Giant.
Submitted by: csjp (an older version)
2009-01-23 22:40:35 +00:00
jhb
d94da54d95
Use shared vnode locks for fchdir().
...
Submitted by: ups
2009-01-23 22:13:30 +00:00
jhb
d7c8a44c0d
Tweak the wording for vfs_mark_atime() since the I/O it is avoiding by not
...
updating va_atime via VOP_SETATTR() isn't always synchronous. For some
filesystems it is asynchronous.
Suggested by: bde
2009-01-23 22:13:00 +00:00
jhb
4efa7c83e1
Push down Giant in the vlnru kproc main loop so that it is only acquired
...
around calls to vlrureclaim() on non-MPSAFE filesystems. Specifically,
vnlru no longer needs Giant for the common case of waking up and deciding
there is nothing for it to do.
MFC after: 2 weeks
2009-01-23 22:08:54 +00:00
trasz
e825cd3c84
Protect against NULL pointer dereference.
...
Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation
2009-01-23 21:08:00 +00:00
trasz
4c4c620921
Don't leak memory when alloc fails.
...
Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation
Found with: Coverity Prevent(tm)
CID: 2908
2009-01-23 21:06:16 +00:00
trasz
fa6d1261af
Guard against NULL pointer dereference.
...
Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation
Found with: Coverity Prevent(tm)
CID: 1847
2009-01-23 21:05:16 +00:00
trasz
384c3ce8d2
Guard against NULL pointer dereference.
...
Reviewed by: scottl
Approved by: rwatson (mentor)
Sponsored by: FreeBSD Foundation
Found with: Coverity Prevent(tm)
CID: 130
2009-01-23 21:03:59 +00:00
jhb
a622abe85f
Only start the if_slowtimo timer (which drives the if_watchdog methods of
...
network interfaces) if we have at least one interface with an if_watchdog
routine.
MFC after: 2 weeks
2009-01-23 20:53:01 +00:00
imp
5341e1c548
Sort KERNFAST and KERNCONF into the list they are in.
2009-01-23 18:35:09 +00:00
imp
92ebc7defc
Document KERNCONF and KERNFAST. Note that TARGET is usually all one
...
needs to set for cross building.
2009-01-23 18:32:31 +00:00
imp
71d7b5671d
Implement an idea from Sam Leffler:
...
make KERNFAST=blah buildkernel
is now a short cut for
make KERNCONF=blah -DKERNFAST buildkernel
This change works for all kernel config files not named "1". I did
that to make sure that
make -DKERNFAST buildkernel
remains the same as
make -DKERNFAST KERNCONF=GENERIC buildkernel
rather than trying to build and configure "1". I've never seen a
kernel config file named "1," so I think this is a good compromise.
2009-01-23 18:23:16 +00:00
sam
cdea6eebed
fix regulatory state check for all vaps' being down; it must be done
...
before calling the ic_setregdomain callback
2009-01-23 18:16:14 +00:00
sam
82ca467ce7
add defines for driver-private bits to eliminate use of constants
2009-01-23 18:15:09 +00:00
jkim
0c8574e845
- Add few VIA bridges to agp_via.c and connect it to amd64 build
...
as they support Intel Core/Core 2 and VIA Nano processors.
- Align "optional agp" in conf/files.* for consistency while I am here.
2009-01-23 17:48:18 +00:00
jhb
d2c61e641d
Use the correct type for the timeout parameter to the 32-bit
...
compat version aio_waitcomplete().
Reminded by: bz
Submitted by: jamie
MFC after: 3 days
2009-01-23 13:23:17 +00:00
trhodes
4e6bb7539b
Note the implication of setting the 'w' permission on directories,
...
while here, expand the 'naughty bits' comment in BUGS.
PR: 84265 and 84268
Reviewed by: keramida
Obtained from: hints from ceri, keramida
2009-01-23 11:39:00 +00:00
weongyo
5a0f617465
urtw(4) works also on amd64.
...
Tested by: kevlo
2009-01-23 08:18:58 +00:00
weongyo
41ad63ce16
Add urtw(4) to the list of supported network interface.
2009-01-23 05:57:40 +00:00
weongyo
5df3c85b02
Add an entry for the urtw(4) module.
2009-01-23 05:56:09 +00:00
weongyo
32badf1769
Connect urtw.4 to the build.
2009-01-23 05:53:49 +00:00
weongyo
d5e7131f75
Connect urtw(4) to the i386 build only because it's not tested on amd64
...
architecture but expect it'd work. In cases on other architectures it'd
not work yet.
2009-01-23 05:45:17 +00:00
sam
d0356507a2
fix return status handling by ar5XXXReset; this is the reason the
...
driver sometimes reports reset failed w/ status 0
2009-01-23 05:33:48 +00:00
weongyo
f5721f3a13
Add a new USB wireless driver, urtw(4) for supporting Realtek's 8187L
...
chipset.
2009-01-23 05:04:49 +00:00
keramida
c2287d6285
Add an example of using bs=2048 to duplicate data CD-ROMs.
...
This should be a bit useful for users who look at the manpage and
then try to copy data CD-ROM disks using dd. A lot of us know
that bs=2048 is required, but it still manages to cause a bit of
grief to those who haven't heard about it.
PR: bin/130857
Submitted by: Tri Brotoharsono < mail at tribrotoharsono.net >
MFC after: 3 days
2009-01-23 03:46:44 +00:00
sam
17495425fe
don't run the calibration code if scanning, we won't be on the home channel
2009-01-23 03:15:28 +00:00
trhodes
9e3e63a72b
Attaching to the init process returns EINVAL,
...
so give an example that is more likely to work.
Stolen from the ktrace(1) manual page.
PR: 128222
Submitted by: Mateusz Guzik <mjguzik@gmail.com>
2009-01-23 00:58:14 +00:00
imp
8220172455
Move to having a caps flag. Newer versions of the AT91 family don't
...
need the bouncing, so save a few copies in that case. Also convert
4-bit code selection to using it.
2009-01-23 00:51:25 +00:00
luigi
6cbadf0764
remove some useless #include,
...
document why timeconv.h is needed
MFC after: 3 days
2009-01-22 23:25:28 +00:00
imp
73288922b2
Don't over-commit the DMA. Use the passed in size of the transfer
...
rather than a fixed 512... This fixes the mount root problem on at91.
Prior to the SD card reorg, all data transfers were 512 bytes, so we
didn't notice.
2009-01-22 22:29:21 +00:00
imp
f8e69e3986
Migrate towards using at91_master_clock. Initialize the clocks for
...
the serial port class when we set the devclass since it is now
no-longer a compile time constant. Eliminate the pci include, as it
isn't relevant or necessary.
2009-01-22 21:56:41 +00:00
imp
94037e905a
Use at91_master_clock instead of AT91C_MASTER_CLOCK.
2009-01-22 21:55:37 +00:00
imp
57d525aa7f
Remove now-redundant declaration.
2009-01-22 21:55:04 +00:00
imp
e68dc65ae1
Store at91_master_clock in a global variable as opposed to a compile
...
time constant. This allows us to potentially change it at runtime or
autodetect it early in the boot (the latter being much more likely to
have a good outcome).
2009-01-22 21:54:26 +00:00
jkim
1e8881cf54
VIA Nano processor has a special MSR (CENT_HARDWARECTRL3) bit 32 to determine
...
whether TSC is P-state invariant or not. In fact, this MSR is writable but
we just leave it at the BIOS default for now.
2009-01-22 21:04:46 +00:00
jkim
a9b956502b
Include a missing header file.
...
Reported by: thompsa, "build universe"
2009-01-22 20:29:07 +00:00
jkim
ad7caec2a5
Replace couple of strcmp(cpu_vendor, "foo") with cpu_vendor_id for i386
...
and hide i386-specific code under #ifdef.
2009-01-22 17:06:33 +00:00
cognet
3959d9afa2
Add a comment explaining what ARM_KERN_DIRECTMAP is all about.
...
Suggested by: raj
2009-01-22 15:36:11 +00:00