summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Fix non-SMP kernel regression introduced in the previous commit.jkim2008-01-101-4/+7
| | | | Reviewed by: jkoshy
* Disable the check for errata AE18. On MacBooks (1,1 version) there'srpaulo2008-01-101-0/+6
| | | | | | no problem with coretemp and C3 state. Approved by: njl (mentor)
* A real gem from freebsd-current@des2008-01-101-0/+3
|
* Remove "lock pushdown" todo item in comment -- I did that for 7.0.rwatson2008-01-101-1/+0
| | | | MFC after: 3 weeks
* Correct typos in comments.rwatson2008-01-101-2/+2
| | | | MFC after: 3 weeks
* When one tries to allocate memory with the M_WAITOK flag and we are short inpjd2008-01-101-6/+13
| | | | | | | | | | | | address space in kmem map call vm_lowmem event in a loop and wait a bit for subsystems to reclaim some memory which in turn will reclaim address space as well. Note, this is a work-around. Reviewed by: alc Approved by: alc MFC after: 3 days
* Add support for selectively dumping the state of the hardware response queue.kmacy2008-01-102-47/+130
| | | | Change ordering of a couple of types.
* should always free when refcount is 1kmacy2008-01-101-1/+3
|
* quiet compiler complaint about unused parameterssam2008-01-101-2/+2
|
* quiet compiler complaint about comparing &v against NULLsam2008-01-101-2/+2
|
* Make sure that grog is linked to me, and that I (in *-ports*) amedwin2008-01-102-0/+5
| | | | | | | linked to the people I helped out, and add them to the overview too. Approved by: grog@
* Bump FreeBSD_version in order to reflect vn_lock() prototype changes.attilio2008-01-101-1/+1
|
* Update vn_lock() prototype accordingly with the 'thread' argument removal.attilio2008-01-101-2/+5
|
* vn_lock() is currently only used with the 'curthread' passed as argument.attilio2008-01-10118-322/+319
| | | | | | | | | | | | | | | | Remove this argument and pass curthread directly to underlying VOP_LOCK1() VFS method. This modify makes the code cleaner and in particular remove an annoying dependence helping next lockmgr() cleanup. KPI results, obviously, changed. Manpage and FreeBSD_version will be updated through further commits. As a side note, would be valuable to say that next commits will address a similar cleanup about VFS methods, in particular vop_lock1 and vop_unlock. Tested by: Diego Sardina <siarodx at gmail dot com>, Andrea Di Pasquale <whyx dot it at gmail dot com>
* http://www.freebsd.org/doc/en_US.ISO8859-1/articles/committers-guide/convent ↵edwin2008-01-101-0/+1
| | | | | | | | | | | | ions.html 4.1 point 6: Add an entry for yourself to src/share/misc/committers-repository.dot, where repository is either doc, ports or src, depending on the commit privileges you obtained. Approved by: grog@
* - make 9k clusters the default unless a tunable is setkmacy2008-01-104-125/+224
| | | | | | | | | | | | - return the error from cxgb_tx_common so that when an error is hit we dont spin forever in the taskq thread - remove unused rxsd_ref - simplify header_offset calculation for embedded mbuf headers - fix memory leak by making sure that mbuf header initialization took place - disable printf's for stalled queue, don't do offload/ctrl queue restart when tunnel queue is restarted - add more diagnostic information about the txq state - add facility to dump the actual contents of the hardware queue using sysctl
* Refine textdump comments slightly.rwatson2008-01-101-10/+12
| | | | MFC after: 3 months
* Fix a buffer overflow in the processing of various SCSI commands. This likelyscottl2008-01-091-26/+42
| | | | | | | | fixes a an great number of weird problems that have been reported with this driver. PR: 119114 Submitted by: Jens Rehsack
* Improve -u (limit uid lookups) behavior.obrien2008-01-092-3/+9
| | | | | Submitted by: David Frascone <dave@frascone.com> PR: 119490
* This commit was generated by cvs2svn to compensate for changes in r175189,obrien2008-01-091-0/+4351
|\ | | | | | | which included commits to RCS files with non-trunk default branches.
| * Bring in fix for Binutils PR other/16240: Check for a failure return fromobrien2008-01-091-0/+4351
| | | | | | | | cplus_demangle_type. This is the rev 1.50-1.51 change. Our addr2line, etc.. would crash if used on C++ code that contains certain symbol types. One example is _ZN13PatternDriver23StringScalarDeleteValueC1ERKNS_25ConflateStringScalarValueERKNS_25AbstractStringScalarValueERKNS_12TemplateEnumINS_12pdcomplementELZNS_16complement_namesEELZNS_14COMPLEMENTENUMEEEE
* Simplify the ifdefs:bde2008-01-091-21/+14
| | | | | | | | | | | | | | | | | - fix this to compile with C++ by casting ints to enums in a few places and by using the correct parameter type for _fpsetprec(). Remove __cplusplus ifdefs which disabled the buggy code. - remove __CC_SUPPORTS___INLINE ifdefs. `__inline' vs `inline', and either of these #defined away, are supposed to be handled by very old ifdefs in <sys/cdefs.h>. Thus the __CC_SUPPORTS___INLINE macro is not needed here (or anywhere else that it used). It is less needed here than in most places, since this file is userland-only and userland is far from supporting INTEL_COMPILER. The __CC_SUPPORTS___INLINE__ macro which was used here is even less needed. It is to support spelling `inline' as `__inline__' instead of the usual spelling `__inline'. Fix some style bugs that I missed in the previous commit (remove unused asms and sort more variables).
* Fix some style bugs (mainly, use explicit shifts when accessing bit-fieldsbde2008-01-091-31/+31
| | | | | even if the shift count happens to be 0, sort declarations, and spell __inline normally).
* Improve some comments.bde2008-01-091-14/+13
|
* Revise the TECHNICAL DETAILS section.ru2008-01-091-68/+87
| | | | Reviewed by: skv
* make nqsets a uint32_t so that sysctl will workkmacy2008-01-091-1/+3
| | | | add 2 fields for allowing queue dumping
* Fix typos.brueffer2008-01-091-3/+3
|
* don't decrement ref count below 1 for EXT_PACKETkmacy2008-01-091-1/+1
|
* EXT_PACKET is one of the valid mbuf typeskmacy2008-01-091-0/+1
|
* Fix KASSERT in m_free_fast - the LIST_EMPTY check only applies to packet ↵kmacy2008-01-091-2/+5
| | | | | | headers. In the non packet header case there may be data there.
* Add lockmgr_disown() and relative explanation.attilio2008-01-091-1/+10
|
* Bump FreeBSD_version in order to reflect lockmgr_disown() functionattilio2008-01-091-1/+1
| | | | introduction.
* Fix a last second typo about recent lockmgr_disown() introduction.attilio2008-01-091-2/+2
|
* Remove explicit calling of lockmgr() with the NULL argument.attilio2008-01-087-41/+60
| | | | | | | | | | | | | | | | | | Now, lockmgr() function can only be called passing curthread and the KASSERT() is upgraded according with this. In order to support on-the-fly owner switching, the new function lockmgr_disown() has been introduced and gets used in BUF_KERNPROC(). KPI, so, results changed and FreeBSD version will be bumped soon. Differently from previous code, we assume idle thread cannot try to acquire the lockmgr as it cannot sleep, so loose the relative check[1] in BUF_KERNPROC(). Tested by: kris [1] kib asked for a KASSERT in the lockmgr_disown() about this condition, but after thinking at it, as this is a well known general rule, I found it not really necessary.
* Regen for shm_open(2) and shm_unlink(2).jhb2008-01-0810-12/+54
|
* Add a new file descriptor type for IPC shared memory objects and use it tojhb2008-01-0819-346/+1216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | implement shm_open(2) and shm_unlink(2) in the kernel: - Each shared memory file descriptor is associated with a swap-backed vm object which provides the backing store. Each descriptor starts off with a size of zero, but the size can be altered via ftruncate(2). The shared memory file descriptors also support fstat(2). read(2), write(2), ioctl(2), select(2), poll(2), and kevent(2) are not supported on shared memory file descriptors. - shm_open(2) and shm_unlink(2) are now implemented as system calls that manage shared memory file descriptors. The virtual namespace that maps pathnames to shared memory file descriptors is implemented as a hash table where the hash key is generated via the 32-bit Fowler/Noll/Vo hash of the pathname. - As an extension, the constant 'SHM_ANON' may be specified in place of the path argument to shm_open(2). In this case, an unnamed shared memory file descriptor will be created similar to the IPC_PRIVATE key for shmget(2). Note that the shared memory object can still be shared among processes by sharing the file descriptor via fork(2) or sendmsg(2), but it is unnamed. This effectively serves to implement the getmemfd() idea bandied about the lists several times over the years. - The backing store for shared memory file descriptors are garbage collected when they are not referenced by any open file descriptors or the shm_open(2) virtual namespace. Submitted by: dillon, peter (previous versions) Submitted by: rwatson (I based this on his version) Reviewed by: alc (suggested converting getmemfd() to shm_open())
* Honour the logical current working directory ($PWD) when using config'semaste2008-01-081-0/+18
| | | | | | | | -d destdir option. For an automounted src tree using the logical cwd in the Makefile keeps amd(8)'s mount timeout refreshed. Code to check $PWD's validity cribbed from pwd(1). Discussed on hackers@.
* un-__P()obrien2008-01-0817-80/+80
|
* - Remove kH and *6 from xterm. They are defined to the same key as @7 (kp_end).rafan2008-01-081-2/+2
| | | | | | | | | | | | | | | As ncurses has the limitation that it returns the first matched key symbol, you can not use END in ncurses based program, like mutt, with xterm. - Add @8 (kp_enter) definition for xterm so you can use ENTER in xterm with ncurses based program. I also found that NetBSD's xterm does the same thing. PR: 100150 Reported by: Arseny Nasokin <tarc at tarc.po.cs.msu.su> Discussed with: Thomas Dickey, Ulrich Spoerlein <uspoerlein at gmail.com> Reviewed by: freebsd-arch@ MFC after: 2 month
* - This driver will first appear in FreeBSD 6.3, not 7.0gabor2008-01-081-1/+1
| | | | | Submitted by: thompsa MFC after: 0 days
* When MAC is enabled in the kernel, fix a panic triggered by a lockingcsjp2008-01-081-8/+8
| | | | | | | | | | | | | | assertion hit in swapoff_one() when we un-mount a swap partition. We should be using curthread where we used thread0 before. This change also replaces the thread argument with a credential argument, as the MAC framework only requires the cred. It should be noted that this allows the machine to be rebooted without panicing with "cannot differ from curthread or NULL" when MAC is enabled. Submitted by: rwatson Reviewed by: attilio MFC after: 2 weeks
* Add an additional make variable EXTRAMIBSYMS which allows to specifyharti2008-01-082-3/+18
| | | | | | | definition files that are used only for extracting symbols. This is useful for inter-module dependencies and files containing only enum-definitions. MFC after: 4 weeks
* Convert a PMAP_DIAGNOSTIC to a KASSERT.alc2008-01-082-18/+4
|
* Welcome unzip(1), a pure BSD drop-in replacement for ports/unzip. In itsdes2008-01-083-0/+920
| | | | | | | | | | | | current state, it can handle all but four of the 991 zip files (including jar files) I was able to identify in the ports tree. The remaining four are two self-extracting archives and two which have garbage preceding the first local header. This limitation is a feature of libarchive(3) which I am currently working to resolve. The code is unnecessarily large due to the need to emulate the exact command-line syntax and behaviour of ports/unzip. My initial incompatible implementation was one quarter the size of the one I am committing here.
* A new configuration variable, daily_status_mail_rejects_shorten, allowsdds2008-01-082-1/+9
| | | | | | | | the rejected mail reports to tally the rejects per blacklist without providing details about individual sender hosts. The default configuration keeps the reports in their original form. MFC after: 1 week
* Close a race in the kern.ttys sysctl handler that resulted in panics injhb2008-01-081-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | dev2udev() when a tty was being detached concurrently with the sysctl handler: - Hold the 'tty_list_mutex' lock while we read all the fields out of the struct tty for copying out later. Previously the pty(4) and pts(4) destroy routines could set t_dev to NULL, drop their reference on the tty and destroy the cdev while the sysctl handler was attempting to invoke dev2udev() on the cdev being destroyed. This happened when the sysctl handler read the value of t_dev prior to it being set to NULL either due to it being stale or due to timing races. By holding the list lock we guarantee that the destroy routines will block in ttyrel() in that case and not destroy the cdev until after we've copied all of our data. We may see a NULL cdev pointer or we may see the previous value, but the previous value will no longer point to a destroyed cdev if we see it. - Fix the ttyfree() routine used by tty device drivers in their detach methods to use ttyrel() on the tty so we don't leak them. Also, fix it to use the same order of operations as pty/pts destruction (set t_dev NULL, ttyrel(), destroy_dev()) so it cooperates with the sysctl handler. MFC after: 3 days Tested by: avatar
* Lock the vnode interlock while reading v_usecount to update si_usecountjhb2008-01-081-0/+3
| | | | | | | in a cdev in devfs_reclaim(). MFC after: 3 days Reviewed by: jeff (a while ago)
* Fix logic in skipcount handling (used to sample every 1/N lock operationskris2008-01-081-1/+1
| | | | to reduce profiling overhead)
* Free MAC label on a POSIX semaphore when the semaphore is freed.rwatson2008-01-071-0/+3
| | | | | MFC after: 3 days Submitted by: jhb
* Add COMPAT_FREEBSD7 and enable it in configs that have COMPAT_FREEBSD6.jhb2008-01-078-0/+10
|
OpenPOWER on IntegriCloud