summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Check return value of g_call_me()phk2003-03-271-4/+5
|
* o netisr_queue() returns 1 on success and 0 on failure,maxim2003-03-271-1/+1
| | | | | | fix a typo (?) in rev. 1.90. PR: kern/50163
* Deregister the dev_clone event handler we registered - don't touch thetjr2003-03-272-4/+8
| | | | handlers installed by other devices.
* o Add -u <username> flag to jail(8): set user context before exec.maxim2003-03-273-12/+84
| | | | | | | PR: bin/44320 Submitted by: Mike Matsnev <mike@po.cs.msu.su> Reviewed by: -current MFC after: 6 weeks
* o Fix a comment.maxim2003-03-272-5/+1
| | | | | | | | o GC an unused macro. PR: kern/49083 Submitted by: Bjoern A. Zeeb <bzeeb+freebsd@zabbadoz.net> Not objected by: rwatson
* Biofinish the request if we cannot malloc in ad_start.sos2003-03-271-3/+4
|
* Allocate the toplevel indir with M_WAITOK to avoid complicating thingsphk2003-03-271-2/+6
| | | | | | needlessly. Detected by: rwatsons EvilMalloc(9)
* Change DEFMX to 0. This removes the size limit for print jobs by default.eivind2003-03-272-3/+4
| | | | Discussed with: gad (now), arch (a year ago)
* Catch up with recent events.mdodd2003-03-271-3/+1
|
* Add missing COMPAT_ISA_DRIVER().mdodd2003-03-271-0/+1
| | | | Oops.
* Write negative zero as '-0.0'. Otherwise, it is parsed as an integerdas2003-03-271-2/+2
| | | | before being cast to a floating point type, and the sign is lost.
* Handle the fictitious pages created by the device pager. For fictitiousjake2003-03-273-22/+61
| | | | | | | | | | pages which represent actual physical memory we must strip off the fake page in order to allow illegal aliases to be detected. Otherwise we map uncacheable in the virtual and physical caches and set the side effect bit, as is required for mapping device memory. This fixes gstat on sparc64, which wants to mmap kernel memory through a character device.
* Set the cache line size for subordinate pci bridges as well as for theirjake2003-03-271-2/+2
| | | | | | | child devices. This fixes dma timeouts for devices behind the bridge. Reported by: simokawa Tested by: simokawa
* Put child process in a different process group, ensure that the broadcastdavidxu2003-03-271-6/+22
| | | | | | | | signal never affects su directly, some shells changes its pgrp at running or suspended time, so a broadcast SIGTSTP from child will mess up su's job control. Discussed with: bde
* Add support for reading directly from file to userland buffer when thetegge2003-03-266-0/+539
| | | | | O_DIRECT descriptor status flag is set and both offset and length is a multiple of the physical media sector size.
* Adjust the number of vnodes scanned by vlrureclaim() according to thetegge2003-03-263-8/+15
| | | | size of the vnode list.
* Permit debug.malloc.failure_rate to be specified using a tunable sorwatson2003-03-261-0/+1
| | | | | | | that the feature can be enabled during the boot process. Note the continued limitation that FreeBSD fails so rapidly with this setting enabled that it's hard to narrow down particular failures for correction; we really need per-malloc type failure rates.
* Add MBTOM(), a macro that converts from an mbuf blocking dispositionrwatson2003-03-261-0/+1
| | | | | | | | | | | flag (M_DONTWAIT / M_TRYWAIT) to a malloc(9) blocking disposition flag (M_NOWAIT, M_WAITOK). The semantic match isn't perfect, but for scenarios where malloc data is used in the network stack, such as for MAC labeling or for m_tags, we sometimes need to map from one to the other to get the right blocking behavior. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Add a sample specfile listing to FILES.chris2003-03-261-0/+8
| | | | | Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Add a new kernel option, MALLOC_MAKE_FAILURES, which compilesrwatson2003-03-262-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | in a debugging feature causing M_NOWAIT allocations to fail at a specified rate. This can be useful for detecting poor handling of M_NOWAIT: the most frequent problems I've bumped into are unconditional deference of the pointer even though it's NULL, and hangs as a result of a lost event where memory for the event couldn't be allocated. Two sysctls are added: debug.malloc.failure_rate How often to generate a failure: if set to 0 (default), this feature is disabled. Otherwise, the frequency of failures -- I've been using 10 (one in ten mallocs fails), but other popular settings might be much lower or much higher. debug.malloc.failure_count Number of times a coerced malloc failure has occurred as a result of this feature. Useful for tracking what might have happened and whether failures are being generated. Useful possible additions: tying failure rate to malloc type, printfs indicating the thread that experienced the coerced failure. Reviewed by: jeffr, jhb
* Nuke HTT from here too.ps2003-03-262-6/+0
| | | | Spotted by: jhb
* Nuke options HTT infavor of machdep.hlt_logical_cpus tunable/sysctl.ps2003-03-2614-133/+542
| | | | | | | | | | | | | | This keeps the logical cpu's halted in the idle loop. By default the logical cpu's are halted at startup. It is also possible to halt any cpu in the idle loop now using machdep.hlt_cpus. Examples of how to use this: machdep.hlt_cpus=1 halt cpu0 machdep.hlt_cpus=2 halt cpu1 machdep.hlt_cpus=4 halt cpu2 machdep.hlt_cpus=3 halt cpu0,cpu1 Reviewed by: jhb, peter
* Halt the cpus in the idle loop for SMP as well for several reasons:peter2003-03-262-8/+6
| | | | | | | | | | | | | 1) Its critical for HTT. There's less foot-shooting opportunity. 2) I've seen significant improvements in interactive response to commands over ssh sessions. I assume this is less lock contention. 3) As incentive to finish the idle cpu IPI wakeup stuff. 4) The machine on my desk was blowing hot air in my general direction because somebody forgot to turn the hlt on, and it saves 50 watts per cpu.. The machdep.cpu_idle_hlt sysctl is still available, but now the default is the same as on UP kernels.
* Add O_NONBLOCK to the vn_open_cred() flags for NFS client locking whenrwatson2003-03-261-3/+13
| | | | | | | | | | | | | | | opening the POSIX fifo; convert ENXIO error returns to EOPNOTSUPP. This improves handling of the case where the /var/run/lock fifo exists but there is no listener: we immediately return EOPNOTSUPP rather than blocking until a listener turns up. This could occur during a diskless boot before rpc.lockd is loaded, or if the lock file persists across a reboot following the disabling of rpc.lockd. This may have suddenly started to occur due to fifo blocking fixes--previously it looks like attempts to read on a fifo with no listener would time out due to insufficient resources. Reviewed by: alfred
* fp->f_offset doesn't need any protection when it isn't accessed.tegge2003-03-261-2/+4
|
* Obtain Giant before calling kmem_alloc without M_NOWAIT and before callingtegge2003-03-261-2/+21
| | | | kmem_free if Giant isn't already held.
* Add a cleanup function to destroy the osname_lock and call it on modulejhb2003-03-264-0/+11
| | | | | | | unload. Submitted by: gallatin Reported by: Martin Karlsson <mk-freebsd@bredband.net>
* This commit was generated by cvs2svn to compensate for changes in r112680,kan2003-03-26136-29589/+0
| | | | which included commits to RCS files with non-trunk default branches.
* Begin support for 64-bit address support and workarounds for newer cards:scottl2003-03-265-107/+212
| | | | | | | | | | | | | | | | | - Add data structuress for doing 64-bit scatter/gather - Move busdma tag creations around so that only the parent is created in aac_pci.c. - Retrieve the capabilities word from the firmware before setting up command structures and tags. This allows the driver to decide whether to do 64-bit commands, and if work-arounds are needed for systems with >2GB of RAM. - Only enable the SCSI passthrough if it's enabled in the capabilities word in the firmware. This should fix problems with the 2120S and 2200S cards in systems with more than 2GB of RAM. Full 64-bit support is forthcoming. MFC-After: 1 week
* made sure to keep the current stored lifetime when it was not updatedume2003-03-261-3/+9
| | | | | | | | | | | by an RA. (a detailed description of this issue is found at the following URL.) http://www.tahi.org/report/freebsd/freebsd48-rc2-20030316/host/lcna-stateless-addrconf/38.html Reported by: Ozoe Nobumichi <ozoe@tahi.org> through a periodic TAHI test Submitted by: JINMEI Tatuya <jinmei@isl.rdc.toshiba.co.jp> Obtained from: KAME
* Fix typo in the version of the diff that I committed.keramida2003-03-261-1/+1
| | | | Submitted by: Simon L. Nielsen <simon@nitro.dk>
* tightened check for the length of ND options.ume2003-03-261-2/+25
| | | | | Submitted by: jinmei@kame.net (JINMEI Tatuya) Obtained from: KAME
* Modify the mac_init_ipq() MAC Framework entry point to accept anrwatson2003-03-2620-48/+124
| | | | | | | | | | | | | additional flags argument to indicate blocking disposition, and pass in M_NOWAIT from the IP reassembly code to indicate that blocking is not OK when labeling a new IP fragment reassembly queue. This should eliminate some of the WITNESS warnings that have started popping up since fine-grained IP stack locking started going in; if memory allocation fails, the creation of the fragment queue will be aborted. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Correct comment, MSIZE and MCLBYTES are defined in sys/param.hmux2003-03-261-2/+2
| | | | and not in machine/param.h.
* Don't install wrong IPv6 route by add command.ume2003-03-262-3/+12
|
* Re-work ac97 initialization to match cold reset described in AC97r.23orion2003-03-261-13/+20
| | | | | | | and be prepared to wait much longer for codec to become ready. Credit to Hugo D. Valentim <hvalentim@gmx.net> for reporting the problem, providing useful pointers, and repeated diff testing.
* For the VIA8233A use multi-sgd register set for primary playbackorion2003-03-261-2/+8
| | | | | | channel and disable DXS3. Several users have reported DXS3 as playing at half speed on the 8233A revision of the chipset. This implicitly means no SPDIF for VIA8233A users.
* - Fix function declarations.mdodd2003-03-261-122/+107
| | | | | | - Provide function prototypes. Submitted by: trhodes
* Add defines for low power and second codec ready.orion2003-03-261-0/+3
|
* Clean up dynamically allocated sysctl variables when we run dacleanup() andken2003-03-262-0/+14
| | | | | | | | | | | cdcleanup(). This fixes sysctl problems ("can't re-use a leaf") when someone adds another peripheral at the same unit number. (e.g. rescan da0, it goes away, then rescan again and da0 comes back, but since we haven't cleaned up the sysctl variables from the last da0 instance, we can't register the variables for the new instance under the same name.) Reported by: njl Tested by: njl
* Get rid of a few caddr_t's.mdodd2003-03-261-8/+8
| | | | Submitted by: trhodes
* asn_get_encoded() takes 2 arguments.mdodd2003-03-261-1/+1
|
* - Define a _spinunlock() function so that threading implementations may dojeff2003-03-265-1/+31
| | | | | | more complicated things than just setting the lock to 0. - Implement stubs for this function in libc and the two threading libraries that are currently in the tree.
* Retire set_reqid(), unused since 1.2.mdodd2003-03-261-33/+0
|
* - Add const qualifier to char * arrays.mdodd2003-03-261-12/+4
| | | | - Retire Traps array; this was obsoleted in 1.2
* Don't roll a private copy of basename().mdodd2003-03-261-24/+1
|
* Explain the format of the at.allow and at.deny files in detail.keramida2003-03-261-0/+5
| | | | | PR: 35942 Submitted by: Gary W. Swearingen <swear@blarg.net>
* Passing a u_char to ntohs() is guaranteed to give the wrong answer !brian2003-03-261-2/+2
| | | | Submitted by: Francis Dupont <Francis.Dupont@enst-bretagne.fr>
* Add a ``force-scripts'' option for using chat scripts with -direct andbrian2003-03-264-20/+40
| | | | | | -dedicated links. Submitted by: Maksim Yevmenkin <myevmenk@exodus.net>
* Document the undcumnt -l option (that's a lowercase `el').keramida2003-03-261-3/+10
| | | | | PR: 48466 Submitted by: Peter Philipp <dot.bomb@freenet.de>
OpenPOWER on IntegriCloud