summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove macrosimura2005-09-195-68/+26
| | | | | htole{s,l,q}, letoh{s,l,q}, htobe{s,l,q}, betoh{s,l,q} and replace it with more standard byteorder macros in our system.
* Dont wait for READY on ATAPI_IDENTIFY.sos2005-09-191-1/+5
| | | | | Fixes the losage of some ATAPI device that reported failed probing with "timeout waiting for read DRQ".
* Add an option to stop 'mouse drift' in some defective/cheap mice. This stopsphilip2005-09-192-4/+89
| | | | | | | | | the pointer slowly wandering away on its own in an annoying way when the mouse isn't physically moved. PR: bin/83970 Submitted by: Lena -at- lena.kiev.ua X-MFC after: 6.0-RELEASE
* Fix configuration locking in MD.phk2005-09-191-116/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove md_mtx. Remove GIANT from the mdctl device driver and avoid DROP_GIANT, PICKUP_GIANT and geom events since we can call into GEOM directly now. Pick up Giant around vn_close(). Apply an exclusive sx around mdctls ioctl and preloading to protect lists etc.. Don't initialize our lock (md_mtx or md_sx) from a SYSINIT when there is a perfectly good pair of _fini/_init functions to do it from. Prune any final fractional sector from the mediasize to keep GEOM happy. Cleanups: Unify MDIOVERSION check in (x)mdctlioctl() Add pointer to start() routine to softc to eliminate a switch{} Inline guts of mddetach(). Always pass error pointer to mdnew(), simplify implementation.
* o Extend the suite to run more than just the driver. We need to runmarcel2005-09-192-72/+75
| | | | | | mdconfig(8), because we need a disk to work on. o Extend the number of tests now that we have a disk. o Simplify the driver. All parameters are ASCII strings now.
* Last change to this file actually removed the oldcard compat code.imp2005-09-191-2/+1
| | | | This change removes one last K&Rism.
* Make sure that we call if_free(ifp) after bus_teardown_intr. Since weimp2005-09-1931-62/+55
| | | | | | | could get an interrupt after we free the ifp, and the interrupt handler depended on the ifp being still alive, this could, in theory, cause a crash. Eliminate this possibility by moving the if_free to after the bus_teardown_intr() call.
* Add the beginnings of a testsuite for testing GPT control requests.marcel2005-09-192-0/+223
| | | | | | | | | | | | The testsuite is based on a simple driver program that builds a request from the arguments passed to it and issues the request to Geom. The driver emits FAIL with the error string or PASS depending on whether the request completed with an error or not. A -v option has been added to the driver and causes the request to be dumped. The -v option to prove(1) controls the -v option to the driver. The testsuite itself contains a hash of which the key constitutes the arguments and the value is the expected result.
* o Don't cause a panic when the control request lacks a verb.marcel2005-09-181-5/+9
| | | | | o Don't set the error twice when the named class does not exist. It causes ioctl(2) to return with error EEXIST.
* Move the UUID generator into its own function, called kern_uuidgen(),marcel2005-09-182-29/+41
| | | | | | so that UUIDs can be generated from within the kernel. The uuidgen(2) syscall now allocates kernel memory, calls the generator, and does a copyout() for the whole UUID store. This change is in support of GPT.
* Add three new read-only socket options, which allow regression testsrwatson2005-09-182-0/+20
| | | | | | | | | | | | | | | and other applications to query the state of the stack regarding the accept queue on a listen socket: SO_LISTENQLIMIT Return the value of so_qlimit (socket backlog) SO_LISTENQLEN Return the value of so_qlen (complete sockets) SO_LISTENINCQLEN Return the value of so_incqlen (incomplete sockets) Minor white space tweaks to existing socket options to make them consistent. Discussed with: andre MFC after: 1 week
* No ED_NO_MIIBUS no more. Not one more or the same number of non positive ↵imp2005-09-181-1/+0
| | | | options
* MFp4:imp2005-09-183-125/+149
| | | | | | | | | | | | | | | | | | o eliminate the ED_NO_MIIBUS option. Now, you need miibus to use ed with pccard. If you have an old ISA or PCI card w/o a miibus, then you'll still be able to use the ed driver w/o miibus in the kernel. If you have pccard you'll need mii now. Most pccards these days have miibus, and many cards have ISSUES if you don't attach miibus. issues I don't want to constantly rediagnose. - Add new media_ioctl, mediachg and tick function pointers. The core driver will call these if they aren't NULL, or return an error if they are. - migrate remaining mii code into if_ed_pccard. o include some notes from my datasheet fishing. this may allow us to get media status from some pccards. o Fix one bug that's common to many drivers. call if_free(ifp) after we tear down the interrupt. ed_intr() depends on ifp being there and freeing it while interrupts can still happen is, ummm, bad.
* Open the tty device and pass the fd for SNPSTTY.cognet2005-09-181-2/+8
| | | | MFC after: 3 days
* Slightly change the API for the SNPSTTY ioctl so that the userland nowcognet2005-09-182-9/+16
| | | | | | | provides a file descriptor instead of a dev_t. Discussed with: phk MFC after: 3 days
* Just by allocating size*2 bytes we can't be sure that new size will be enough,ache2005-09-181-2/+2
| | | | | | | | | | | so change two if (size not enough) { reallocf(size*2); } into while (size not enough) { reallocf(size*2); }
* Take a first cut at cleaning up ifnet removal and multicast socketrwatson2005-09-183-8/+20
| | | | | | | | | | | | | | | | | | | | | | | panics, which occur when stale ifnet pointers are left in struct moptions hung off of inpcbs: - Add in_ifdetach(), which matches in6_ifdetach(), and allows the protocol to perform early tear-down on the interface early in if_detach(). - Annotate that if_detach() needs careful consideration. - Remove calls to in_pcbpurgeif0() in the handling of SIOCDIFADDR -- this is not the place to detect interface removal! This also removes what is basically a nasty (and now unnecessary) hack. - Invoke in_pcbpurgeif0() from in_ifdetach(), in both raw and UDP IPv4 sockets. It is now possible to run the msocket_ifnet_remove regression test using HEAD without panicking. MFC after: 3 days
* In mountd_precmd(), use rc_args, not mountd_args torodrigc2005-09-181-2/+2
| | | | | | | | | | override the value of mountd_args. This fixes the problem where mountd_args was not properly being set if weak_mountd_authentifcation="YES" was set in rc.conf. PR: conf/86260 Submitted by: Thierry Herbelot <thierry at herbelot dot com> MFC after: 3 days
* Add esp(4).brueffer2005-09-183-0/+5
| | | | MFC after: 3 days
* Change the DESCRIPTION section into HARDWARE, since it already listsbrueffer2005-09-181-2/+2
| | | | | | the supported hardware. MFC after: 3 days
* Use the correct function name as .Nm argument.brueffer2005-09-181-1/+1
| | | | | | PR: 86169 Submitted by: Toby Peterson <toby@apple.com> MFC after: 3 days
* Explain the use of `*' in master.passwd and that it's slightlykeramida2005-09-181-1/+11
| | | | | | | | different from the use of `*' in /etc/passwd. PR: docs/86234 Submitted by: Paul Hoffman <phoffman@above.proper.com> MFC after: 1 week
* Add the KLD to the sndstat info.netchild2005-09-181-1/+1
|
* Merge NetBSD fixes (except for 1.97 there should be no functional change):netchild2005-09-181-185/+237
| | | | | | | | | 1.94: ansify and KNF (NetBSD KNF). 1.95: Fix DPRINTF (bug from change in 1.94). 1.96: NetBSD specific. 1.97: Fix memory leak reported by Ted Unangst as bug #3 on tech-kern. Obtained from: NetBSD
* Add a regression test for listen()'s backlog argument, both at time ofrwatson2005-09-182-0/+389
| | | | | | | | creation and at time of update using an additional call to listen(). This test also exercises SO_LISTENQLIMIT, a forthcoming socket option that allows the retrieval (but not setting) of the queue limit. Discussed with: andre
* - In gem_ioctl() move the call to ether_ioctl() to the default case ofmarius2005-09-181-47/+29
| | | | | | | | | | | | | | | | | | | | | | | | | the switch statement in order to make this driver more like other Ethernet NIC drivers. - In gem_attach() call gem_stop() in addition to gem_reset() to make sure the chip actually is stopped and not just reset. - In gem_stop() also stop the gem_rint_timeout() callout in case the driver is compiled with GEM_RINT_TIMEOUT defined. Merge some locking improvements from hme(4): - Use callout_init_mtx() to close races between gem_stop() and gem_tick() as weel as gem_stop() and gem_rint() in case the driver is compiled with GEM_RINT_TIMEOUT defined. - Use the driver lock instead of Giant in a bus dma callback. - Lock the driver lock around mii operations. - Cleanup locking in gem_ioctl(). - Remove redundant assertions that the driver lock is not held in gem_attach() and gem_detach() since mtx_lock() will assert that already since the driver lock is not recursive. - Add callout_drain()'s to gem_detach() after calling gem_stop() to make sure that if softclock is running on another CPU and is blocked on our driver lock, we will wait until it has acquired the lock, seen that it was cancelled, dropped the lock, and awakened us so that we can safely destroy the mutex.
* Add a note pointing out that certain information (IP address, list ofcperciva2005-09-181-0/+15
| | | | | | files fetched, FreeBSD release level) is transmitted to the portsnap server when portsnap is run, but that this information is only used anonymously and in aggregate.
* ehcivar.h:netchild2005-09-184-12/+100
| | | | | | | | | | | | | | | | | | | | | | | | | | | Synchronise with NetBSD upto rev 1.19: - Allow 32 chars in the saved vendor string. - Some NetBSD-only changes. - Some missing parts (define, variable). ehci_pci.c: Add vendor ids for ATI and Philips. Add identification strings for the following: o ALi's M5239 o AMD 8111 o ATI SB200, SB400 o Intel 6300ESB, ICH4, ICH5, ICH7 o NVIDIA nForce 2, nForce 3, nForce 4 o Philips ISP156x ehcireg.h: We're at the same level as rev 1.18 from NetBSD. usb_port.h: NetBSD/OpenBSD specific things Obtained from: NetBSD via DragonFly No comment from: usb@
* Fix spelling in a comment.rwatson2005-09-181-1/+1
| | | | MFC after: 3 days
* Assert that (vp) is locked in fifo_close(), since we rely on therwatson2005-09-181-0/+1
| | | | | | | exclusive vnode lock to synchronize the reference counts on struct fifoinfo. MFC after: 3 days
* Re-comment sbcompress() to explain what it is it does; it took merwatson2005-09-182-14/+40
| | | | | | | | | | quite a bit of reading to figure it out, and I want to avoid figuring it out again. Convert an if (foo) else printf("this is almost a panic") into a KASSERT. MFC after: 3 days
* Sort the list of disk controllers by driver-name. The notable exception isbrueffer2005-09-182-62/+62
| | | | | | ata(4), which should stay on top. MFC after: 3 days
* Sort the list of ethernet devices by driver-name.brueffer2005-09-182-94/+94
| | | | MFC after: 3 days
* Sort list of supported hardware.brueffer2005-09-182-10/+10
| | | | MFC after: 3 days
* Don't claim matcd(4) support, it was removed long ago.brueffer2005-09-182-10/+0
| | | | MFC after: 3 days
* Introduce a kernel config for the Mandatory Access Control framework.csjp2005-09-187-0/+196
| | | | | | | | This kernel config briefly describes some of the major MAC policies available on FreeBSD. The hope is that this will raise the awareness about MAC and get more people interested. Discussed with: scottl
* Merged from src/sbin/fdisk/fdisk.c revision 1.81.nyan2005-09-181-1/+4
| | | | | | - Call gctl_free() to free resource allocated with gctl_get_handle(). MFC after: 3 days
* MFi386: pci attribute allocation fixes.imp2005-09-183-2/+6
|
* MFp4: Expose device_probe_child()imp2005-09-182-1/+2
|
* Expose legacy_pcib_alloc_resource, and use it in the mptable pci busimp2005-09-173-2/+4
| | | | | | | implementation, like other routines in the legacy bus. This should fix problems with resource allocation on MP systems without ACPI enabled.
* Remove reference to bpfstat, this no longer exists.csjp2005-09-171-1/+0
|
* Implement new world order in VFS locking for ACLs. This will remove thecsjp2005-09-173-132/+135
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | unconditional acquisition of Giant for ACL related operations. If the file system is set as being MP safe and debug.mpsafevfs is 1, do not pickup giant. For any operations which require namei(9) lookups: __acl_get_file __acl_get_link __acl_set_file __acl_set_link __acl_delete_file __acl_delete_link __acl_aclcheck_file __acl_aclcheck_link -Set the MPSAFE flag in NDINIT -Initialize vfslocked variable using the NDHASGIANT macro For functions which operate on fds, make sure the operations are locked: __acl_get_fd __acl_set_fd __acl_delete_fd __acl_aclcheck_fd -Initialize vfslocked using VFS_LOCK_GIANT before we manipulate the vnode Discussed with: jeff
* Handle circular dependencies properly (via errx(3)) rather than dumpingcperciva2005-09-171-2/+15
| | | | | | | core. This bug was made visible by a recent change to the audio/timidity++ port, which now has itself as a run dependency. Reported by: Emil Mikulic, Andreas Klemm
* Bump .Ddjoel2005-09-171-1/+1
| | | | Reminded by: simon
* Clarify wording for -m flag.rodrigc2005-09-171-2/+12
| | | | PR: docs/84704
* Call gctl_free() to free resource allocated with gctl_get_handle().rodrigc2005-09-171-1/+4
| | | | | | PR: bin/84664 Submitted by: Daan Vreeken <Danovitsch at Vitsch dot net> MFC after: 3 days
* Fix so that color changes are not lost when the video mode changes.rodrigc2005-09-171-0/+6
| | | | | PR: bin/83553 Submitted by: Dan Lukes <dan at obluda dot cz>
* o Add initial bits for IBSS support.damien2005-09-173-25/+110
| | | | | | | | | | o Allow association with APs that do not broadcast SSID (with hints from Nick Hudson and Hajimu Umemoto). o IFQ_DRV_PREPEND mbuf when h/w ring is full so it can be sent later. o Increment if_oerrors when appropriate. o Did some cleanup while I'm here. MFC after: 1 day
* Add cdce(4).joel2005-09-173-0/+5
| | | | Reviewed by: brueffer
* Add HARDWARE section.joel2005-09-171-10/+14
| | | | Reviewed by: brueffer
OpenPOWER on IntegriCloud