| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
value. (also unwrapping better matches existing style)
|
|
|
|
|
|
|
|
| |
reimplementation of the same. Note that this changes -std=c99
to -std=iso9899:1999 but those two are synonyms.
Approved by: kib (mentor)
Reviewed by: ru
|
|
|
|
| |
Pointed out by: jhb
|
|
|
|
| |
It gives working speaker control for that systems.
|
| |
|
|
|
|
|
|
|
| |
CAM locking code slightly to no longer special case sleeping when a sim
uses Giant for its lock.
Tested by: trasz
|
|
|
|
|
|
|
| |
instead of the regular device softc interface. This brings the AOA driver in
line with the other pcm drivers.
Requested by: ariff
|
|
|
|
|
|
| |
without having to check in each place.
Remove an wrong strdup from previous commit.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
without corresponding number of fifo_open(). This causes assertion
failure in fifo_close() due to vp->v_fifoinfo being NULL for kernel
with INVARIANTS, or NULL pointer dereference otherwise. In fact, we may
ignore excess calls to fifo_close() without bad consequences.
Turn KASSERT() into the return, and print warning for now.
Tested by: pho
Reviewed by: rwatson
MFC after: 2 weeks
|
|
|
|
| |
Reported by: many
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
program name, and ignore that entry. ipfw2.c code instead skips
this entry and starts with options at offset 0, relying on a more
tolerant implementation of the library.
This change fixes the issue by always passing a program name
in the first entry to getopt. The motivation for this change
is to remove a potential compatibility issue should we use
a different getopt() implementation in the future.
No functional changes.
Submitted by: Marta Carbone (parts)
MFC after: 4 weeks
|
|
|
|
|
|
|
| |
devices on the bus.
Reviewed by: bms, stas
Obtained from: Semihalf
|
|
|
|
|
|
|
| |
upcoming i2c(8) diag utility.
Reviewed by: bms, stas
Obtained from: Semihalf
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Note: this is only really necessary because of the ifconfig
logic to add/remove the jail IPs upon start/stop.
Consensus among simon and I is that the logic should
really be factored out from the startup script and put
into a proper management solution.
- We now support starting of no-IP jails.
- Remove the global jail_<jname>_netmask option as it is only
helpful to set netmasks/prefixes for the right address
family and per address.
- Implement jail_<jname>_ip options to support both
address familes with regard to ifconfig logic.
- Implement _multi<n> support suffix to the jail_<jname>_ip
option to configure additional addresses to avoid overlong,
unreadbale jail_<jname>_ip lines with lots of addresses.
Submitted by: initial work from Ruben van Staveren
Discussed on: freebsd-jail in Nov 2008.
Reviewed by: simon, ru (partial, older version)
MFC after: 1 week
|
|
|
|
|
|
|
|
| |
- Use the correct term 'long mode'. [2]
- style(9) for return value. [3]
Submitted by: Ben Kaduk <minimarmot gmail com> [1],
obrien [2], scf [3]
|
|
|
|
|
|
|
|
| |
Add a test to exercise this feature.
This should fix --sparse/-S support in tar.
Thanks to: Daichi GOTO
MFC after: 1 week
|
|
|
|
| |
Discussed with: kib
|
|
|
|
|
|
| |
commit. Add it back.
Pointy hat to: me
|
|
|
|
|
|
|
|
|
| |
reducing branches and doing word-sized operation.
The idea is taken from J.T. Conklin's x86_64 optimized version of strlen(3)
for NetBSD, and reimplemented in C by me.
Discussed on: -arch@
|
| |
|
|
|
|
|
|
| |
must also be cast even though the result ultimately is promoted
to 64bit.
- Correct a loop index upper bound in selscan().
|
|
|
|
|
|
| |
hardware.
Submitted by: Marco Trillo
|
|
|
|
|
|
|
| |
the PIC before the interrupt handler was set. If the interrupt triggered in
that window, then the interrupt vector would be disabled.
Reported by: Marco Trillo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Even though the code seems to be FreeBSD kernel code, it isn't compiled
on FreeBSD. I could have known this, because I was a little amazed that
I couldn't find a prototype of pfopen()/pfclose() somewhere else,
because it isn't marked as static.
Apart from that, removing these functions wouldn't have been harmful
anyway, because there are some other strange things about them (the
implementation isn't consistent with the prototype at the top). Still,
it's better to leave it, because it makes merging code back to older
branches a little harder.
Requested by: mlaier
|
|
|
|
|
|
| |
It turns out I was patching functions that weren't used by pf(4) anyway.
They still seem to use `struct proc *' instead of `struct thread *'.
They weren't listed in pf_cdevsw.
|
|
|
|
|
|
|
|
| |
Because it is not possible to access the pf(4) character device through
any other device node as the one in devfs, there is no need to check for
unknown device minor numbers.
Approved by: mlaier
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
an interpreter definition in its program header), set the auxiliary
ELF argument AT_BASE to 0 rather than to the address that we would
have mapped the interpreter at if there had been one.
The ELF ABI specifications appear to be ambiguous as to the desired
behavior in this situation, as they define AT_BASE as the base address
of the interpreter, but do not mention what to do if there is none.
On Solaris, AT_BASE will be set to the base address of the static
binary if there is no interpreter, and on Linux, AT_BASE is set to 0.
We go with the Linux semantics as they are of more immediate utility
and allow the early runtime environment to know that the kernel has
not mapped an interpreter, but because AT_PHDR points at the ELF
header for the running binary, it is still possible to retrieve all
required mapping information when the process starts should it be
required. Either approach would be preferable to our current behavior
of passing a pointer to an unmapped region of user memory as AT_BASE.
MFC after: 3 weeks
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
rcshutdown_timeout (normally 30s) around re-parented to init, make
sure both go away using pkill -P.
While noone normally notices this for the system shutdown, it helps for
cleanly shutting down trusted jails.
Found without a killall in the base system, which in rc.d/jail normally
ensures that all processes of a jail to be stopped will be killed.
Reviewed by: silence on current@
MFC after: 4 weeks
|
|
|
|
|
|
|
| |
prison_getipN to prison_get_ipN.
Submitted by: jamie (as part of a larger patch)
MFC after: 1 week
|
|
|
|
|
| |
Calls on the cdev can only be made on existing devices. This means we
don't have to check the value of dev2unit().
|
|
|
|
| |
Noticed by: danger
|
|
|
|
|
|
|
|
|
|
|
| |
backend kegs so it may source compatible memory from multiple backends.
This is useful for cases such as NUMA or different layouts for the same
memory type.
- Provide a new api for adding new backend kegs to secondary zones.
- Provide a new flag for adjusting the layout of zones to stagger
allocations better across cache lines.
Sponsored by: Nokia
|
|
|
|
|
| |
A much more simple approach to generate the slave device name, is to
obtain the device name of the master and replace 'p' by 't'.
|
|
|
|
|
|
|
| |
sizeof("MAXCPU") being used to calculate a string length rather than
something more reasonable such as sizeof("32"). This shouldn't have
caused any ill effect until we run on machines with 1000000 or more
cpus.
|
|
|
|
|
|
|
|
|
| |
the vap ioctl. This means that the parent interface should hopefully be up
before we return to userland, it does not depend on the parent init succeeding,
just that it was run.
This fixes wpa_supplicant with ndis and USB where the parent interfaces can be
slow to init.
|
|
|
|
|
|
|
|
|
|
|
|
| |
- Restructure selscan() and selrescan() to avoid producing extra selfps
when we have a fd in multiple sets. As described below multiple selfps
may still exist for other reasons.
- Make selrescan() tolerate multiple selfds for a given descriptor
set since sockets use two selinfos per fd. If an event on each selinfo
fires selrescan() will see the descriptor twice. This could result in
select() returning 2x the number of fds actually existing in fd sets.
Reported by: mgleason@ncftp.com
|
|
|
|
|
|
| |
Now that make_dev() doesn't require unit numbers to be unique, there is
no need to use an unrhdr here to generate the numbers. Remove the entire
init-routine, because it is optional.
|
|
|
|
|
| |
sysctl now allows Giantless calls, so make kern.ttys use this. If it
needs Giant, it locks the proper TTY anyway.
|
|
|
|
| |
MFC after: 2 week
|
|
|
|
|
|
| |
per address family and add a reference to the ip-addresses option.
MFC after: 1 week
|
|
|
|
|
|
| |
prefix 192.0.2.0/24) rather than from private-use networks.
MFC after: 1 week
|
|
|
|
|
| |
Obtained from: TrustedBSD Project
MFC after: 3 days
|
|
|
|
|
|
|
|
| |
register, and unregister hooks that give access to the mac_policy_conf
for the policy.
Obtained from: TrustedBSD Project
MFC after: 3 days
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
PR: 84538
Submitted by: asmodai
|
|
|
|
|
| |
PR: 105997
Reviewed by: keramida
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
sysctl_kern_proc_pathname().
- Mark all the kern.proc.* sysctls as MPSAFE.
Submitted by: csjp (2)
|
|
|
|
|
|
| |
needing Giant.
Submitted by: csjp (an older version)
|