summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Make the internal statistics sysctl an array of integers rather than a string.harti2003-06-041-33/+10
| | | | | | | | | While a string is readable without a tool, an array is easier to process for a monitoring application. This also prevents the extra hoops we need with sbufs and locking. Move the mtx_init() in en_attach() higher before the first failure point so that we can unconditionally destroy it in en_destroy().
* Compensate for decreasing the minimum retransmit timeout.hsu2003-06-041-2/+2
| | | | Reviewed by: jlemon
* - Add vm object locking to vm_object_deallocate(). (Still morealc2003-06-042-17/+15
| | | | | | changes are required.) - Remove special-case macros for kmem object locking. They are no longer used.
* Add instrumentation which tells us how much work softclock() doesphk2003-06-041-2/+26
| | | | per invocation.
* Add id for TI's 1394b link chip.simokawa2003-06-042-0/+5
|
* Userspace prototypes for the extattr_list_*() system calls.rwatson2003-06-041-0/+6
|
* Implementations of extattr_list_fd(), extattr_list_file(), andrwatson2003-06-042-0/+286
| | | | | | | | | | | | | | | extattr_list_link() system calls, which return a least of extended attributes defined for a vnode referenced by a file descriptor or path name. Currently, we just invoke VOP_GETEXTATTR() since it will convert a request for an empty name into a query for a name list, which was the old (more hackish) API. At some point in the near future, we'll push the distinction between get and list down to the vnode operation layer, but this provides access to the new API for applications in the short term. Pointed out by: Dominic Giampaolo <dbg@apple.com> Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Regen from syscalls.master:1.149, addition of extended attributerwatson2003-06-045-7/+40
| | | | list system calls for fd, file, link.
* Add system calls to explicitly list extended attributes on arwatson2003-06-041-0/+6
| | | | | | | | | | | | | | | | | | file/directory/link, rather than using a less explicit hack on the extattr retrieval API: extattr_list_fd() extattr_list_file() extattr_list_link() The existing API was counter-intuitive, and poorly documented. The prototypes for these system calls are identical to extattr_get_*(), but without a specific attribute name to leave NULL. Pointed out by: Dominic Giampaolo <dbg@apple.com> Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Fix ALIGNED_POINTER(). sizeof((u_int32_t)) is not legal C.peter2003-06-041-1/+1
|
* Change handling to support strong alignment architectures such as alpha andticso2003-06-043-11/+40
| | | | | | | | sparc64. PR: alpha/50658 Submitted by: rizzo Tested on: alpha
* Assert the vnode lock when returning successfully from vn_open_cred().rwatson2003-06-041-0/+1
|
* Remove un-needed code.julian2003-06-044-100/+56
| | | | | | | | Don't copyin() data we are about to overwrite. Add a flag to tell userland that KSE is officially "DONE" with the mailbox and has gone away. Obtained from: davidxu@
* Don't call sbp_do_attach() recursively after agent resetsimokawa2003-06-031-1/+1
| | | | while device probing.
* Allocate zeroed space for fwdev.simokawa2003-06-031-1/+2
|
* Open fwmem device exclusively.simokawa2003-06-031-0/+5
|
* Add a geom_vol_ffs module and hook up to the build.gordon2003-06-032-1/+10
|
* Add vm object locking to vm_object_coalesce().alc2003-06-031-7/+12
|
* Fix a potential bucket leak where when freeing to an empty bucketbmilekic2003-06-031-57/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | we failed to put the bucket back into the general cache/container. Also, fix a bad assumption. There was a KASSERT() that aimed to guarantee that whenever the pcpu container's mc_starved was > 0, that whatever the bucket we were freeing to was an empty bucket, assuming it belonged to the pcpu container cache. However, there is at least one case where this is not true anymore; consider: 1) All containers empty, next thread to try to alloc will touch a pcpu container, notice it's empty, and increment the pcpu container's mc_starved. 2) Some other thread frees an mbuf belonging to a bucket in the general cache/container. Then it frees another mbuf belonging to the same bucket (still in gen container). 3) Some third thread tries to allocate an mbuf from the pcpu container and, since empty, grabs one mbuf now available in the general cache and moves the non-empty bucket from which it took 1 mbuf and to which the thread in (2) freed to, and moves it to the pcpu container. 4) A final thread tries to free an mbuf belonging to the NON-EMPTY bucket mentionned in (2) and (3) and, since the pcpu container's mc_starved is > 0, but the bucket is obviously non-empty, it trips on the KASSERT. This meant that one could potentially get a panic in some cases when out of mbufs and clusters. The problem could be mitigated by commenting out some cv_signal() calls, but I'm assuming that was pure coincidence and this is the correct fix.
* Bah, revert the previous commit for the time being due to inadequate testingjhb2003-06-031-6/+8
| | | | | | on my part. The output asm looks correct with the previous commit in place and it works on amd64, but on my laptop I got a spew of AE_BAD_PARAMETER errors trying to unlock the acpi global lock.
* Update MPILIB from code received from LSI. Make changes in the rest ofmjacob2003-06-039-159/+519
| | | | the driver based upon some somewhat gratuitous name changes.
* Fix the asm constraints so that we use the correct constants when acquiringjhb2003-06-031-8/+6
| | | | | | | | | and releasing ACPI global locks instead of (ab)using the pointers to those locks as the constants. Also, rather than require that the address of the lock be stored in a register, use a memory constraint allowing the memory address to be used directly. Noticed by: peter
* Remove SI_SUB_VINUM. SI_SUB_RAID makes more sense.grog2003-06-031-3/+2
| | | | Submitted by: hmp
* - Remove the blocked pointer from the umtx structure.jeff2003-06-033-174/+164
| | | | | | | | - Use a hash of umtx queues to queue blocked threads. We hash on pid and the virtual address of the umtx structure. This eliminates cases where we previously held a lock across a casuptr call. Reviwed by: jhb (quickly)
* Don't deregister the kld on resetconfig, only when we're really readygrog2003-06-031-3/+3
| | | | | | | | | | to unload. This would cause a panic on the second resetconfig. Start Vinum at boot time at SI_SUB_RAID, not SI_SUB_VINUM. SI_SUB_VINUM was there first, but there's no real distinction, and SI_SUB_RAID is a more neutral name. Submitted by: hmp
* When scanning for changed containers, don't assume that the controllerscottl2003-06-031-7/+10
| | | | | | | will respond in a sane manner. Thanks to Petri Helenius <pete@he.iki.fi> for spotting this and pestering me to fix it.
* Add support for generic PMCICA ATA CARDimp2003-06-031-0/+1
|
* Sync to 1.51imp2003-06-031-1/+4
|
* Add another PCMCIA IDE CARDimp2003-06-031-0/+1
|
* Account for packets processed at layer-2 (i.e. net.link.ether.ipfw=1).kbyanc2003-06-021-3/+6
| | | | MFC after: 2 weeks
* Redo locking for better SMP suport:sam2003-06-021-15/+18
| | | | | | | | | | o adding locking to op submission o mark interrupt handler MPSAFE o don't use locking on detach; disabling interrupts should be sufficient o change mutex string names so witness printouts are more meaningful Note: locking is still pretty brute-force but it's probably not worth improving it given the relatively low performance of hifn-based cards.
* Redo locking for proper SMP operation:sam2003-06-022-52/+50
| | | | | | | | o replace driver-global lock with three locks: one for the handling of mcr1 operations, one for handling of mcr2 operations, and one for the mcr1 free list o mark the interrupt handler MPSAFE o don't use locking on detach; disabling interrupts is sufficient (I think)
* Flush my local cache of cryto subsystem fixes:sam2003-06-023-18/+43
| | | | | | | | | | | | | | | | | | | | o add a ``done'' flag for crypto operations; this is set when the operation completes and is intended for callers to check operations that may complete ``prematurely'' because of direct callbacks o close a race for operations where the crypto driver returns ERESTART: we need to hold the q lock to insure the blocked state for the driver and any driver-private state is consistent; otherwise drivers may take an interrupt and notify the crypto subsystem that it can unblock the driver but operations will be left queued and never be processed o close a race in /dev/crypto where operations can complete before the caller can sleep waiting for the callback: use a per-session mutex and the new done flag to handle this o correct crypto_dispatch's handling of operations where the driver returns ERESTART: the return value must be zero and not ERESTART, otherwise the caller may free the crypto request despite it being queued for later handling (this typically results in a later panic) o change crypto mutex ``names'' so witness printouts and the like are more meaningful
* Fix restarted syscalls. When we rewind %rip, we also need to restorepeter2003-06-021-2/+6
| | | | | | all the argument registers etc since we have almost certainly have trashed them by now. Take particular car of %r10 since it held the original value of %rcx (which we saved in tf_rcx on entry and doreti doesn't know this).
* Make this more compatable with libc_r. Make the internal types for storingpeter2003-06-021-3/+3
| | | | registers an array of longs rather than int.
* Further devilification of CCD:phk2003-06-023-262/+174
| | | | | | | Change the list interface to simplify things. Remove old list ioctls which bogusly exported the softc to userland. Move the softc and associated structures from the public header to the source file.
* Begin deevilification of CCD:phk2003-06-022-2/+112
| | | | | | | | Make CCD a GEOM class. For now only use this for implementing a OAM config method which can return a list of configured CCD devices in the format which "ccdconfig -g[v]" would normally output.
* Initialize td->td_pcb->pcb_ext in cpu_thread_setup() since a garbagetegge2003-06-021-0/+1
| | | | value (e.g. 0xd0d0d0d0) can cause a kernel panic.
* Return an indicative error message.phk2003-06-021-1/+3
|
* Also implement mpo_copy_mbuf_label() for mac_lomac, or labels mayrwatson2003-06-021-0/+1
| | | | | | | not be properly propagated across some mbuf copy operations. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Document new (starting with 5.x) __FreeBSD_version scheme.obrien2003-06-021-0/+2
|
* Oops, __FreeBSD_version should be 501100, not 510100. The former impliesscottl2003-06-021-1/+1
| | | | | | | that we are at FreeBSD 5.10 Reminded by: everybody Guaranteed not to break world by: imp
* s/u_short/unsigned short/ to make this compile if _POSIX_C_SOURCE=200112schweikh2003-06-021-19/+19
| | | | | | | Fix a few but probably not all style bugs. Suggested by: bde MFC after: 2 weeks
* Use mac_biba_label_copy() and mac_mls_label_copy() to implement therwatson2003-06-022-0/+2
| | | | | | | | | | mpo_copy_mbuf_label() entry point for Biba and MLS, respectively. Otherwise, labels in m_tags may not be properly propagated across some classes of mbuf operations. This problem caused these policies to fail-stop the system with a panic. Obtained from: TrustedBSD Project Sponsored by: DARPA, Network Associates Laboratories
* Use __FBSDID().obrien2003-06-023-9/+9
|
* Use __FBSDID().obrien2003-06-027-12/+20
|
* Use __FBSDID().obrien2003-06-0241-84/+130
|
* Add tracking of process leaders sharing a file descriptor table andtegge2003-06-025-19/+256
| | | | | | | allow a file descriptor table to be shared between multiple process leaders. PR: 50923
* Fix a typo in an ATM media name. As this name was not use yet, no problemsharti2003-06-021-1/+1
| | | | should occur.
* Remove unused #ifdef BRIDGE.maxim2003-06-021-5/+0
| | | | Reviewed by: nyan
OpenPOWER on IntegriCloud