summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Move "is consumer attached?" check before G_VALID_PROVIDER() check,pjd2004-03-181-1/+1
| | | | | | | because if consumer is not attached, its provider never will be valid, so we never reach this check. Approved by: phk
* Removed a vestige of the stl driver.bde2004-03-181-312/+0
|
* Document machdep.hlt_cpus.obrien2004-03-181-1/+2
| | | | Submitted by: Craig Rodrigues <rodrigc@crodrigues.org>
* Back out code for auto-gdb detection that accidentally leaked into thenjl2004-03-181-17/+5
| | | | | | | bus_alloc_resource_any commit. Submitted by: bde Pointy-hat: njl
* Support the DPF (start dependent function) resource type in parsing _PRS.njl2004-03-181-10/+21
| | | | | | This should fix this error people get attaching cardbus controllers: pcib0: _PRS resource entry has unsupported type 2
* Regen after 1.169 of usbdevs.sobomax2004-03-182-2/+23
|
* Add support for Crystalfontz CFA-632, CFA-633 and CFA-634, all of themsobomax2004-03-182-0/+9
| | | | | | | | | | | are based on the same USB->COM bridge, but have different product IDs. PR: Submitted by: Reviewed by: Approved by: Obtained from: http://www.tnpi.biz/computing/freebsd/crystalfontz.shtml MFC after: 3 days
* Cleanup hints, given that no hammer machine have (nor ever will have)obrien2004-03-181-47/+0
| | | | | | ISA slots. Submitted by: Peter
* Revise socow_iodone() in light of recent sf_buf changes. Specifically,alc2004-03-171-5/+9
| | | | | | use sf_buf_free() instead of sf_buf_mext() to consolidate all actions that require the page queues lock in one critical section. While I'm here remove unnecessary splvm() and splx() calls.
* Eliminate bogus usage of WI_RSSI_TO_DBM(). Not only does it boguslygreen2004-03-171-4/+2
| | | | | | clip/destroy the dB value contained in the wi(4)'s receive frames, it doesn't match with the flag set in the radiotap header (unperturbed dB versus dBm).
* Fix border error to allow systems that specify 100 for latency also usenjl2004-03-171-2/+2
| | | | | | | C2 and 1000 to use C3. Submitted by: Bruno Ducrot <ducrot@poupinou.org> Tested by: Scott Lambert <lambert@lambertfam.org>
* sync comment with i386's isa.c.. This removes a comment that is YEARSjmg2004-03-174-12/+4
| | | | old...
* Style(9) round for the pf kernel parts. Mostly #if defined() -> #ifdefmlaier2004-03-1710-323/+283
| | | | | | | | Also set HOOK_HACK to true (remove the related #ifdef's) as we have the hooks in the kernel this was missed during the merge from the port. Noticed by: Amir S. (for the HOOK_HACK part) Approved by: bms(mentor)
* Add a comment with an explanation why we don't report EPIPE errors onpjd2004-03-171-0/+5
| | | | | | nfs sockets. Requested by: ru
* - Replace wait1() with a kern_wait() function that accepts the pid,jhb2004-03-177-190/+105
| | | | | | | | | | | | | | | options, status pointer and rusage pointer as arguments. It is up to the caller to copyout the status and rusage to userland if needed. This lets us axe the 'compat' argument and hide all that functionality in owait(), by the way. This also cleans up some locking in kern_wait() since it no longer has to drop locks around copyout() since all the copyout()'s are deferred. - Convert owait(), wait4(), and the various ABI compat wait() syscalls to use kern_wait() rather than wait1() or wait4(). This removes a bit more stackgap usage. Tested on: i386 Compiled on: i386, alpha, amd64
* remove stale comment since these limits have been increased YEARS ago...jmg2004-03-171-3/+1
|
* Don't report EPIPE errors on nfs sockets. These can be due to idle tcppjd2004-03-171-2/+5
| | | | | | mounts which will be closed by netapp, solaris, etc. if left idle too long. Obtained from: NetBSD
* Convert callers to the new bus_alloc_resource_any(9) API.njl2004-03-17267-1125/+1090
| | | | | Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde
* Add bus_alloc_resource_any(9), which does bus_alloc_resource() with thenjl2004-03-171-0/+6
| | | | | | | | appropriate default values. Document it in the manpage. Submitted by: Mark Santcroos <marks@ripe.net> Reviewed by: imp, dfr, bde Abstains: bde
* Fix information leakage.pjd2004-03-171-1/+6
| | | | | | | | | | | | | Without this fix it is possible to cheat policies like: - sysctl security.bsd.see_other_[gu]ids=0, - mac_seeotheruids(4), - jail(2) and get full processes list with their arguments. This problem exists from revision 1.62 of kern_proc.c when it was introduced. Reviewed by: nectar, rwatson.
* Make ddp_ports static, as it's not used outside of ddp_usrreq.c.rwatson2004-03-173-3/+2
| | | | | Inspired by: Day spent hiking to hot springs in Taiwan Powered by: Asia BSDCon 2004
* Adjust the number of processes waiting on a semaphore properly if we'recperciva2004-03-171-6/+12
| | | | | | | | woken up in the middle of sleeping. PR: misc/64347 Reviewed by: tjr MFC after: 7 days
* Adjust $FreeBSD$'s.obrien2004-03-172-5/+1
|
* Remove tun_proc; replace with tun_pid. tun_proc pointer may be stalerwatson2004-03-171-7/+14
| | | | | | | | as the process that opens tun_softc can exit before the file descriptor is closed. Taiwan experience provided by: keichii Crashing breakers provided by: Chia-liang Kao <clkao@clkao.org>
* Add tap_mtx to tap_softc in order to protect per-softc variablesrwatson2004-03-172-2/+44
| | | | | | | (tap_pid, tap_flags). if_tap should now be entirely MPSAFE. Committed from: Bamboo house by ocean in Taiwan Tropical paradise provided by: Chia-liang Kao <clkao@clkao.org>
* Implement "arlconfig arlX quality".fjoe2004-03-163-41/+103
| | | | | | Man pages fixes. Submitted by: Stanislav A. Svirid <count@riss-telecom.ru>
* Avoid doing bawrite to initialize inode block while holding cylinderkan2004-03-161-1/+3
| | | | | | | | | | group block locked. If filesystem has any active snapshots, bawrite can come back trying to allocate new snapshot data block from the same cylinder group and cause panic due to recursive lock attempt. PR: 64206 Reviewed by: mckusick Tested by: pjd
* Run through indent(1) so I can read the code without getting a headache.des2004-03-1614-5317/+5233
| | | | | The result isn't quite knf, but it's knfer than the original, and far more consistent.
* Add explicit dependency on "ether", since we use ether_ifattach().mux2004-03-161-0/+1
|
* Refactor the existing machine-dependent sf_buf_free() into a machine-alc2004-03-1610-127/+48
| | | | | | | | | | dependent function by the same name and a machine-independent function, sf_buf_mext(). Aside from the virtue of making more of the code machine- independent, this change also makes the interface more logical. Before, sf_buf_free() did more than simply undo an sf_buf_alloc(); it also unwired and if necessary freed the page. That is now the purpose of sf_buf_mext(). Thus, sf_buf_alloc() and sf_buf_free() can now be used as a general-purpose emphemeral map cache.
* Remove a bogus assertion and readd it in a more correct location. A threadjhb2004-03-161-1/+1
| | | | | | | | | might be enqueued on a sleep queue but not be asleep when the timeout fires if it is blocked on a lock trying to check for pending signals before going to sleep. In the case of fixing up the TDF_TIMEOUT race, however, the thread must be marked asleep. Reported by: kan (the bogus one)
* Update the SiS support to distinguish older southbridges better.sos2004-03-162-9/+21
|
* Add powerpc to temporary fix. The new cpu device claims allgrehan2004-03-161-2/+2
| | | | | 'generic' OpenFirmware nexus nodes, since it uses bus_generic_probe. Maybe the cpu device probe should be MD.
* Move the arl to i386 only.nyan2004-03-161-1/+1
|
* Don't use the pcic polling.nyan2004-03-161-1/+1
|
* Remove the module reference for RAIDframescottl2004-03-161-1/+0
|
* Remove RAIDFrame. It hasn't worked since GEOM replaced the old diskscottl2004-03-16138-42458/+0
| | | | | | mini-layer. I don't have time to bing it forward into the GEOM world, and no one else has stepped forward to claim it. It'll be in the Attic for safe keeping for now.
* Nudge Giant as far as I can into kern_open(). Mark open() as MPSAFE.dwmalone2004-03-167-26/+30
| | | | | | | | Use kern_open() to implement creat() rather than taking the long route through open(). Mark creat as MPSAFE. While I'm at it, mark nosys() (syscall 0) as MPSAFE, for all the difference it will make.
* Get ready to mark open, creat and nosys as MPSAFE.dwmalone2004-03-161-3/+3
|
* Use vfs_nmount() to mount linprocfs filesystems in linux_mount();tjr2004-03-161-4/+21
| | | | linprocfs doesn't support the old mount interface.
* Make vfs_nmount() public. The Linux emulator needs this in order to mounttjr2004-03-162-2/+2
| | | | linprocfs filesystems.
* Correct size argument passed to copyinstr() in linux_mount(): mntfromnametjr2004-03-161-2/+2
| | | | and mntonname are both MNAMELEN characters long, not MFSNAMELEN.
* Rename the wiredlen member of struct sysctl_req to validlen and alwaystruckman2004-03-162-15/+17
| | | | | | | | | | | | set it to avoid the need for a bunch of code that tests whether or not the lock member is set to REQ_WIRED in order to determine which length member should be used. Fix another bug in the oldlen return value code. Fix a potential wired memory leak if a sysctl handler uses sysctl_wire_old_buffer() and returns an EAGAIN error to trigger a retry.
* Don't bother calling vslock() and vsunlock() if oldlen is zero.truckman2004-03-161-7/+9
| | | | | | | | | | | | If vslock() returns ENOMEM, sysctl_wire_old_buffer() should set wiredlen to zero and return zero (success) so that the handler will operate according to sysctl(3): The size of the buffer is given by the location specified by oldlenp before the call, and that location gives the amount of data copied after a successful call and after a call that returns with the error code ENOMEM. The handler will return an ENOMEM error because the zero length buffer will overflow.
* Regenerate.jhb2004-03-159-14/+14
|
* - Mark ABI syscalls that call wait4() MP safe as recent changes tojhb2004-03-153-5/+5
| | | | | | the kernel wait4() made these all panic() implementations otherwise. - The i386 linux_ptrace() syscall is MP safe. Alpha was already marked MP safe.
* Add arl(4): driver for Aironet Arlan 655 wireless adapters.fjoe2004-03-157-0/+1656
| | | | MFC after: 2 weeks
* The PPS code needs to be much more brutal to avoid synchronism onphk2004-03-151-14/+32
| | | | hardware with non-sucky clocks.
* Regen for ptrace being safe again.jhb2004-03-155-6/+6
|
* Drop the proc lock around calls to the MD functions ptrace_single_step(),jhb2004-03-152-7/+12
| | | | | | | | | | ptrace_set_pc(), and cpu_ptrace() so that those functions are free to acquire Giant, sleep, etc. We already do a PHOLD/PRELE around them so that it is safe to sleep inside of these routines if necessary. This allows ptrace() to be marked MP safe again as it no longer triggers lock order reversals on Alpha. Tested by: wilko
OpenPOWER on IntegriCloud