aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Burn TTY ioctl bridges in compat layers.Ed Schouten2009-05-0810-550/+7
| | | | | | | | | | | | I really don't want any pieces of code to include ioctl_compat.h, so let the ibcs2 and svr4 compat leave sgtty alone. If they want to support sgtty, they should emulate it on top of termios, not sgtty. The code has been marked with BURN_BRIDGES for a long time. ibcs2 and svr4 are not really popular pieces of code anyway. Notes: svn path=/head/; revision=191919
* Use log(9) for debug and status messages and hide some of the details withDoug Rabson2009-05-081-68/+60
| | | | | | | | | macros to allow for future flexibility in logging. Submitted by: zachary dot loafman at isilon dot com Notes: svn path=/head/; revision=191918
* A NOP change: style / whitespace cleanup of the noise that slippedMarko Zec2009-05-086-21/+21
| | | | | | | | | | into r191816. Spotted by: bz Approved by: julian (mentor) (an earlier version of the diff) Notes: svn path=/head/; revision=191917
* Remove a bogus check that unintentionally slipped in r191816.Marko Zec2009-05-081-3/+0
| | | | | | | | This change has no functional impact on nooptions VIMAGE builds. Submitted by: bz Notes: svn path=/head/; revision=191916
* Introduce a new virtualization container, provisionally named vprocg, to holdMarko Zec2009-05-0817-32/+165
| | | | | | | | | | | | | | | | | | | | | | | | | virtualized instances of hostname and domainname, as well as a new top-level virtualization struct vimage, which holds pointers to struct vnet and struct vprocg. Struct vprocg is likely to become replaced in the near future with a new jail management API import. As a consequence of this change, change struct ucred to point to a struct vimage, instead of directly pointing to a vnet. Merge vnet / vimage / ucred refcounting infrastructure from p4 / vimage branch. Permit kldload / kldunload operations to be executed only from the default vimage context. This change should have no functional impact on nooptions VIMAGE kernel builds. Reviewed by: bz Approved by: julian (mentor) Notes: svn path=/head/; revision=191915
* Sync ubsec(4) with reality, note BCM5825 support.Philip Paeps2009-05-081-0/+2
| | | | | | | | Pointed out by: brueffer MFC after: 1 minute Notes: svn path=/head/; revision=191914
* Drain the tasks before the interface stop call in case a restart was queued.Andrew Thompson2009-05-082-6/+6
| | | | Notes: svn path=/head/; revision=191912
* Add one more board ID with inverted external amplifier control.Alexander Motin2009-05-081-0/+1
| | | | | | | PR: kern/121156 Notes: svn path=/head/; revision=191911
* Change the internal buffer used to store input lines from a static bufferStephane E. Potvin2009-05-087-54/+75
| | | | | | | | | | | to a dynamically allocated one in order to support input lines of arbitrary length. Approved by: kan (mentor) MFC after: 1 month Notes: svn path=/head/; revision=191910
* kill more portability functions that are no longer usefulSam Leffler2009-05-083-29/+5
| | | | Notes: svn path=/head/; revision=191909
* kill unused OS_GETUPTIMESam Leffler2009-05-082-11/+0
| | | | Notes: svn path=/head/; revision=191908
* don't call vn_rele_async_fini in the !_KERNEL caseKip Macy2009-05-071-0/+2
| | | | Notes: svn path=/head/; revision=191907
* define VN_RELE_ASYNC for use by libzpoolKip Macy2009-05-071-0/+1
| | | | Notes: svn path=/head/; revision=191906
* move VN_RELE_ASYNC to the compatibility layer with the rest of the VN_* definesKip Macy2009-05-072-5/+1
| | | | Notes: svn path=/head/; revision=191905
* Partially revert r191171, which went too far in tryingTim Kientzle2009-05-071-20/+49
| | | | | | | | | | | | | | | | | to eliminate some duplicated code. In particular, archive_read_open_filename() has different close handling than archive_read_open_fd(), so delegating the former to the latter in the degenerate case (a NULL filename is treated as stdin) broke reading from pipelines. In particular, this fixes occasional port failures that were seen when using "gunzip | tar" pipelines under /bin/csh. Thanks to Alexey Shuvaev for reporting this failure and patiently helping me to track down the cause. Notes: svn path=/head/; revision=191904
* avoid LOR and gratuitous extra lock acquisitions by moving user_evict list ↵Kip Macy2009-05-071-6/+16
| | | | | | | | | buffers to a temporary list Notes: svn path=/head/; revision=191903
* Allow the VM to provide backpressure on the ARC cache as it doesKip Macy2009-05-071-0/+9
| | | | | | | on Solaris. Notes: svn path=/head/; revision=191902
* Asynchronously release vnodes to avoid blocking on range locks when calling ↵Kip Macy2009-05-075-4/+165
| | | | | | | | | | | | | | | | | | | | | | | back in to zfs. This is based on a fix that went in to opensolaris on March 9th. However, it uses a dedicated thread instead of a Solaris' taskq to avoid doing a blocking memory allocation with the vnode interlock held. This fixes a long-time deadlock in ZFS. This is not, strictly speaking, an LOR. The spa_zio thread releases a vnode, this calls in to vn_reclaim which in turn needs to acquire range locks to sync dirty data out to disk. The range locks are already held by a user-level process waiting on a condition variable that it the process is waiting on a spa_zio thread to signal it on. The process could not be signalled because the spa_zio thread could not proceed. The nature of this problem was not apparent due to ZFS locks opting out of witness which meant that DDB did not know about the locks that were held by ZFS. Reviewed by: pjd MFC after: 7 days Notes: svn path=/head/; revision=191900
* No man page currently exists so comment the two uncommentedKip Macy2009-05-071-4/+13
| | | | | | | non-trivial functions Notes: svn path=/head/; revision=191899
* Give vfs_getopt the type it's expecting.Jamie Gritton2009-05-071-4/+2
| | | | | | | | | Write 100 times: "32 bits is so twentieth century." Noticed by: dchagin Notes: svn path=/head/; revision=191898
* Add ID of one more SII3132 revision found on adaptec aar-1225sa rev a2.Alexander Motin2009-05-072-0/+2
| | | | | | | PR: kern/127289 Notes: svn path=/head/; revision=191897
* Move the per-prison Linux MIB from a private one-off pointer to the newJamie Gritton2009-05-077-98/+331
| | | | | | | | | | | | OSD-based jail extensions. This allows the Linux MIB to accessed via jail_set and jail_get, and serves as a demonstration of adding jail support to a module. Reviewed by: dchagin, kib Approved by: bz (mentor) Notes: svn path=/head/; revision=191896
* Eliminate the loop and the call to pause(9) in vfs_vget_ino(). IfKonstantin Belousov2009-05-071-6/+8
| | | | | | | | | | | vfs_busy(MBF_NOWAIT) failed, unlock the vnode and sleep in vfs_busy(). Suggested and reviewed by: jeff Tested by: pho MFC after: 3 weeks Notes: svn path=/head/; revision=191895
* Add PCI IDs for the Broadcom 5825 incarnation.Philip Paeps2009-05-072-2/+6
| | | | | | | | Submitted by: Brian A. Seklecki <bseklecki -at- collaborativefusion.com> MFC after: 1 day Notes: svn path=/head/; revision=191894
* If we have a regular rint handler, never go into rint_bypass mode.Ed Schouten2009-05-071-3/+6
| | | | | | | | | | It turns out if we called cfmakeraw() on a TTY with only a rint handler in place, it could inject data into the TTY, even though it should be redirected. Always take a look at the hooks before looking at the termios flags. Notes: svn path=/head/; revision=191893
* Use a 32 bit type for the interface mask as this equals the max interfaceAndrew Thompson2009-05-071-1/+2
| | | | | | | count. Notes: svn path=/head/; revision=191892
* repository sync to multi-OS repo ... spaceing changeRandall Stewart2009-05-071-0/+1
| | | | Notes: svn path=/head/; revision=191891
* ABI expansions to hopefully future-proof our MIB/netstat code for 8.0Randall Stewart2009-05-071-2/+4
| | | | Notes: svn path=/head/; revision=191890
* Update example with feedback from thompsa@.Ed Maste2009-05-071-1/+2
| | | | Notes: svn path=/head/; revision=191889
* Add KTR(9) tracing for futex emulation.Dmitry Chagin2009-05-071-11/+49
| | | | | | | | Approved by: kib (mentor) MFC after: 1 month Notes: svn path=/head/; revision=191887
* Add my birthdaySteven Kreuzer2009-05-071-0/+1
| | | | | | | Approved by: wxs (mentor) Notes: svn path=/head/; revision=191886
* Adding myself as a ports committerSteven Kreuzer2009-05-071-0/+3
| | | | | | | Approved by: wxs (mentor) Notes: svn path=/head/; revision=191885
* s/ath0/wlan0/ since we no longer use the real device directly.Ed Maste2009-05-071-3/+3
| | | | Notes: svn path=/head/; revision=191884
* Linux exports HZ value to user space via AT_CLKTCK auxiliary vector entry,Dmitry Chagin2009-05-071-3/+1
| | | | | | | | | | | | | | | | which is available for Glibc as sysconf(_SC_CLK_TCK). If AT_CLKTCK entry is not exported, Glibc uses 100. linux_times() shall use the value that is exported to user space. Pointyhat to: dchagin PR: kern/134251 Approved by: kib (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=191883
* Add tcsetsid(3).Ed Schouten2009-05-077-7/+118
| | | | | | | | | | | | | | The entire world seems to use the non-standard TIOCSCTTY ioctl to make a TTY a controlling terminal of a session. Even though tcsetsid(3) is also non-standard, I think it's a lot better to use in our own source code, mainly because it's similar to tcsetpgrp(), tcgetpgrp() and tcgetsid(). I stole the idea from QNX. They do it the other way around; their TIOCSCTTY is just a wrapper around tcsetsid(). tcsetsid() then calls into an IPC framework. Notes: svn path=/head/; revision=191882
* Change linux struct tms definition to match actual linux one.Dmitry Chagin2009-05-071-4/+4
| | | | | | | | Approved by: kib (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=191880
* Add preliminary KTR(9) support to the linux emulation layer.Dmitry Chagin2009-05-073-2/+34
| | | | | | | | Approved by: kib (mentor) MFC after: 1 month Notes: svn path=/head/; revision=191877
* To avoid excessive code duplication move MI definitions to the MIDmitry Chagin2009-05-074-16/+11
| | | | | | | | | | header file. As it is defined in Linux. Approved by: kib (mentor) MFC after: 1 month Notes: svn path=/head/; revision=191876
* Return EAFNOSUPPORT instead of EINVAL in case when the incorrect orDmitry Chagin2009-05-071-1/+1
| | | | | | | | | unsupported domain argument is specified. Approved by: kib (mentor) Notes: svn path=/head/; revision=191875
* Eliminate an incorrect comment.Alan Cox2009-05-071-2/+0
| | | | Notes: svn path=/head/; revision=191874
* Define the kernel pmap in the same way on arm as on every otherAlan Cox2009-05-072-5/+2
| | | | | | | | | | | architecture. Eliminate an unused definition. Tested by: cognet Notes: svn path=/head/; revision=191873
* Rework r191742.Dmitry Chagin2009-05-071-5/+12
| | | | | | | | | | | | | | | | | | Use the protocol family constants for the domain argument validation. Return EAFNOSUPPORT in case when the incorrect domain argument is specified. Return EPROTONOSUPPORT instead of passing values that are not 0 to the BSD layer. Suggested by: rwatson Approved by: kib (mentor) MFC after: 1 month Notes: svn path=/head/; revision=191871
* Add the Sierra AC885U and increase the max ports to 8.Andrew Thompson2009-05-071-1/+2
| | | | Notes: svn path=/head/; revision=191870
* - Fix the u3g port detection where it would not calculate the correct number ofAndrew Thompson2009-05-071-50/+43
| | | | | | | | ports when multiple interfaces are present. - Claim all interfaces regardless of how many are attached Notes: svn path=/head/; revision=191869
* Use vendor and product macro expansion to make the device table smaller andAndrew Thompson2009-05-071-57/+56
| | | | | | | more readable. Notes: svn path=/head/; revision=191868
* optimize ath_tx_findrix: there's no need to walk the rates table asSam Leffler2009-05-071-20/+18
| | | | | | | | | | | sc_rixmap is an inverse map NB: could eliminate the check for an invalid rate by filling in 0 for invalid entries but the rate control modules use it to identify bogus rates so leave it for now Notes: svn path=/head/; revision=191866
* o cleanup checks for which vap combinations are permitted and what toSam Leffler2009-05-061-20/+32
| | | | | | | | | use for ic_opmode o fixes the case where creating ahdemo+wds vaps caused ic_opmode to be set to hostap Notes: svn path=/head/; revision=191865
* add support for the Beacon Not Ready (BNR) interruptSam Leffler2009-05-063-2/+14
| | | | | | | (available on 5211 and later) Notes: svn path=/head/; revision=191864
* Use the good hints for the NSLU, it should fix the network adapter.Olivier Houchard2009-05-061-6/+6
| | | | | | | | PR: arm/134092 Submitted by: gavin Notes: svn path=/head/; revision=191858
* fix grammar...John-Mark Gurney2009-05-061-1/+1
| | | | | | | Reviewed by: cperciva Notes: svn path=/head/; revision=191857