summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Add a temporary workaround for a deadlock in Coda venus 5.3.19 thattjr2003-03-064-4/+56
| | | | | | occurs when mounting the filesystem. The problem is that venus issues the mount() syscall, which calls vfs_mount(), which calls coda_root() which attempts to communicate with venus.
* Remove fragments of support for the FreeBSD 3.x and 4.x branches.tjr2003-03-065-25/+0
|
* MFp4(simokawa_sbp)simokawa2003-03-067-102/+193
| | | | | | | | | | Improve if_fwe performance. - Simplify mbuf handling by using bulkxfer. Now, it uses mbuf clusters for RX buffer as usual ethernet drivers. - Recycle struct xfer buffer and don't call malloc at runtime. - Count input and output errors. - Handle a mbuf chain longer than 6 correctly. - Increase queue length.
* Remove GIANT_REQUIRED from sf_buf_free().alc2003-03-061-2/+0
|
* Instrument sysarch() MD privileged I/O access interfaces with a MACrwatson2003-03-0616-0/+133
| | | | | | | | | | | check, mac_check_sysarch_ioperm(), permitting MAC security policy modules to control access to these interfaces. Currently, they protect access to IOPL on i386, and setting HAE on Alpha. Additional checks might be required on other platforms to prevent bypass of kernel security protections by unauthorized processes. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Remove ENABLE_VFS_IOOPT. It is a long unfinished work-in-progress.alc2003-03-0612-635/+2
| | | | Discussed on: arch@
* Provide a mac_check_system_swapoff() entry point, which permits MACrwatson2003-03-0514-0/+140
| | | | | | | modules to authorize disabling of swap against a particular vnode. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Move the initialization of the vattr flags field in setfflags() torwatson2003-03-052-12/+6
| | | | | | | | | | | | | before the MAC check so that we pass the flags field into the MAC check properly initialized. This didn't affect any current MAC modules since they didn't care what the flags argument was (as they were primarily interested in the fact that it was a meta-data write, not the contents of the write), but would be relevant to future modules relying on that field. Submitted by: Mike Halderman <mrh@spawar.navy.mil> Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Fix a use-after-free bug that could cause multi-link fragment reassembly toarchie2003-03-051-2/+4
| | | | | | | fail for a long time (until the incoming sequence numbers wrapped around). Reported by: Matthew Impett <mimpett@Glue.umd.edu> MFC after: 3 days
* VOP_PATHCONF returns a register_t, not an int. Noticed by phk.tjr2003-03-052-2/+2
|
* Finish driving a stake through the heart of netns and the associatedpeter2003-03-0548-6281/+5
| | | | | | ifdefs scattered around the place - its dead Jim! The SMB stuff had stolen AF_NS, make it official.
* Retire some misleading comments and explain why we need to keep a copydmlb2003-03-051-10/+8
| | | | of parameters written to the card.
* Duplicate more of options.i386 in this file since we can't seem to settlejhb2003-03-051-0/+1
| | | | on a notion of having MACHINE_ARCH common files that MACHINE files include.
* Back out last commit, which is fine in theory, but ignores the factorion2003-03-053-7/+7
| | | | that a lock is held whilst the allocations are made (M_WAITOK -> M_NOWAIT).
* Add prototype for coda_pathconf() that I missed in the previous commit.tjr2003-03-052-0/+2
|
* Used correct aue_flags in ELECOM LD-USB/T and ELECOM LD-USB/TX.shiba2003-03-051-2/+2
| | | | | | Submitted by: Yasushi Oshima <oshimaya@sc.starcat.ne.jp> Takeshi Shibagaki <shiba@freebsd.org> (refer to [bsd-usb:685],[bsd-usb:686])
* Fixed an issue which transfer no packets in combination with aue driver.shiba2003-03-051-2/+5
| | | | | | | Submitted by Hiroyuki Aizu <eyes@navi.org> (refer to [FreeBSD-users-jp 65061]) Tested by Hiroharu Tamaru <tamaru@myn.rcast.u-tokyo.ac.jp> (refer to [bsd-usb:689])
* Add a minimal implementation of VOP_PATHCONF to silence warningtjr2003-03-052-2/+58
| | | | messages from ls(1).
* Handle the case where a_uio->uio_td == NULL properly in coda_readlink().tjr2003-03-052-2/+4
| | | | This happens when called from lookup().
* Raise the default value of TTYHOG from 1 kB to 8 kB. Since TTYHOG isdas2003-03-051-1/+1
| | | | | | | | | | | an administrative limit on the size of tty/pty input buffers, this is mostly an inconsequential change. (slti(4) will allocate an 8 kB static buffer instead of a 1 kB buffer due to a hack in the driver.) The increase happens to kludge around a lame limitation of syscons, which does not allow one to paste more than TTYHOG bytes. PR: 42031 Reviewed by: mike (mentor)
* Make TTYHOG tunable.das2003-03-0512-2/+22
| | | | Reviewed by: mike (mentor)
* Attempt a hard reset if AC97 codec is not ready on attach.orion2003-03-052-20/+27
| | | | | | Halt attach if mixer_init fails. Prompted by: points raised by Hugo Valentim <hvalentim@gmx.net>.
* Fix threaded applications on ia64 that are linked dynamicly. We didmarcel2003-03-051-1/+2
| | | | | | | | | | | | | | | | | not save (restore) the global pointer (GP) in the jmpbuf in setjmp (longjmp) because it's not needed in general. GP is considered a scratch register at callsites and hence is always restored after a call (when it's possible that the call resolves to a symbol in a different loadmodule; otherwise GP does not have to be saved and restored at all), including calls to setjmp/longjmp. There's just one problem with this now that we use setjmp/longjmp for context switching: A new context must have GP defined properly for the thread's entry point. This means that we need to put GP in the jmpbuf and consequently that we have to restore is in longjmp. This automaticly requires us to save it as well. When setjmp/longjmp isn't used for context switching, this can be reverted again.
* ABI breaker: Move the J_SIGMASK field in the jmpbuf beforemarcel2003-03-051-3/+2
| | | | | | | | | | | the J_SIG0 field. While here, rename J_SIG0 to J_SIGSET and remove J_SIG1. The main reason for this change is that the 128-bit sigset_t is now aligned on a 16-byte boundary, which allows us to use 16-byte atomic loads and stores on CPUs that support it. The removal of J_SIG1 is done to avoid confusion: it is never accessed and should not be. Renaming J_SIG0 to J_SIGSET is the icing on the cake that's better done now than later.
* Set ldesc after dbch->ndesc has initialized.simokawa2003-03-051-3/+2
|
* Document the tunable kern.ipc.nsfbufs in help.common and loader.8. Smallseanc2003-03-042-4/+11
| | | | | | | nearby grammar fixup that saves a line of display while in the loader (help set tunables), but reuses the line for kern.ipc.nsfbufs. Approved by: roam
* GC unused files.jlemon2003-03-042-149/+0
|
* Update netisr handling; Each SWI now registers its queue, and all queuejlemon2003-03-0464-745/+667
| | | | | | | | | | drain routines are done by swi_net, which allows for better queue control at some future point. Packets may also be directly dispatched to a netisr instead of queued, this may be of interest at some installations, but currently defaults to off. Reviewed by: hsu, silby, jayanth, sam Sponsored by: DARPA, NAI Labs
* Bah, fix a bogon in the last commit: get the sense of a compare test rightjhb2003-03-041-1/+1
| | | | | so that we allow a sleepable lock to be acquired with Giant held rather than allowing a sleepable lock to be acquired with anything but Giant held.
* - Hold the buf lock while manipulating and inspecting its fields.jeff2003-03-041-56/+70
| | | | | | | | | | | | | | | | - Use gbincore() and not incore() so that we can drop the vnode interlock as we acquire the buflock. - Use GB_LOCK_NOWAIT when getting bufs for read ahead clusters so that we don't block on locked bufs. - Convert a while loop to a howmany() that will most likely be faster on modern processors. There is another while loop divide that was left near by because it is operating on a 64bit int and is most likely faster. - Cleanup the cluster_read() code a little to get rid of a goto and make the logic clearer. Tested on: x86, alpha Tested by: Steve Kargl <sgk@troutmask.apl.washington.edu> Reviewd by: arch
* Remove safety belt: it is now ok to do a mtx_trylock() on a mutex youjhb2003-03-042-10/+8
| | | | | | | already own. The mtx_trylock() will fail however. Enhance the comment at the top of the try lock function to explain this. Requested by: jlemon and his evil netisr locking
* Replace calls to WITNESS_SLEEP() and witness_list() with equivalent callsjhb2003-03-0424-91/+65
| | | | to WITNESS_WARN().
* Add a WITNESS_WARN() call to verify that we hold no locks after runningjhb2003-03-041-0/+1
| | | | a handler from an interrupt thread.
* A small overhaul of witness:jhb2003-03-042-63/+123
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Add a comment about special lock order rules and Giant near the top of subr_witness.c. Specifically, this documents and explains the real lock order relationship between Giant and sleepable locks (i.e. lockmgr locks and sx locks). Basically, Giant can be safely acquired either before or after sleepable locks and the case of Giant before a sleepable lock is exempted as a special case. - Add a new static function 'witness_list_lock()' that displays a single line of information about a struct lock_instance. This is used to make the output of witness messages more consistent and reduce some code duplication. - Fixup a few comments in witness_lock(). - Properly handle the Giant-before-sleepable-lock lock order exception in a more general fashion and remove the no longer needed LI_SLEPT flag. - Break up the last condition before assuming a reversal a bit to try and make the logic less confusing in witness_lock(). - Axe WITNESS_SLEEP() now that LI_SLEPT is no longer needed and replace it with a more general WITNESS_WARN() macro/function combination. WITNESS_WARN() allows you to output a customized message out to the console along with a list of held locks. It will optionally drop into the debugger as well. You can exempt a single lock from the check by passing it in as the second argument. You can also use flags to specify if Giant should be exempt from the check, if all sleepable locks should be exempt from the check, and if witness should panic if any non-exempt locks are found. - Make the witness_list() function static. Other areas of the kernel should use the new WITNESS_WARN() instead.
* Miscellaneous cleanups to _mtx_lock_sleep():jhb2003-03-042-8/+12
| | | | | | | | - Declare some local variables at the top of the function instead of in a nested block. - Use mtx_owned() instead of masking off bits from mtx_lock manually. - Read the value of mtx_lock into 'v' as a separate line rather than inside an if statement for clarity. This code is hairy enough as it is.
* Properly assert that mtx_trylock() is not called on a mutex we alreadyjhb2003-03-042-16/+8
| | | | | | | owned. Previously the KASSERT would only trigger if we successfully acquired a lock that we already held. However, _obtain_lock() fails to acquire locks that we already hold, so the KASSERT was never checked in the case it was supposed to fail.
* Wrap the hyperthreading support code with the HTT kernel option.jhb2003-03-048-0/+128
| | | | | | Hyperthreading support is now off unless the HTT option is added. MFC-after: 3 days
* Fix bug introduced in 1.130. For the < MHLEN case, we shouldbmilekic2003-03-041-1/+1
| | | | | | | be doing a m_gethdr(), not an m_get(). Pointed out by: Hiten Pandya <hiten@unixdaemons.com> Pointy hat to: Me
* Bump __FreeBSD_version to mark new cdevsw initialization.phk2003-03-041-1/+1
|
* Initialize the second buffer for mirroring to point to itself and not itsphk2003-03-042-0/+2
| | | | partner.
* Fix printf warning on RELENG_4.simokawa2003-03-041-0/+4
|
* - Create a function sched_interact_score() which decides on thejeff2003-03-041-70/+86
| | | | | | | | | interactivity of a kseg and assigns it a value of 0 through 100. - Use sched_interact_score() to determine the dynamic priority. - Define SCHED_CURR() in terms of sched_interact_score(). - Adjust the maximum slice back down to 100ms. - Remove redundant clearing of ke_runq in sched_wakeup() - Clean up #defines and comment them.
* - Add a new 'flags' parameter to getblk().jeff2003-03-0425-60/+73
| | | | | | | | | | - Define one flag GB_LOCK_NOWAIT that tells getblk() to pass the LK_NOWAIT flag to the initial BUF_LOCK(). This will eventually be used in cases were we want to use a buffer only if it is not currently in use. - Convert all consumers of the getblk() api to use this extra parameter. Reviwed by: arch Not objected to by: mckusick
* - Correct the wchan in vop_stdfsync()jeff2003-03-031-1/+1
| | | | | This is almost what bde asked for. There is some desire to have per fs wchans still but that is difficult giving the current arrangement of the code.
* FreeBSD 5.0 has stopped shipping /modules 2.5 years ago. Catchru2003-03-034-4/+4
| | | | | up with this further by excluding /modules from the (default) kern.module_path.
* exists() is too aggressive when searching for files without a full path.ru2003-03-031-1/+1
| | | | Inspired by: bsd.prog.mk,v 1.105
* Pick up one file missed in the previous vprint() cleanupnjl2003-03-031-3/+3
|
* Finish cleanup of vprint() which was begun with changing v_tag to a string.njl2003-03-0321-63/+17
| | | | | | Remove extraneous uses of vop_null, instead defering to the default op. Rename vnode type "vfs" to the more descriptive "syncer". Fix formatting for various filesystems that use vop_print.
* Rearrange the members of struct cdevsw to be absolutely sure to catchphk2003-03-032-10/+6
| | | | any initializations which are not done right.
* Make nokqfilter() return the correct return value.phk2003-03-0327-29/+23
| | | | Ditch the D_KQFILTER flag which was used to prevent calling NULL pointers.
OpenPOWER on IntegriCloud