aboutsummaryrefslogtreecommitdiff
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Get ready to mark open, creat and nosys as MPSAFE.David Malone2004-03-161-3/+3
| | | | Notes: svn path=/head/; revision=127061
* Use vfs_nmount() to mount linprocfs filesystems in linux_mount();Tim J. Robbins2004-03-161-4/+21
| | | | | | | linprocfs doesn't support the old mount interface. Notes: svn path=/head/; revision=127059
* Make vfs_nmount() public. The Linux emulator needs this in order to mountTim J. Robbins2004-03-162-2/+2
| | | | | | | linprocfs filesystems. Notes: svn path=/head/; revision=127058
* Correct size argument passed to copyinstr() in linux_mount(): mntfromnameTim J. Robbins2004-03-161-2/+2
| | | | | | | and mntonname are both MNAMELEN characters long, not MFSNAMELEN. Notes: svn path=/head/; revision=127057
* Rename the wiredlen member of struct sysctl_req to validlen and alwaysDon Lewis2004-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. Notes: svn path=/head/; revision=127052
* Don't bother calling vslock() and vsunlock() if oldlen is zero.Don Lewis2004-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. Notes: svn path=/head/; revision=127050
* Regenerate.John Baldwin2004-03-159-14/+14
| | | | Notes: svn path=/head/; revision=127042
* - Mark ABI syscalls that call wait4() MP safe as recent changes toJohn Baldwin2004-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. Notes: svn path=/head/; revision=127041
* Add arl(4): driver for Aironet Arlan 655 wireless adapters.Max Khon2004-03-157-0/+1656
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=127040
* The PPS code needs to be much more brutal to avoid synchronism onPoul-Henning Kamp2004-03-151-14/+32
| | | | | | | hardware with non-sucky clocks. Notes: svn path=/head/; revision=127039
* Regen for ptrace being safe again.John Baldwin2004-03-155-6/+6
| | | | Notes: svn path=/head/; revision=127035
* Drop the proc lock around calls to the MD functions ptrace_single_step(),John Baldwin2004-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 Notes: svn path=/head/; revision=127034
* Add vectors for _snprintf() and _vsnprintf() (redirected straight toBill Paul2004-03-151-0/+2
| | | | | | | | | | | | snprintf() and vsnprintf() in FreeBSD kernel land). This is needed by the Intel Centrino 2200BG driver. Unfortunately, this driver still doesn't work right with Project Evil even with this tweak, but I'm unable to diagnose the problem since I don't have access to a sample card. Notes: svn path=/head/; revision=127026
* Move GID/UID_MAX under __BSD_VISIBLE protection.Max Laier2004-03-151-3/+3
| | | | | | | | Requested by: bde Approved by: bms(mentor) Notes: svn path=/head/; revision=127025
* Add SATA support fieldsSøren Schmidt2004-03-151-4/+14
| | | | Notes: svn path=/head/; revision=127021
* Remove sysctl security.jail.list_allowed.Pawel Jakub Dawidek2004-03-151-6/+1
| | | | | | | | | | This functionality was a misfeature, sysctl was added and turned off by default just to check if nobody complains. Reviewed by: rwatson Notes: svn path=/head/; revision=127020
* Add support for detaching PCI controllers.Søren Schmidt2004-03-157-97/+129
| | | | | | | | | This adds support for cardbus ATA/SATA controllers. I get roughly the same transfer speeds as on true PCI controllers. Nice to be able to add a couble of "real" disks to a laptop :) Notes: svn path=/head/; revision=127019
* Kill bogus isa compat opt file.Warner Losh2004-03-151-1/+1
| | | | Notes: svn path=/head/; revision=127018
* Temporarily comment out cy.Warner Losh2004-03-151-3/+2
| | | | | | | Remove COMPAT_OLDISA Notes: svn path=/head/; revision=127017
* including isa_device.h was historical in this file, remove itWarner Losh2004-03-153-3/+0
| | | | Notes: svn path=/head/; revision=127016
* Make overflow/wraparound checking more robust and unbreak len=0 inDon Lewis2004-03-152-16/+22
| | | | | | | | | vslock(), mlock(), and munlock(). Reviewed by: bde Notes: svn path=/head/; revision=127013
* Style(9) changes.Don Lewis2004-03-152-40/+11
| | | | | | | Pointed out by: bde Notes: svn path=/head/; revision=127008
* Revert to the original vslock() and vsunlock() API with the followingDon Lewis2004-03-153-39/+28
| | | | | | | | | | | | exceptions: Retain the recently added vslock() error return. The type of the len argument should be size_t, not u_int. Suggested by: bde Notes: svn path=/head/; revision=127007
* Remove redundant suser() check.Don Lewis2004-03-151-4/+0
| | | | Notes: svn path=/head/; revision=127006
* Lock down global variables in if_tap (primarily, the tap softc list);Robert Watson2004-03-151-3/+28
| | | | | | | | | | | | | | | | | | add tapmtx, which protects globale variables. Notes: - The EBUSY check in MOD_UNLOAD may be subject to a race. Moving the event handler unregister inside the mutex grab may prevent that race. - Locking of global variables safely is now possible because tapclones is only modified when the module is loading or unloading, thanks to phk's recent chang to clone_setup(). - softc locking to follow. Notes: svn path=/head/; revision=127003
* Shorten a long comment.David E. O'Brien2004-03-153-3/+3
| | | | Notes: svn path=/head/; revision=127002
* Don't reject FAT file systems with a number of "Heads" greater thanRobert Watson2004-03-141-1/+1
| | | | | | | | | 255; USB keychains exist that use 256 as the number of heads. This check has also been removed in Darwin (along with most of the other head/sector sanity checks). Notes: svn path=/head/; revision=126998
* Remove isa compat stuff.Warner Losh2004-03-149-453/+0
| | | | | | | | | | Only cy, bs and wd in the tree still use it. I have a replacement for cy that I need to test on ISA and PCI cards. bs and wd are pc98 only drivers that appear to no longer be necessary. I'll be removing them when I hear back from the pc98 people. Notes: svn path=/head/; revision=126996
* comment out bs and wd entries in the hintsWarner Losh2004-03-141-16/+16
| | | | Notes: svn path=/head/; revision=126995
* Comment out the cy driver until I can make sure that the new cy driverWarner Losh2004-03-141-2/+3
| | | | | | | I have for it works. Notes: svn path=/head/; revision=126993
* The gsc driver uses the old COMPAT_ISA api. Retire it so we canWarner Losh2004-03-145-975/+0
| | | | | | | | retire the COMPAT_ISA shims. If someone were to redo this driver with the new APIs and test it, it can return. Notes: svn path=/head/; revision=126990
* Hints for the le driver are no longer necessary here.Warner Losh2004-03-141-5/+0
| | | | | | | Noticed by: ru Notes: svn path=/head/; revision=126988
* The rdp driver uses the COMPAT_OLD api. This is being retired, soWarner Losh2004-03-144-1590/+0
| | | | | | | | | this driver is being retired. Remove it from the tree. If someone wants to update it to the latest APIs and can test the hardware, it can return to the tree. Notes: svn path=/head/; revision=126985
* The spigot driver uses the old COMPAT_ISA interface. Retire it sinceWarner Losh2004-03-144-402/+0
| | | | | | | | that's going away soon. Should someone reimplement it using modern APIs and can test the driver, it can return. Notes: svn path=/head/; revision=126984
* The le driver uses ISA_COMPAT, which is going away soon. Retire itWarner Losh2004-03-146-2328/+0
| | | | | | | | and releated files. If someone wants to fix it to use the new APIs and test it, it can be brought back. Notes: svn path=/head/; revision=126982
* Regen.Josef Karthauser2004-03-142-2/+9
| | | | Notes: svn path=/head/; revision=126980
* Add support for Handspring TREO 600.Josef Karthauser2004-03-142-0/+2
| | | | | | | | Submitted by: Tuc <tuc@ttsg.com> MFC after: 1 week Notes: svn path=/head/; revision=126979
* When taking event callbacks (like process_exit) out from under Giant, thoseBrian Feldman2004-03-141-0/+2
| | | | | | | which do not lock Giant themselves will be exposed. Unbreak pfs_exit(). Notes: svn path=/head/; revision=126975
* Annual NTP kernel code spring-cleaning:Poul-Henning Kamp2004-03-141-8/+11
| | | | | | | | | Use int64_t rather than long long for the fixpoint type. Don't discard fractional nanosecond frequency correction. Notes: svn path=/head/; revision=126974
* MFi386: Remove the stl and stli drivers.Yoshihiro Takahashi2004-03-141-19/+0
| | | | Notes: svn path=/head/; revision=126971
* MFi386: revision 1.29.Yoshihiro Takahashi2004-03-141-2/+2
| | | | Notes: svn path=/head/; revision=126970
* MFi386: revision 1.76.Yoshihiro Takahashi2004-03-141-2/+5
| | | | Notes: svn path=/head/; revision=126969
* Removed duplicate __FBSDID(). Keep the one that style(9) likes.Ruslan Ermilov2004-03-141-3/+0
| | | | Notes: svn path=/head/; revision=126967
* Announce ethernet MAC addresss in ether_ifattach().Matthew N. Dodd2004-03-1454-201/+12
| | | | Notes: svn path=/head/; revision=126966
* stl and stli use the old COMPAT_ISA api. slt also uses the really oldWarner Losh2004-03-147-7984/+0
| | | | | | | | | | | COMPAT_PCI api. This API is going away, so this driver is going away also. If users are interested in updating this, please contact the author since he has some preliminary work to move this to newer APIs. Notes: svn path=/head/; revision=126964
* Calculate NFS timeouts in units of 10ms, not 5ms. This matches the defaultPeter Wemm2004-03-143-3/+3
| | | | | | | | | clock precision on i386. This is a NOP change on i386. But this stops the mount_nfs units from suddenly changing to units of 1/20 of a second (vs the normal 1/10 of a second) if HZ is increased. Notes: svn path=/head/; revision=126962
* Set default HZ to 1024 for amd64. The comment in kern/tty.c doesn'tPeter Wemm2004-03-141-0/+4
| | | | | | | | apply here because we have 64 bit longs and don't suffer the hz > 169 overflows. Notes: svn path=/head/; revision=126959
* Fixed misspellings of 0 as NULL.Bruce Evans2004-03-141-2/+2
| | | | Notes: svn path=/head/; revision=126958
* remove the ioctl files from the asc, ctx and wt drivers just removedWarner Losh2004-03-143-114/+0
| | | | Notes: svn path=/head/; revision=126957
* Remove straggler from gp driver removalWarner Losh2004-03-141-27/+0
| | | | Notes: svn path=/head/; revision=126956