summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* No need to wrap _PATH_SYSPATH. It makes it harder to grep(1) for itsobrien2009-01-261-2/+1
| | | | value. (also unwrapping better matches existing style)
* kmod.mk includes bsd.sys.mk anyway so use CSTD instead of homegrownrdivacky2009-01-261-2/+1
| | | | | | | | 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
* Use the proper flag to let kern.ttys be executed without Giant.ed2009-01-261-1/+1
| | | | Pointed out by: jhb
* Specify analog beep pin widget for several AD codecs.mav2009-01-261-1/+8
| | | | It gives working speaker control for that systems.
* Whitespace tweak.jhb2009-01-261-1/+1
|
* Now that mtx_sleep/msleep can accept Giant as the interlock, simplify thejhb2009-01-261-19/+6
| | | | | | | CAM locking code slightly to no longer special case sleeping when a sim uses Giant for its lock. Tested by: trasz
* Change the way our softc is stored to use the devinfo facility provided by pcmnwhitehorn2009-01-264-27/+20
| | | | | | | instead of the regular device softc interface. This brings the AOA driver in line with the other pcm drivers. Requested by: ariff
* wrap all malloc/calloc/realloc calls so they exit on failureluigi2009-01-261-23/+33
| | | | | | without having to check in each place. Remove an wrong strdup from previous commit.
* The kernel may do unbalanced calls to fifo_close() for fifo vnode,kib2009-01-261-1/+4
| | | | | | | | | | | | | 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
* Add missing locking around setting the ppc interrupt handler IVAR.jhb2009-01-261-0/+2
| | | | Reported by: many
* Some implementations of getopt() expect that argv[0] is always theluigi2009-01-261-27/+42
| | | | | | | | | | | | | | | | 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
* Introduce the I2C diagnostic utility. It let's discover and inspect slaveraj2009-01-264-0/+810
| | | | | | | devices on the bus. Reviewed by: bms, stas Obtained from: Semihalf
* Teach iic(4) the 'repeated start' I2C condition. This will be used by theraj2009-01-263-1/+13
| | | | | | | upcoming i2c(8) diag utility. Reviewed by: bms, stas Obtained from: Semihalf
* Update jail startup script for multi-IPv4/v6/no-IP jails.bz2009-01-263-30/+248
| | | | | | | | | | | | | | | | | | | | | | | 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
* - Fix grammar. [1]delphij2009-01-261-3/+3
| | | | | | | | - 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]
* Fix ARCHIVE_EXTRACT_SPARSE handling in libarchive.kientzle2009-01-263-22/+305
| | | | | | | | Add a test to exercise this feature. This should fix --sparse/-S support in tar. Thanks to: Daichi GOTO MFC after: 1 week
* Better description of kern.ipc.maxpipekva.trhodes2009-01-261-6/+9
| | | | Discussed with: kib
* Somehow deleted the .4 at the end of the snd_davbus man page right beforenwhitehorn2009-01-261-1/+1
| | | | | | commit. Add it back. Pointy hat to: me
* Rewrite of MI strlen(3) in a way that can better utilize modern hardware bydelphij2009-01-251-15/+78
| | | | | | | | | 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@
* Add obsolete files after tzdata2009a and file 4.26 importsantoine2009-01-251-0/+5
|
* - bit has to be fd_mask to work properly on 64bit platforms. Constantsjeff2009-01-251-5/+6
| | | | | | must also be cast even though the result ultimately is promoted to 64bit. - Correct a loop index upper bound in selscan().
* Add support for the I2S and davbus audio controllers found in Apple PowerPCnwhitehorn2009-01-2516-8/+3174
| | | | | | hardware. Submitted by: Marco Trillo
* Fix a race condition where interrupts set up after boot could be enabled innwhitehorn2009-01-251-3/+6
| | | | | | | 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
* Revert my previous two changes.ed2009-01-251-0/+16
| | | | | | | | | | | | | | | 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
* Remove pfopen() and pfclose() entirely.ed2009-01-251-12/+0
| | | | | | 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.
* Remove unneeded checking for invalid minor numbers from pf(4).ed2009-01-251-4/+0
| | | | | | | | 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
* When a statically linked binary is executed (or at least, one withoutrwatson2009-01-251-1/+2
| | | | | | | | | | | | | | | | | | | | | 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
* Instead of killing the 'watchdog' subshell and leaving a sleep forbz2009-01-251-1/+1
| | | | | | | | | | | | | 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
* For consistency with prison_{local,remote,check}_ipN renamebz2009-01-256-12/+12
| | | | | | | prison_getipN to prison_get_ipN. Submitted by: jamie (as part of a larger patch) MFC after: 1 week
* Remove unneeded checks of device unit number from speaker(4).ed2009-01-251-18/+9
| | | | | Calls on the cdev can only be made on existing devices. This means we don't have to check the value of dev2unit().
* - Correct a typo in a comment.jeff2009-01-251-1/+1
| | | | Noticed by: danger
* - Make the keg abstraction more complete. Permit a zone to have multiplejeff2009-01-255-335/+686
| | | | | | | | | | | 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
* Remove unneeded use of device unit numbers from pty(4).ed2009-01-251-8/+5
| | | | | 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'.
* - Use __XSTRING where I want the define to be expanded. This resulted injeff2009-01-253-4/+4
| | | | | | | 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.
* If the parent up/down task was queued then sync with it before returning fromthompsa2009-01-251-0/+3
| | | | | | | | | 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.
* Fix errors introduced when I rewrote select.jeff2009-01-251-44/+96
| | | | | | | | | | | | - 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
* Remove unused unrhdr from GEOM character device module.ed2009-01-241-17/+1
| | | | | | 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.
* Mark kern.ttys as MPSAFE.ed2009-01-241-1/+1
| | | | | sysctl now allows Giantless calls, so make kern.ttys use this. If it needs Giant, it locks the proper TTY anyway.
* New sentence starts on a new line.bz2009-01-241-1/+2
| | | | MFC after: 2 week
* Update the description of the '-h' option wrt to primary addressesbz2009-01-241-4/+5
| | | | | | per address family and add a reference to the ip-addresses option. MFC after: 1 week
* Change IP addresses/prefixes to be from "Test-Net" (IPv4 documentationbz2009-01-241-7/+7
| | | | | | prefix 192.0.2.0/24) rather than from private-use networks. MFC after: 1 week
* Use __FBSDID() for $FreeBSD$ version strings in .c files.rwatson2009-01-242-4/+6
| | | | | Obtained from: TrustedBSD Project MFC after: 3 days
* Begin to add SDT tracing of the MAC Framework: add policy modevent,rwatson2009-01-241-1/+24
| | | | | | | | register, and unregister hooks that give access to the mac_policy_conf for the policy. Obtained from: TrustedBSD Project MFC after: 3 days
* Add explicit static DTrace tracing to the callout mechanism, capturingrwatson2009-01-241-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | 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
* When "-b" is specified, one could easily create "smaller" filestrhodes2009-01-241-3/+3
| | | | | | | | | 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>
* Update the supported device list a little bit.trhodes2009-01-242-4/+6
| | | | | PR: 84538 Submitted by: asmodai
* Add a comment on kern.ipc.maxpipekva.trhodes2009-01-241-1/+11
| | | | | PR: 105997 Reviewed by: keramida
* - Mark all standalone INT/LONG/QUAD sysctl's MPSAFE. This is donejhb2009-01-233-77/+79
| | | | | | | | | | 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.
* - Add conditional Giant locking around the vrele() injhb2009-01-231-33/+38
| | | | | | | sysctl_kern_proc_pathname(). - Mark all the kern.proc.* sysctls as MPSAFE. Submitted by: csjp (2)
* Add a flag to tag individual sysctl leaf nodes as MPSAFE and thus notjhb2009-01-232-4/+5
| | | | | | needing Giant. Submitted by: csjp (an older version)
OpenPOWER on IntegriCloud