summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Reference the vmspace of the process being inspected by procfs, linprocfskib2008-12-123-5/+31
| | | | | | | | and sysctl kern_proc_vmmap handlers. Reported and tested by: pho Reviewed by: rwatson, des MFC after: 1 week
* The userland_sysctl() function retries sysctl_root() until returnedkib2008-12-122-3/+9
| | | | | | | | | | | | | | | | | | | error is not EAGAIN. Several sysctls that inspect another process use p_candebug() for checking access right for the curproc. p_candebug() returns EAGAIN for some reasons, in particular, for the process doing exec() now. If execing process tries to lock Giant, we get a livelock, because sysctl handlers are covered by Giant, and often do not sleep. Break the livelock by dropping Giant and allowing other threads to execute in the EAGAIN loop. Also, do not return EAGAIN from p_candebug() when process is executing, use more appropriate EBUSY error [1]. Reported and tested by: pho Suggested by: rwatson [1] Reviewed by: rwatson, des MFC after: 1 week
* Remove the offer to install Linux compatibility on i386 in the mainlinekensmith2008-12-124-31/+0
| | | | | portion of sysinstall. Leave it to be treated as a regular package along with all the other packages...
* Begin the sysinstall cleanup. Remove the support for configuring OSFkensmith2008-12-124-25/+0
| | | | binary compatibility.
* Do not leak defs_de_interlock on error.kib2008-12-121-1/+3
| | | | Another pointy hat for my collection.
* fix support and capabilitieskmacy2008-12-121-4/+5
| | | | MFC after: 3 days
* - Drop a reference to an older 'kdb' debugger that FreeBSD never had.jhb2008-12-121-7/+2
| | | | | - Tweak a word choice. - Drop a reference to Alpha.
* Bump __FreeBSD_version for the new VOP_VPTOCNP addition.marcus2008-12-121-1/+1
| | | | Approved by: kib (implicit)
* RTF_RNH_LOCKED needs to be passed in the flags arg not report,kmacy2008-12-121-1/+1
| | | | apologies to thompsa
* Pass RTF_RNH_LOCKED to rtalloc1 sunce the node head is locked, this avoids athompsa2008-12-121-1/+1
| | | | | | recursive lock panic on inet6 detach. Reviewed by: kmacy
* Consider processes attaching/detaching from tun(4) devices as being linkcsjp2008-12-121-0/+2
| | | | | | | | | | | state changes. This change modifies tunopen and tunclose to call the if_link_state_change() function. Among other things, this will result in devd(8) receiving events from devctl(4) for linkup/link down. This allows us to do several useful things, including initializing tunnel parameters and adding routes. Discussed on: freebsd-net@ MFC after: 2 weeks
* It seems there are still issues on multicast perfect filtering.yongari2008-12-121-1/+1
| | | | | | | Disable it until I find spare time to analyze the issue. Reported by: Goran Lowkrantz <glz <> hidden-powers DOT com> MFC after: 3 days
* Add a man page for VOP_VPTOCNP.marcus2008-12-122-0/+111
| | | | | Reviewed by: arch Approved by: kib
* Implement VOP_VPTOCNP for devfs. Directory and character device vnodes aremarcus2008-12-121-0/+65
| | | | | | | properly translated to their component names. Reviewed by: arch Approved by: kib
* Add a simple VOP_VPTOCNP implementation for deadfs which returns EBADF.marcus2008-12-121-0/+1
| | | | | Reviewed by: arch Approved by: kib
* Add a new error VOP, VOP_ENOENT. This function will simply return ENOENT.marcus2008-12-121-0/+2
| | | | | Reviewed by: arch Approved by: kib
* Add a new VOP, VOP_VPTOCNP, which translates a vnode to its component namemarcus2008-12-123-24/+95
| | | | | | | | | | | | | | | | on a best-effort basis. Teach vn_fullpath to use this new VOP if a regular VFS cache lookup fails. This VOP is designed to supplement the VFS cache to provide a better chance that a vnode-to-name lookup will succeed. Currently, an implementation for devfs is being committed. The default implementation is to return ENOENT. A big thanks to kib for the mentorship on this, and to pho for running it through his stress test suite. Reviewed by: arch Approved by: kib
* Remove superfluous return statements from the end of void functions.thompsa2008-12-1168-1305/+0
|
* Format and wrap function declarations.thompsa2008-12-1166-778/+1060
|
* Add entry for if_transmit and if_qflushkmacy2008-12-111-1/+20
|
* Add kqueue()-support to pseudo-terminal master devices.ed2008-12-111-0/+107
| | | | | | | | | | | | | One thing I didn't expect many applications to use, was kqueue() on pseudo-terminal master devices. There are applications that use kqueue() on the TTY itself (rtorrent, etc). That doesn't mean we shouldn't implement this. Libraries like libevent use kqueue() by default, which means they wouldn't be able to use kqueue(). The old TTY layer implements a very broken version of kqueue() by performing the actual polling on the TTY device. Discussed with: peter
* Add entries for some Option, Sierra and Stelera 3G cards.thompsa2008-12-111-0/+8
|
* Don't forget to add "npts" to rlimit_ident[] as well.ed2008-12-111-1/+2
| | | | | | | | | When I added RLIMIT_NPTS, I forgot to add it to rlimit_ident[]. Make sure the rlimit_ident[] array is always RLIM_NLIMITS elements big. So if we ever forget to add new rlimits to this list again. it will contain a null pointer, instead of random data. Spotted by: rwatson
* Fix a leak introduced in r185902. We should free the devspec ifps2008-12-111-0/+1
| | | | we've successfully found a zfs pool.
* Put a global variables, which were virtualized but formerlybz2008-12-1114-19/+37
| | | | | | | | | | | | | missed under VIMAGE_GLOBAL. Start putting the extern declarations of the virtualized globals under VIMAGE_GLOBAL as the globals themsevles are already. This will help by the time when we are going to remove the globals entirely. While there garbage collect a few dead externs from ip6_var.h. Sponsored by: The FreeBSD Foundation
* Put the VIMAGE options together in one place.bz2008-12-111-1/+1
| | | | Sponsored by: The FreeBSD Foundation
* Order #includes - also to reduce diffs with vimage branches in p4.bz2008-12-111-5/+4
| | | | Sponsored by: The FreeBSD Foundation
* Use the correct INIT_VNET_INET() as the virtualized variable herebz2008-12-111-1/+1
| | | | | | are in vinet.h not in vinet6.h Sponsored by: The FreeBSD Foundation
* Add constants for fields in the local APIC error status register and ajhb2008-12-116-0/+44
| | | | routine to read it.
* Error in case anyone tried to compile with both options VIMAGE andbz2008-12-111-0/+4
| | | | | | the (temporary) option VIMAGE_GLOBALS. Sponsored by: The FreeBSD Foundation:
* Whitespace changes only - tabs must have been converted to spacesbz2008-12-111-5/+5
| | | | | | somehow, when moving the code from p4 to svn. Sponsored by: The FreeBSD Foundation
* Add missing "goto set_head" for SO_IPX_CHECKSUM; otherwise we fall throughrwatson2008-12-111-0/+1
| | | | | | | | to the SO_HEADERS_ON_OUTPUT case and set that instead. MFC after: 1 week Found with: Coverity Prevent(tm) Coverity ID: 3988
* Push mips support into the tree.imp2008-12-113-0/+30
|
* Push mips support into the tree.imp2008-12-113-1/+32
|
* Push mips support for ld into the tree.imp2008-12-115-0/+40
|
* Push mips support for as into the tree.imp2008-12-113-0/+27
|
* Remove redundant assignment.imp2008-12-111-3/+0
|
* Apply the same defaults to https as to http.des2008-12-111-2/+3
| | | | | Submitted by: Mike Tancsa <mike@sentex.net> MFC after: 1 week
* Update to the interrupt handling code:imp2008-12-111-35/+58
| | | | | | | | | | | | | | | | o Try to be smarter about reading the ExCA CSC register. Now, we only do it for 16-bit cards. Add some experimental code to treat it like a power interrupt, but I'm not 100% sure that I like it. It may be removed upon further testing. It seemed to help in one test case, but the evidence may be inconclusive. This may be beneficial for cleaning up exca_reset and exca_wait_ready. o Check for CSTS events on the socket event register. We ask for it when we're powering up a card, but I don't think we're otherwise using it. Just ACK the interrupt for now. In theory, we can use it instead of the busy wait we do in cbb_cardbus_reset. More research is necessary to see if we can optimize things there when we're waiting for the DEVVENDOR register to become valid. o Rework the comments a bit. Minor tidying up. Etc.
* add missing breaksam2008-12-111-1/+2
| | | | Coverity ID: 4159
* add missing breaksam2008-12-111-1/+2
| | | | Coverity ID: 4151
* Consolidate some variable initializations. No substantive change.das2008-12-112-13/+13
|
* Make WOL work on RTL8168B. This controller seems to requireyongari2008-12-112-0/+6
| | | | | | explicit command to enable Rx MAC prior to entering D3. Tested by: Cyrus Rahman <crahman <> gmail DOT com>
* Avoid a double free in devopen by not freeing the device structureps2008-12-111-1/+0
| | | | | in zfs_dev_open. This stops a panic in the loader when trying to read from a zfs device and no zfs devices exist.
* Don't access undocumented register 0x82 on controllers thatyongari2008-12-112-2/+16
| | | | | | | have no such register. While here clear undocumented PHY register 0x0B for RTL8110S. Obtained from: RealTek FreeBSD driver
* Newer RealTek controllers requires setting stop request bit toyongari2008-12-112-3/+11
| | | | terminate active Tx/Rx operation.
* Correctly check the number of prison states to not access anythingbz2008-12-113-6/+6
| | | | | | | | | | | | outside the prison_states array. When checking if there is a name configured for the prison, check the first character to not be '\0' instead of checking if the char array is present, which it always is. Note, that this is different for the *jailname in the syscall. Found with: Coverity Prevent(tm) CID: 4156, 4155 MFC after: 4 weeks (just that I get the mail)
* Add 32-bit compat support for AIO.bz2008-12-111-0/+26
| | | | | | | jhb probably forgot to commit this file with r185878 and will want to review this. It unbreaks the build here. Obtained from: p4 //depot/user/jhb/lock/compat/freebsd32/freebsd32_signal.h#2
* Always put controller into known state before device intialization.yongari2008-12-111-7/+5
| | | | | While here remove re_reset calls invoked in system error case as controller reset is always done in device initialization.
* Partly revert r185756. RTL8169SC doesn't like reduced delays inyongari2008-12-111-2/+2
| | | | | | | | GMII access while Tx/Rx is in progress. Reported by: Jaakko Heinonen <jh <> saunalahti DOT fi>, Anton Yuzhaninov <citrin <> citrin DOT ru> Tested by: Jaakko Heinonen <jh <> saunalahti DOT fi>
OpenPOWER on IntegriCloud