summaryrefslogtreecommitdiffstats
path: root/sys
Commit message (Collapse)AuthorAgeFilesLines
* Further system call comment cleanup:rwatson2007-03-0530-186/+86
| | | | | | | | | | - Remove also "MP SAFE" after prior "MPSAFE" pass. (suggested by bde) - Remove extra blank lines in some cases. - Add extra blank lines in some cases. - Remove no-op comments consisting solely of the function name, the word "syscall", or the system call name. - Add punctuation. - Re-wrap some comments.
* Warn when user use sectorsize bigger than the page size, which will leadpjd2007-03-051-0/+4
| | | | | | | | to problems when the geli device is used with file system or as a swap. Hopefully will prevent problems like kern/98742 in the future. MFC after: 1 week
* Partial fix for a bug in rev.1.231. If suspend/resume clobbers thebde2007-03-052-0/+2
| | | | | | | | | | | | | | | | | RTC state, then it may clobber the RTC index register, so the index register must be restored before using it to restore control registers in rtc_restore(). The following problems remain: - rtc_restore() is only called if pmtimer is configured. Buggy suspend/resumes are more likely to clobber the index register than a control register, so pmtimer is more needed than it used to be. - pmtimer doesn't exist for amd64. - Restoring of the RTC state may race with rtcintr(). If an RTC interrupt is handled before the state is restored, then rtcin(RTC_INTR) in rtcintr() may read from the wrong register, so rtcintr() may spin forever. This may be mitigated by the most common state clobbering being to turn off RTC interrupts.
* Quick bandaid for possible broken multiple playback channels implementation.ariff2007-03-051-4/+5
| | | | Reported/Tested by: Oliver Iberien <odilist@sonic.net>
* Check for malloc return valuekevlo2007-03-051-0/+2
|
* Use different wait channel name for second of two sleeps. Minor commentaryimp2007-03-051-2/+2
| | | | addition.
* Change these descriptions of memory types used in malloc(9), as theirwkoszek2007-03-052-5/+4
| | | | | | current, rather long strings make output from vmstat -m look unpleasant. Approved by: cognet (mentor)
* Use msleep(9) instead of tsleep(9) surrounded by lock acquisition andwkoszek2007-03-041-6/+2
| | | | | | release. Approved by: cognet (mentor)
* Remove 'MPSAFE' annotations from the comments above most system calls: allrwatson2007-03-0434-694/+38
| | | | | | | | system calls now enter without Giant held, and then in some cases, acquire Giant explicitly. Remove a number of other MPSAFE annotations in the credential code and tweak one or two other adjacent comments.
* Fix typo in comment.flz2007-03-041-1/+1
| | | | Reported by: thompsa
* Reduce the number of retries to 10 from 20 for not_a_card retry test.imp2007-03-041-5/+8
| | | | | | | | Add some comments to explain how 10 was picked. 20 was completely arbitrary, at least 10 has some reasoning behind it. Also, update the comments about how long we sleep to reflect the new, shorter timeout we use.
* Move to ANSI C function headers. Re-wrap some comments.rwatson2007-03-041-45/+25
|
* Purge an out-of-date comment.bms2007-03-041-1/+0
|
* - Use mtx_{lock,unlock}_spin rather than {disable,enable}_intr.nyan2007-03-042-58/+30
| | | | | | - Remove unnecessary findcpuspeed() function. - Initialize the timer_freq in i8254_init(). - Fix inittodr() and resettodr(). These are broken by rev.1.154.
* Reduce diffs with i386.nyan2007-03-042-12/+20
|
* style(9).nyan2007-03-042-4/+4
|
* MFi386: revision 1.17.nyan2007-03-041-1/+1
| | | | Fix the cdboot twiddle display.
* Catch up the rest of the drivers with the ether_vlan_mtap modifications.csjp2007-03-0410-10/+10
| | | | | | | | | | If these drivers are setting M_VLANTAG because they are stripping the layer 2 802.1Q headers, then they need to be re-inserting them so any bpf(4) peers can properly decode them. It should be noted that this is compiled tested only. MFC after: 3 weeks
* - Don't do the interrupt storm protection stuff for software interruptjhb2007-03-021-2/+3
| | | | | | | handlers. - Use pause() when throtting during an interrupt storm. Reported by: kris (1)
* Make pswitch_intr() returns interrupt handling status.piso2007-03-021-2/+3
|
* Ensure message passed to "settimestamp" and "setcounter" is the rightemaste2007-03-021-1/+9
| | | | | | length. Use NULL instead of 0. Submitted by: glebius, ru
* - Add Intel firmwares for Intel PRO/Wireless LAN 2100/2200/2915 cards in aflz2007-03-0220-6/+27854
| | | | | | | | | | | | | uuencoded format along with their respective LICENSE files. - Add new share/doc/legal directory to BSD.usr.dist mtree file. This is the place we install LICENSE files for restricted firmwares. - Teach firmware(9) and kmod.mk about licensed firmwares. Restricted firmwares won't load properly unless legal.<name>.license_ack is set to 1, either via kenv(1) or /boot/loader.conf. Reviewed by: mlaier, sam Permitted by: Intel (via Andrew Wilson) MFC after: 1 month
* Fix geli after last commit for UP systems that are running SMP kernel.pjd2007-03-021-1/+2
| | | | | Submitted by: Hyo geol, Lee <hyogeollee@gmail.com> MFC after: 1 week
* lock stats updates need to be protected by the lockkmacy2007-03-022-44/+8
|
* Add "setcounter" and "getcounter" messages, providing the the abilityemaste2007-03-022-0/+137
| | | | | | | | | | | | | to embed up to four counters in outgoing packets. The message specifies the offset at which the counter should be inserted as well as the parameters of the counter. Example usage: ngctl msg src0: setcounter \ '{ index=0 offset=0x40 flags=1 width=4 increment=1 max_val=12345 }' Sponsored by: Sandvine Incorporated
* MFP4: 113090, 113130, 113132jkim2007-03-021-3/+100
| | | | Add Linux kernel version strings to /proc/sys/kernel.
* Change fifo_printinfo to check if the vnode v_fifoinfo pointermpp2007-03-021-0/+4
| | | | is NULL and print a message to that effect to prevent a panic.
* MFP4: 115220, 115222jkim2007-03-025-352/+371
| | | | | - Fix style(9) and reduce diff between amd64 and i386. - Prefix Linuxulator macros with LINUX_ to prevent future collision.
* Add "settimestamp" and "gettimestamp" messages, providing the the abilityemaste2007-03-012-5/+139
| | | | | | | | | | | | | to embed a timestamp (struct timeval) in outgoing packets. The message specifies the offset at which the timestamp should be inserted. NG_SOURCE(4) gives an example usage that queues an ICMP packet. Using that example, the following command will insert a timestamp in the ICMP's data payload: ngctl msg src0: settimestamp '{ offset=0x2a flags=1 }' Sponsored by: Sandvine Incorporated
* Fix build breakage.pjd2007-03-011-1/+1
|
* Change:pjd2007-03-011-1/+1
| | | | | | "... try to use VADMIN in preference to VADMIN ..." To: "... try to use VADMIN in preference to VWRITE ..."
* Add support for the 3 (PATA) channel on the VIA 6421 chip.sos2007-03-011-41/+60
| | | | HW donated by: Fabian Peters
* Rename PRIV_VFS_CLEARSUGID to PRIV_VFS_RETAINSUGID, which seems to betterpjd2007-03-015-7/+8
| | | | | | describe the privilege. OK'ed by: rwatson
* Avoid checking for privileges if there is no need to.pjd2007-03-013-14/+19
| | | | Discussed with: rwatson
* Do not dispatch SIGPIPE from the generic write path for a socket; withbms2007-03-011-1/+1
| | | | | | | | | | | | this patch the code behaves according to the comment on the line above. Without this patch, a socket could cause SIGPIPE to be delivered to its process, once with SO_NOSIGPIPE set, and twice without. With this patch, the kernel now passes the sigpipe regression test. Tested by: Anton Yuzhaninov MFC after: 1 week
* Introduce a new mbuf flag, M_PROMISC.bms2007-03-011-1/+2
| | | | | | | | | | | | | An mbuf packet chain with the M_PROMISC flag set contains a unicast packet received by the link layer, which does not correspond to any configured link layer address in the local system. It is copied when copying m_pkthdr. It is not cleared when crossing layers. As such, it is defined to have a flag value which is outside of the M_PROTO* range, like M_VLANTAG has. Reviewed by: andre Obtained from: NetBSD
* Fix undirected broadcast sends for the case where SO_DONTROUTE has alsobms2007-03-011-11/+14
| | | | | | | | | | | | | | | | | | | | | | | been set at the socket layer, in our somewhat convoluted IPv4 source selection logic in ip_output(). IP_ONESBCAST is actually a special case of SO_DONTROUTE, as 255.255.255.255 must always be delivered on a local link with a TTL of 1. If IP_ONESBCAST has been set at the socket layer, also perform destination interface lookup for point-to-point interfaces based on the destination address of the link; previously it was not possible to use the option with such interfaces; also, the destination/broadcast address fields map to the same field within struct ifnet, which doesn't help matters. One more valid fix going forward for these issues is to treat 255.255.255.255 as a destination in its own right in the forwarding trie. Other implementations do this. It fits with the use of multiple paths, though it then becomes necessary to specify interface preference. This hack will eventually go away when that comes to pass. Reviewed by: andre MFC after: 1 week
* Prevent TSO mbuf chain from overflowing a few bytes by subtracting theandre2007-03-011-2/+3
| | | | | | TCP options size before the TSO total length calculation. Bug found by: kmacy
* Evidently I've overestimated gcc's ability to peak inside inline functionskmacy2007-03-012-6/+16
| | | | | and optimize away unused stack values. The 48 bytes that the lock_profile_object adds to the stack evidently has a measurable performance impact on certain workloads.
* Update bus_setup_intr().piso2007-03-011-2/+2
| | | | Pointed by: Krassimir Slavchev
* Remove two simultaneous acquisitions of multiple unpcb locks fromrwatson2007-03-011-22/+19
| | | | | | | | | uipc_send in cases where only a global read lock is held by breaking them out and avoiding the unpcb lock acquire in the common case. This avoids deadlocks which manifested with X11, and should also marginally further improve performance. Reported by: sepotvin, brooks
* Prepare for 802.1p:bms2007-02-281-3/+34
| | | | | | | | | | | | | Add macro EVL_APPLY_VLID() which may be used to apply an 802.1q VLAN ID to the M_VLANTAG field in an mbuf packet header non-destructively. This will be used by net80211 to begin with. Add macro EVL_APPLY_PRI() which may be used to apply an 802.1p priority class to the M_VLANTAG field in an mbuf packet header non-destructively. Add other macros for manipulating tags and the CFI bit. Submitted by: Boris Kovalenko (EVL_CFIOFTAG(), EVL_MAKETAG())
* Add comments about common idioms for cleanup pass at a later date.bms2007-02-281-0/+3
|
* In the SYN_SENT case, Initialize the snd_wnd before the call to tcp_mss().mohans2007-02-282-6/+4
| | | | The TCP hostcache logic in tcp_mss() depends on the snd_wnd being initialized.
* Remove code which would never be used, viz a viz Quality-of-Service;bms2007-02-282-23/+1
| | | | | the token bucket filter got killed in netinet, so it gets killed here too. Correct comments.
* Add a comment about a struct which needs to be global.bms2007-02-281-11/+8
| | | | | Remove an unused global variable. Staticize variables which do not need to be global.
* Style: Move declaration of subsystem mutex to where otherbms2007-02-281-16/+25
| | | | mutexes are in this file, and use macros for dealing with it.
* Minor reformatting.thomas2007-02-281-2/+2
|
* Add EHOSTDOWN and ENETUNREACH to the list of soft errors, that shouldn'tglebius2007-02-281-0/+2
| | | | | | | | be returned up to the caller. PR: 100172 Submitted by: "Andrew - Supernews" <andrew supernews.net> Reviewed by: rwatson, bms
* Toss the code, that handles errors from ip_output(), to make it moreglebius2007-02-281-30/+26
| | | | | | | | readable: - Merge two embedded if() into one. - Introduce switch() block to handle different kinds of errors. Reviewed by: rwatson, bms
OpenPOWER on IntegriCloud