summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* If a "hole" opens up in the ruleset (i.e.: remove 5), do not returntrhodes2005-07-281-5/+2
| | | | | | | unknown error. Instead, just return error. Submitted by: avatar Tested by: trhodes
* Fix for PR 83885.gnn2005-07-281-1/+4
| | | | | | | | | | Make sure that there actually is a next packet before setting nextrecord to that field. PR: 83885 Submitted by: hirose@comm.yamaha.co.jp Obtained from: Patch suggested in the PR MFC after: 1 week
* Fix the way how "InUse" column in 'vmstat -m' output works:pjd2005-07-271-3/+6
| | | | | | | | | | | | - increase number of allocations count only on successfull malloc(9), so it doesn't confuse people; - because we need to check if 'size > 0', hide 'mtsp->mts_memalloced += size;' under the check as well, as for size=0 it is of course a no-op; - avoid critical_enter()/critical_exit() in case of failure in malloc_type_allocated() as there will be nothing to do. OK'ed by: rwatson MFC after: 2 days
* MFp4: Export more informations about encrypted providers.pjd2005-07-271-0/+32
| | | | MFC after: 1 week
* Reduce default debug level to 0.pjd2005-07-271-1/+1
| | | | MFC after: 1 week
* Connect GEOM_ELI class to the build.pjd2005-07-274-0/+8
| | | | MFC after: 1 week
* Add GEOM_ELI class which provides GEOM providers encryption.pjd2005-07-278-0/+2766
| | | | | | | | For features list and usage see manual page: geli(8). Sponsored by: Wheel Sp. z o.o. http://www.wheel.pl MFC after: 1 week
* msdosfs_conv.c references cmos_wall_clock and adjkerntz. Since theseimp2005-07-271-0/+3
| | | | | are 0 for arm, define them as such to make msdosfs_conv.c compile again on arm.
* Reorganize an_detach() a bit. Make sure ether_ifdetach() and if_free()emax2005-07-271-3/+4
| | | | | | | | | | | are called outside of AN_LOCK()/AN_UNLOCK. This fixes the following WITNESS warning (produced when an(4) PCMCIA card is detached). taskqueue_drain with the following non-sleepable locks held: exclusive sleep mutex an0 (network driver) r = 0 (0xc59af168) locked @ /usr/src/sys/dev/an/if_an.c:2836 MFC after: 3 days Silence from: current@
* Add extra constraints to tell the compiler that the memory be modifiedjhb2005-07-272-6/+10
| | | | | | | | | | | | in the arm __swp() and sparc64 casa() and casax() functions is actually being used as an input and output and not just the value of the register that points to the memory location. This was the underlying source of the mbuf refcount problems on sparc64 a while back. For arm this should be a nop because __swp() has a constraint to clobber all memory which can probably be removed now. Reviewed by: alc, cognet MFC after: 1 week
* Use a + constraint modifier for a register arg in __bswap16_var().jhb2005-07-271-3/+2
| | | | Reviewed by: cognet
* Simplify SMBIOS loader variables and drop `hint.smbios.0.enabled'.jkim2005-07-271-14/+11
| | | | | | | | They are not real hints. Reported by: des Pointed out by: peter Approved by: anholt (mentor)
* Correct the order of some if tests so that we don't complain about beingjhb2005-07-271-2/+2
| | | | | | unable to route an IRQ when we do route an IRQ ok but bootverbose is off. Reported by: Ben Kaduk minimarmot at gmail dot com
* FIx for a bug in the change that made nfs_timer() MPSAFE. We need tops2005-07-271-0/+2
| | | | | | | grab Giant before calling pru_send() (if running with mpsafenet = 0). Found by: Jeremie Le Hen. Fixed by: Maxime Henrion
* In nfs_nget() if two threads race on the same filehandle, the loser shouldps2005-07-271-1/+2
| | | | | | | | cause the nfsnode to get freed. This fixes a potential vnode (and nfsnode) leak in that path. Submitted by: Mohan Srinivasan Reviewed by: phk
* - Use callout_*() rather than timeout() to periodically poll the media.jhb2005-07-274-80/+312
| | | | | | | | | - Add locking to protect the softc and mark this driver as MP safe. There are still some edge cases with multiport cards that need more locking work. MFC after: 1 week Tested on: alpha
* Fix a typo in the name of the dmamap for a bus_dmamap_sync().jhb2005-07-271-1/+1
| | | | MFC after: 3 days
* Use root_mount KPI for RAID3 to delay root file system mount.pjd2005-07-272-0/+28
| | | | | | | | | Actually, one cannot setup root file system on RAID3 device, but when other file system exist in /etc/fstab which are placed on RAID3 device, boot process will be interrupted when these devices are missing. MFC after: 3 days X-MFC-note: MFC only to RELENG_6, as RELENG_5 doesn't have root_mount KPI.
* Correct a buffer overflow which can occur when decompressing acperciva2005-07-271-7/+9
| | | | | | | | | carefully crafted deflated data stream. [1] Correct problems in the AES-XCBC-MAC IPsec authentication algorithm. [2] Submitted by: suz [2] Security: FreeBSD-SA-05:18.zlib [1], FreeBSD-SA-05:19.ipsec [2]
* The 575A doesn't have funcregs in memio. So don't claim that it does.imp2005-07-271-3/+8
| | | | | | | This gets my 575A card probing. Card provided by: James Flemer MFC After: 3 days
* when bridging internally bypass the bss node as traffic to itsam2005-07-271-11/+21
| | | | | | | must follow the normal input path Submitted by: Michal Mertl MFC after: 5 days
* bandaid ni_fails handling so ap's with association failures aresam2005-07-271-18/+24
| | | | | | | | reconsidered after a bit; a proper fix involves more changes to the scanning infrastructure Reviewed by: avatar, David Young MFC after: 5 days
* Rather than hold a mutex over calls to SYSCTL_OUT allocate acsjp2005-07-261-12/+14
| | | | | | | | | | temporary buffer then pass the array to user-space once we have dropped the lock. While we are here, drop an assertion which could result in a kernel panic under certain race conditions. Pointed out by: rwatson
* nuke duplicate inclusion of scope6_var.h.ume2005-07-261-3/+0
|
* include scope6_var.h for in6_clearscope().ume2005-07-261-0/+3
|
* Remove an erroneous m_freem() call. If m_defrag() returns a non-NULLmux2005-07-251-1/+0
| | | | | | | pointer, it has already freed the original mbuf chain, so we shouldn't do it again. This is an MFC candidate.
* By design I left a tiny race in updating the I/O statistics based onphk2005-07-251-8/+14
| | | | | | | | | | | | the assumption that performance was more important that beancounter quality statistics. As it transpires the microoptimization is not measurable in the real world and the inconsistent statistics confuse users, so revert the decision. MT6 candidate: possibly MT5 candidate: possibly
* Correct minor output bug. When the battery being queried is charging ornjl2005-07-251-0/+7
| | | | | | | | the overall discharge rate is 0, mark the battery remaining time as "unknown", not 0. Reported by: Eric Kjeldergaard MFC after: 4 days
* oops, make it compilable. i need sleep. X-(ume2005-07-251-2/+2
|
* remove a pointless comment with a more helpful one...jmg2005-07-251-1/+1
| | | | | Submitted by: Tobias Roth MFC after: 5 days
* restore locks which disappeared wrongly by my previous commit.ume2005-07-251-1/+10
|
* include netinet6/scope6_var.h.ume2005-07-251-0/+1
|
* scope cleanup. with this changeume2005-07-2534-1239/+1419
| | | | | | | | | | | | | | | | | | | - most of the kernel code will not care about the actual encoding of scope zone IDs and won't touch "s6_addr16[1]" directly. - similarly, most of the kernel code will not care about link-local scoped addresses as a special case. - scope boundary check will be stricter. For example, the current *BSD code allows a packet with src=::1 and dst=(some global IPv6 address) to be sent outside of the node, if the application do: s = socket(AF_INET6); bind(s, "::1"); sendto(s, some_global_IPv6_addr); This is clearly wrong, since ::1 is only meaningful within a single node, but the current implementation of the *BSD kernel cannot reject this attempt. Submitted by: JINMEI Tatuya <jinmei__at__isl.rdc.toshiba.co.jp> Obtained from: KAME
* Connect GZERO to the build.pjd2005-07-254-1/+5
| | | | MFC after: 3 days
* Cast to uintptr_t when the compiler complains. This unbreaks ULEdelphij2005-07-251-2/+4
| | | | scheduler breakage accompanied by the recent atomic_ptr() change.
* Add a very simple and small GEOM class - ZERO.pjd2005-07-252-0/+121
| | | | | | | | | | | It creates very huge provider (41PB) /dev/gzero. On BIO_READ request it zero-fills bio_data and on BIO_WRITE it does nothing. You can also set kern.geom.zero.clear sysctl to 0 to do nothing even for BIO_READ. I'm using it for performance testing where it is very helpful. MFC after: 3 days
* We check that all the member interfaces have the same MTU on attach to thethompsa2005-07-251-0/+8
| | | | | | | | | | bridge but the interface can still be changed afterwards. This falls under the 'dont do that' category but log an warning when INVARIANTS is defined. Approved by: mlaier (mentor) MFC after: 3 days
* Rename UMA_MAX_NAME to UTH_MAX_NAME, since it's a maximum in therwatson2005-07-252-5/+14
| | | | | | | | | | | monitoring API, which might or might not be the same as the internal maximum (currently none). Export flag information on UMA zones -- in particular, whether or not this is a secondary zone, and so the keg free count should be considered in that light. MFC after: 1 day
* Remove NOP spl*() calls and add locking (making gem(4) MPSAFE).marius2005-07-243-35/+118
| | | | | | Based on: hme(4) Reviewed by: yongari Tested on: powerpc(grehan), sparc64
* - Wrap the handler and associated code for collecting completed RXmarius2005-07-241-31/+23
| | | | | | | | | | | | | | | | descriptors that are still marked owned in #ifdef GEM_RINT_TIMEOUT instead of #if 0 for convenience. - Remove stale code and comment about relying on the preset XIF config. - In case of a watchdog timeout call the init function instead of just the start function so the chip is properly reset. Merge from hme(4): - Convert to use bus_dmamap_load_mbuf_sg() for loading RX buffers. - Protect from a duplicate mbuf free panic in case the DMA engine hangs. Reviewed by: yongari Tested on: powerpc(grehan), sparc64 MFC after: 1 week
* Add back ed(4) in amd64 GENERIC. It now works nicely and since thosemux2005-07-241-2/+1
| | | | | | | | | chips are commonly found, it makes sense to have it in GENERIC. This is a candidate for a RELENG_6 MFC. Approved by; peter Requested by: pav Tested by: pav
* Introduce new sysctl variable: net.bpf.stats. This sysctl variable cancsjp2005-07-242-14/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | | be used to pass statistics regarding dropped, matched and received packet counts from the kernel to user-space. While we are here introduce a new counter for filtered or matched packets. We currently keep track of packets received or dropped by the bpf device, but not how many packets actually matched the bpf filter. -Introduce net.bpf.stats sysctl OID -Move sysctl variables after the function prototypes so we can reference bpf_stats_sysctl(9) without build errors. -Introduce bpf descriptor counter which is used mainly for sizing of the xbpf_d array. -Introduce a xbpf_d structure which will act as an external representation of the bpf_d structure. -Add a the following members to the bpfd structure: bd_fcount - Number of packets which matched bpf filter bd_pid - PID which opened the bpf device bd_pcomm - Process name which opened the device. It should be noted that it's possible that the process which opened the device could be long gone at the time of stats collection. An example might be a process that opens the bpf device forks then exits leaving the child process with the bpf fd. Reviewed by: mdodd
* o fix setup of sc_diversity; the hal does not give us reliablesam2005-07-242-12/+15
| | | | | | | | | | status after attach, only after a reset o when setting diversity via the sysctl don't update sc_diversity until we know the hal requested worked o while here eliminate sc_hasdiversity and sc_hastpc; just query the hal each time since these are the only places we need to know MFC after: 3 days
* Rewrite the acpi_battery interface to allow for other battery typesnjl2005-07-236-532/+461
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (i.e., smart battery) and fix various bugs found during the cleanup. API changes: * kernel access: Access to individual batteries is now via devclass_find("battery"). Introduce new methods ACPI_BATT_GET_STATUS (for _BST-formatted data) and ACPI_BATT_GET_INFO (for _BIF-formatted data). The helper function acpi_battery_get_battinfo() now takes a device_t instead of a unit # argument. If dev is NULL, this signifies all batteries. * ioctl access: The ACPIIO_BATT_GET_TYPE and ACPIIO_BATT_GET_BATTDESC ioctls have been removed. Since there is now no need for a mapping between "virtual" unit and physical unit, usermode programs can just specify the unit directly and skip the old translation steps. In fact, acpiconf(8) was actually already doing this and virtual unit was the same as physical unit in all cases since there was previously only one battery type (acpi_cmbat). Additionally, we now map the ACPIIO_BATT_GET_BIF and ACPIIO_BATT_GET_BST ioctls for all batteries, if they provide the associated methods. * apm compatibility device/ioctls: no change * sysctl: no change Since most third-party applications use the apm(4) compat interface, there should be very few affected applications (if any). Reviewed by: bruno MFC after: 5 days
* Fix missing '=' in structure initialization.obrien2005-07-231-1/+1
|
* Temporary restore a part of rev 1.6.imura2005-07-231-4/+2
| | | | | | | | | We must not increase a capability of buffer size here, because codes which call these functions expect that dst and src are the same size. This will cause problem when someone convert a character whose length is different between charsets on smbfs which was changed to use xlat16 converter.
* Oops, bump __FreeBSD_version to mark shared library version bump.kensmith2005-07-231-1/+1
| | | | Reminded by: nork
* o move ath_sysctlattach down so variables it depends on are setupsam2005-07-231-6/+6
| | | | | | | o use any fixed tx antenna for beacons transmitted in adhoc mode Submitted by: David Young MFC after: 3 days
* Misc spelling and/or English fixes in comments.keramida2005-07-231-12/+12
| | | | Reviewed by: glebius, andre
* the AREF flag is only meaningful in ap mode; adhoc neighbors nowsam2005-07-231-1/+2
| | | | are timed out of the sta/neighbor table
OpenPOWER on IntegriCloud