summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* fix oopslet for PROC_UNLOCK_NOSWITCHmjacob2001-06-241-1/+1
|
* cleanup some of the XPORT_FC codemjacob2001-06-241-24/+18
|
* Add a transport settings variant for Fibre Channel.mjacob2001-06-241-0/+13
|
* Add CAM_NEW_TRAN_CODE as an option (to be included in opt_cam.h).mjacob2001-06-241-0/+3
|
* on icmp6 node information query (FQDN), do not return hostnames withume2001-06-241-2/+6
| | | | | | | | two dots (like "foo..bar"). 0-length labels are not distinguishable with multiple name replies. Obtained from: KAME MFC after: 10 days
* decrease warningume2001-06-241-2/+4
| | | | | Obtained from: KAME MFC after: 10 days
* Nuke the comment about MIP6. We don't have MIP6 code, yet.ume2001-06-241-12/+0
| | | | MFC after: 10 days
* inject outbound packet to BPF.ume2001-06-241-1/+25
| | | | | | Submitted by: itojun Obtained from: KAME MFC after: 10 days
* Don't dereference a NULL pointer if we fail to get a sendfilebuf.dwmalone2001-06-241-1/+2
|
* Allow getcred sysctl to work in jailed root processes. Processes candwmalone2001-06-243-17/+35
| | | | | | | | only do getcred calls for sockets which were created in the same jail. This should allow the ident to work in a reasonable way within jails. PR: 28107 Approved by: des, rwatson
* Get rid of some constness warnings.dwmalone2001-06-241-6/+7
|
* Fix asm constraints for atomic_cmpset_32. This fix may also be neededbenno2001-06-241-1/+1
| | | | elsewhere.
* After exhaustive discussions and some meandering and confusion, enoughdillon2001-06-241-0/+6
| | | | | | | | | | | | | | | people are on track with the cause and effect of this, and although fixing this severely degenerate case appears to violate the letter of POSIX.1-200x, Bruce and I (and enough others) agree that it should be comitted. So, this patch generates an ENOENT error for any attempt to do a path lookup through an empty symlink (e.g. open(), stat()). Submitted by: "Andrey A. Chernov" <ache@nagual.pp.ru> Reviewed by: bde Discussed exhaustively on: freebsd-current Previously committed to: NetBSD 4 years ago
* Reset timestamps of battery info. and status by thier notify handler.iwasaki2001-06-241-10/+13
| | | | Suggested by: takawata
* - Swap order of "S4B" and "S5" in sleep_state_names. They alreadyiwasaki2001-06-241-6/+6
| | | | | changed in ACPICA actypes.h. - Use ACPI_S_STATES_MAX instead of ACPI_STATE_S5.
* Add initializetion of NVCTL register with EEPROM stored value.semenu2001-06-235-0/+45
| | | | | | This fix hazardous very slow work for one of my cards. MFC after: 1 week
* the turtle beach santacruz implements ac97 eapd in an inverted sense -cg2001-06-233-13/+15
| | | | inform the ac97 code of this.
* Replace bzero() of struct ip with explicit zeroing of structure members,jlemon2001-06-232-4/+12
| | | | which is faster.
* add defines and ifdefs so this code will compile on 4.xcg2001-06-237-14/+113
| | | | add spls so this code will work on 4.x
* move a private struct definition from ac97.h to ac97.ccg2001-06-232-13/+32
| | | | | add proper handling of cards which take eapd=1 to mean 'produce sound' instead of 'external amplifier power down'
* Add netstat(1) knob to reset net.inet.{ip|icmp|tcp|udp|igmp}.stats.ru2001-06-236-6/+6
| | | | | | For example, ``netstat -s -p ip -z'' will show and reset IP stats. PR: bin/17338
* add sndstat.c so module users have /dev/sndstat againcg2001-06-232-2/+2
|
* Add sysctl interface (Read-only) for temprature, AC-line and Battery.iwasaki2001-06-236-73/+618
| | | | Patches for acpi_cmbat.c submitted by Munehiro Matsuda.
* Merged from sys/i386/isa/npx.c revision 1.102.kato2001-06-231-2/+2
|
* Merged from sys/i386/i386/machdep.c revisions 1.456 and 1.457.kato2001-06-232-34/+16
|
* Removed pcm and sbc devices.kato2001-06-231-4/+0
|
* Merged from sys/conf/files.i386 revisions 1.362 and 1.363.kato2001-06-231-5/+2
|
* Merged from sys/boot/i386/btx/btx/btx.s revision 1.25.kato2001-06-232-2/+2
|
* Convert inb/outb to bus_space.nsouch2001-06-234-50/+68
| | | | Submitted by: jcm@FreeBSD-uk.eu.org
* Translate various ppbus sequences into microsequences to limitnsouch2001-06-232-109/+128
| | | | | | overhead of abstraction layers. Submitted by: jcm@FreeBSD-uk.eu.org
* Eliminate the allocation of a tcp template structure for eachsilby2001-06-238-135/+122
| | | | | | | | | | | | connection. The information contained in a tcptemp can be reconstructed from a tcpcb when needed. Previously, tcp templates required the allocation of one mbuf per connection. On large systems, this change should free up a large number of mbufs. Reviewed by: bmilekic, jlemon, ru MFC after: 2 weeks
* Fix a number of bugs in the implementation of the WEP related statusbrooks2001-06-223-67/+156
| | | | | | | | | | | | | functions in ifconfig. "ifconfig an0" should output the correct status now. Also, make the read and write functions both more robust and more consistant. This should stop most of the incorrect size complaints and eliminate the possiability of panics from firmware that increases resource sizes. PR: kern/27826 Reviewed by: imp, jlemon Submitted by: Doug Ambrisko <ambrisko@ambrisko.com> David Wolfskill <dhw@whistle.com>
* - Lock CURSIG() with the proc lock to close the signal race with psignal.jhb2001-06-221-99/+67
| | | | | | | | | | | | | | | | - Grab Giant around ktrace points. - Clean up KTR_PROC tracepoints to not display the value of sched_lock.mtx_lock as it isn't really needed anymore and just obfuscates the messages. - Add a few if conditions to replace gotos. - Ensure that every msleep KTR event ends up with a matching msleep resume KTR event (this was broken when we didn't do a mi_switch()). - Only note via ktrace that we resumed from a switch once rather than twice in several places in msleep(). - Remove spl's rom asleep and await as the proc lock and sched_lock provide all the needed locking. - In mawait() add in a needed ktrace point for noting that we are about to switch out.
* - Lock CURSIG with the proc lock and don't release the proc lock untiljhb2001-06-221-4/+10
| | | | | after grabbing the sched lock to close a race. - Lock ktrace points with Giant.
* - Grab the proc lock around CURSIG and postsig(). Don't release the procjhb2001-06-225-13/+20
| | | | | | | | lock until after grabbing the sched_lock to avoid CURSIG racing with psignal. - Don't grab Giant for addupc_task() as it isn't needed. Reported by: tegge (signal race), bde (addupc_task a while back)
* - Change CURSIG() and postsig() to require that the proc lock is heldjhb2001-06-221-9/+10
| | | | | | | | | | rather than grabbing it and releasing it themselves. This allows callers of these functions to get the lock to close race conditions. - Grab Giant around ktrace in postsig. - Count the switches performed on SIGSTOP's as involuntary context switches in the resource usage stats. Reported by: tegge (signal race), bde (missing csw stats)
* People wanted this bumped for the Bzip2 import.obrien2001-06-221-1/+1
|
* Make the hw.physmem and hw.usermem variables unsigned so that they dontpeter2001-06-222-4/+4
| | | | come up as negative on machines with >2GB ram.
* Be conservative and always perform an mb after an atomic_cmpset operation.jhb2001-06-221-0/+2
|
* - Protect all accesses to nsw_[rw]count{,_{,a}sync} with the pbuf mutex.jhb2001-06-221-4/+4
| | | | | - Don't drop the vm mutex while grabbing the pbuf mutex to manipulate said variables.
* int -> size_t fixmjacob2001-06-221-2/+2
|
* Make hostid an unsigned long (matches kern_mib.c change)mjacob2001-06-221-1/+1
| | | | | PR: kern/21132 MFC after: 1 month
* Temporary fix at least- define NCPU_PRESENT which will be mp_npcus formjacob2001-06-221-2/+11
| | | | SMP kernels, one (1) for non-SMP.
* changed hostid from long to unsigned long to be able to store values > 2GBpirzyk2001-06-221-3/+2
| | | | | | | | on i386 platforms. Also changed SYSCTL type from INT to ULONG and removed comment about it. PR: kern/21132 MFC after: 1 month
* Doh, missed a printf -> db_printf in the previous commit.jhb2001-06-221-1/+1
|
* Introduce numerous SMP friendly changes to the mbuf allocator. Namely,bmilekic2001-06-2212-899/+1198
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | introduce a modified allocation mechanism for mbufs and mbuf clusters; one which can scale under SMP and which offers the possibility of resource reclamation to be implemented in the future. Notable advantages: o Reduce contention for SMP by offering per-CPU pools and locks. o Better use of data cache due to per-CPU pools. o Much less code cache pollution due to excessively large allocation macros. o Framework for `grouping' objects from same page together so as to be able to possibly free wired-down pages back to the system if they are no longer needed by the network stacks. Additional things changed with this addition: - Moved some mbuf specific declarations and initializations from sys/conf/param.c into mbuf-specific code where they belong. - m_getclr() has been renamed to m_get_clrd() because the old name is really confusing. m_getclr() HAS been preserved though and is defined to the new name. No tree sweep has been done "to change the interface," as the old name will continue to be supported and is not depracated. The change was merely done because m_getclr() sounds too much like "m_get a cluster." - TEMPORARILY disabled mbtypes statistics displaying in netstat(1) and systat(1) (see TODO below). - Fixed systat(1) to display number of "free mbufs" based on new per-CPU stat structures. - Fixed netstat(1) to display new per-CPU stats based on sysctl-exported per-CPU stat structures. All infos are fetched via sysctl. TODO (in order of priority): - Re-enable mbtypes statistics in both netstat(1) and systat(1) after introducing an SMP friendly way to collect the mbtypes stats under the already introduced per-CPU locks (i.e. hopefully don't use atomic() - it seems too costly for a mere stat update, especially when other locks are already present). - Optionally have systat(1) display not only "total free mbufs" but also "total free mbufs per CPU pool." - Fix minor length-fetching issues in netstat(1) related to recently re-enabled option to read mbuf stats from a core file. - Move reference counters at least for mbuf clusters into an unused portion of the cluster itself, to save space and need to allocate a counter. - Look into introducing resource freeing possibly from a kproc. Reviewed by (in parts): jlemon, jake, silby, terry Tested by: jlemon (Intel & Alpha), mjacob (Intel & Alpha) Preliminary performance measurements: jlemon (and me, obviously) URL: http://people.freebsd.org/~bmilekic/mb_alloc/
* Move check against CAM_NEW_TRAN_CODE ahead of the file that might includemjacob2001-06-222-6/+8
| | | | the option file that would define it.
* Don't set CONSPEED to the default and deobfuscate the comment.dd2001-06-212-2/+4
| | | | | PR: 28296 Submitted by: bde, Giorgos Keramidas <keramida@ceid.upatras.gr>
* Use the M_ZERO flag to malloc(9)greid2001-06-2121-64/+32
| | | | | Reviewed by: cg MFC after: 1 week
* Don't dereference NULL regs pointer (should mapping I/O ports fail, asmjacob2001-06-211-6/+7
| | | | | | | they did for me on an alpha) Approved by: gibbs@freebsd.org MFC after: 2 days
OpenPOWER on IntegriCloud