ƒ´H150000 171 248 164 215 127 143 1578 965 144 122 128 126 212 134 122 225 1700 165 195 184 113 200 262 302 283 321 200 417 585 263 268 1036 245 324 334 170 562 534 246 149 302 222 119 244 212 217 557 462 196 130 248 320 157 257 135 142 205 205 185 167 785 291 1241 234 264 434 198 808 155 238 264 367 448 197 116 562 214 123 339 122 118 178 150 191 238 210 290 210 524 263 1448 159 256 173 1347 194 122 981 129 204 717 398 181 255 307 137 438 179 177 1011 164 144 174 595 273 165 345 396 224 117 575 166 133 236 222 189 126 269 137 143 235 247 304 271 179 141 310 131 278 364 337 215 667 270 544 142 346 487 631 128 186 282 117 260 151 1499 198 149 222 124 414 164 323 293 273 1008 243 292 320 156 252 251 K 10 svn:author V 6 obrien K 8 svn:date V 27 2005-09-11T17:50:20.000000Z K 7 svn:log V 152 Per a request from Nick Triantos of nVidia, nVidia's legal department asked that we provide their license document beside their nForce MCP object code. END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2005-09-11T17:50:21.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_6'. END K 10 svn:author V 8 netchild K 8 svn:date V 27 2005-09-11T18:19:42.000000Z K 7 svn:log V 117 Add the {get,put}ino man pages for those people which got them in the small window. Add the date to the T/TCP entry. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2005-09-11T18:39:03.000000Z K 7 svn:log V 32 Canonize the include of acpi.h. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2005-09-11T18:46:33.000000Z K 7 svn:log V 48 MFC the license files. Approved by: re(scottl) END K 10 svn:author V 8 truckman K 8 svn:date V 27 2005-09-11T19:06:50.000000Z K 7 svn:log V 1479 MFC src/sys/gnu/fs/ext2fs/fs.h 1.18 src/sys/kern/kern_shutdown.c 1.175 src/sys/sys/buf.h 1.189 Modified files: sys/gnu/fs/ext2fs fs.h sys/kern kern_shutdown.c sys/sys buf.h Log: Add a new struct buf flag bit, B_PERSISTENT, and use it to tag struct bufs that are persistently held by ext2fs. Ignore any buffers with this flag in the code in boot() that counts "busy" and dirty buffers and attempts to sync the dirty buffers, which is done before attempting to unmount all the file systems during shutdown. This fixes the problem caused by any ext2fs file systems that are mounted at system shutdown time, which caused boot() to give up on a non-zero number of buffers and skip the call to vfs_unmountall(). This left all the mounted file systems in a dirty state and caused them to all require cleanup by fsck on reboot. Move the two separate copies of the "busy" buffer test in boot() to a separate function. Nuke the useless spl() stuff in the ext2fs ULCK_BUF() macro. Bring the PRINT_BUF_FLAGS definition in sys/buf.h up to date with this and previous flag changes. PR: kern/56675, kern/85163 Tested by: "Matthias Andree" matthias.andree at gmx.de Reviewed by: bde MFC after: 3 days PR: kern/56675, kern/85163 Tested by: "Hanspeter Roth" hampi at rootshell.be Tested by: "Matthias Andree" matthias.andree at gmx.de Reviewed by: bde Approved by: re (scottl) END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-11T19:28:30.000000Z K 7 svn:log V 872 Change the default of pci_do_powerstate to 0, per request from re@. The number of raid controllers that violate the WHQL seems to be growing in number and not isolated to old versions as previously thought. Though the numbers of these seen in the wild is still relatively small, they hang the system when parts of their devices are powered down. The one area that these parts appear often are in the higher end servers. As such, be conservative about powering down devices that have no driver attached by default. Until a better approach is proven in current, this is the prudent choice. Laptop users wishing the benefits of powering down devices with no drivers will now need to set hw.pci.do_powerstate=1 in their /boot/loader.conf file. Some users will have devices that will prevent this setting (hence the need to make it default 0). Approved by: re@ (scottl) END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2005-09-11T19:58:19.000000Z K 7 svn:log V 49 Restore the 929X support that got nuked in merge END K 10 svn:author V 3 alc K 8 svn:date V 27 2005-09-11T20:51:15.000000Z K 7 svn:log V 30 Eliminate unused definitions. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-09-11T20:59:52.000000Z K 7 svn:log V 32 Add a couple of missing MLINKS. END K 10 svn:author V 5 tegge K 8 svn:date V 27 2005-09-12T01:21:42.000000Z K 7 svn:log V 32 Giant is no longer needed here. END K 10 svn:author V 5 tegge K 8 svn:date V 27 2005-09-12T01:48:57.000000Z K 7 svn:log V 117 Don't retry when vget() returns ENOENT in the nonblocking case due to the vnode being doomed. It causes a livelock. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2005-09-12T03:32:46.000000Z K 7 svn:log V 39 Note that Keyspan is also InnoSys Inc. END K 10 svn:author V 6 obrien K 8 svn:date V 27 2005-09-12T03:34:05.000000Z K 7 svn:log V 27 MFamd64: use register_t's. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-12T04:12:50.000000Z K 7 svn:log V 132 Since opti_detect is now only called on !PC98 machines, only declare and define there as well. This should fix the pc98 tinderbox. END K 10 svn:author V 8 truckman K 8 svn:date V 27 2005-09-12T04:25:53.000000Z K 7 svn:log V 1601 MFC src/sys/gnu/fs/ext2fs/fs.h 1.18 src/sys/kern/kern_shutdown.c 1.175 src/sys/sys/buf.h 1.189 FreeBSD src repository Modified files: sys/gnu/fs/ext2fs fs.h sys/kern kern_shutdown.c sys/sys buf.h Log: Add a new struct buf flag bit, B_PERSISTENT, and use it to tag struct bufs that are persistently held by ext2fs. Ignore any buffers with this flag in the code in boot() that counts "busy" and dirty buffers and attempts to sync the dirty buffers, which is done before attempting to unmount all the file systems during shutdown. This fixes the problem caused by any ext2fs file systems that are mounted at system shutdown time, which caused boot() to give up on a non-zero number of buffers and skip the call to vfs_unmountall(). This left all the mounted file systems in a dirty state and caused them to all require cleanup by fsck on reboot. Move the two separate copies of the "busy" buffer test in boot() to a separate function. Nuke the useless spl() stuff in the ext2fs ULCK_BUF() macro. Bring the PRINT_BUF_FLAGS definition in sys/buf.h up to date with this and previous flag changes. PR: kern/56675, kern/85163 Tested by: "Matthias Andree" matthias.andree at gmx.de Reviewed by: bde MFC after: 3 days Revision Changes Path 1.18 +8 -8 src/sys/gnu/fs/ext2fs/fs.h 1.175 +13 -11 src/sys/kern/kern_shutdown.c 1.189 +4 -4 src/sys/sys/buf.h PR: kern/56675, kern/85163 Tested by: "Matthias Andree" matthias.andree at gmx.de Reviewed by: bde END K 10 svn:author V 6 mjacob K 8 svn:date V 27 2005-09-12T05:25:29.000000Z K 7 svn:log V 70 MFC: Restore the 929X support that got nuked in merge Approved by: re END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-12T05:35:11.000000Z K 7 svn:log V 102 This appears to be good for some folks, but really bad for others. Until we know why, back out 1.127. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-12T07:41:31.000000Z K 7 svn:log V 88 Remove ng_callout_init_mtx() macro. Mutexed callouts are incompatible with netgraph(4). END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-12T08:03:15.000000Z K 7 svn:log V 21 Clean up prototypes. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-12T08:46:07.000000Z K 7 svn:log V 107 Introduce vfs_read_dirent() which can help VOP_READDIR() implementations by handling all the cookie stuff. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T09:19:25.000000Z K 7 svn:log V 165 Merge umask.2:1.13 from HEAD to RELENG_6: Add mkfifo(2) to the man page SEE ALSO list for umask(2) -- it's mentioned in the description. Approved by: re (hrs) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T09:42:29.000000Z K 7 svn:log V 205 Add fifo_io, a regression test for I/O operations on POSIX fifos. We currently can't pass this regression test due to broken poll() and select() support for fifos, but past the basic I/O operation tests. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T10:05:08.000000Z K 7 svn:log V 186 Rather than reaching into the internals of the UNIX domain socket code by calling uipc_connect2() to connect two socket endpoints to create a fifo, call soconnect2(). MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T10:06:38.000000Z K 7 svn:log V 224 Add an assertion that fifo_open() doesn't race against other threads while sleeping to allocate fifo state: due to using the vnode lock to serialize access to a fifo during open, it shouldn't happen (tm). MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T10:07:21.000000Z K 7 svn:log V 103 When a writer opens a fifo, wake up the read socket for read, not the write socket. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T10:13:15.000000Z K 7 svn:log V 320 After going to some trouble to identify only the write-related events to poll the write socket for, the fifo polling code proceeded to poll for the complete set of events. Use 'levents' instead of 'events' as the argument to poll, and only poll the write socket if there is interest in write events. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T10:16:18.000000Z K 7 svn:log V 488 Only poll the fifo for read events if the fifo is attached to a readable file descriptor. Otherwise, the read end of a fifo might return that it is writable (which it isn't). Only poll the fifo for write events if the fifo attached to a writable file descriptor. Otherwise, the write end of a fifo might return that it is readable (which it isn't). In the event that a file is FREAD|FWRITE (which is allowed by POSIX, but has undefined behavior), we poll for both. MFC after: 3 days END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-09-12T10:22:53.000000Z K 7 svn:log V 167 MFC rev 1.13 of c-decl.c. A nice side effect is that it's once again possible to compile a HEAD kernel in a RELENG_6 world via the normal shortcuts. Approved by: re END K 10 svn:author V 5 brian K 8 svn:date V 27 2005-09-12T11:20:07.000000Z K 7 svn:log V 173 Remove this file as it's mostly out of date. Up-to-date info such as the program's origin is already in the man page. Update requested by: Xavier Venient & Jason McIntyre END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2005-09-12T11:25:17.000000Z K 7 svn:log V 940 Commit imported changes to RELENG_6: pf_ioctl.c Revision 1.153 Sun Aug 7 11:37:33 2005 UTC by dhartmei | verify ticket in DIOCADDADDR, from Boris Polevoy, ok deraadt@ pf_ioctl.c Revision 1.158 Mon Sep 5 14:51:08 2005 UTC by dhartmei | in DIOCCHANGERULE, properly initialize table, if used in NAT rule. | from Boris Polevoy , ok mcbride@ pf.c Revision 1.502 Mon Aug 22 11:54:25 2005 UTC by dhartmei | when nat'ing icmp 'connections', replace icmp id with proxy values | (similar to proxy ports for tcp/udp). not all clients use | per-invokation random ids, this allows multiple concurrent | connections from such clients. | thanks for testing to Rod Whitworth, "looks ok" markus@ pf.c Revision 1.501 Mon Aug 22 09:48:05 2005 UTC by dhartmei | fix rdr to bitmask replacement address pool. patch from Max Laier, | reported by Boris Polevoy, tested by Jean Debogue, ok henning@ Approved by: re (scottl) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T11:43:51.000000Z K 7 svn:log V 148 Use different temporary directory templates for fifo_io and fifo_open so that if the tests fail to GC their working spaces, it's clear which it is. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T11:58:14.000000Z K 7 svn:log V 227 Add fifo_misc, a regression test to hold misc. functional tests for fifos that don't obviously fit into create, open, and io. For now, add only a regression test to make sure that lseek() fails with ESPIPE (which it doesn't). END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T12:15:12.000000Z K 7 svn:log V 237 Remove DFLAG_SEEKABLE from fifo file descriptors: fifos are not seekable according to POSIX, not to mention the fact that it doesn't make sense (and hence isn't really implemented). This causes the fifo_misc regression test to succeed. END K 10 svn:author V 8 kensmith K 8 svn:date V 27 2005-09-12T13:31:33.000000Z K 7 svn:log V 73 Update for RELENG_6. Pointed out by: Many on current@. MFC after: 1 day END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-12T13:37:56.000000Z K 7 svn:log V 465 MFC 1.31: When a carp(4) interface is being destroyed and is in a promiscous mode, first interface is detached from parent and then bpfdetach() is called. If the interface was the last carp(4) interface attached to parent, then the mutex on parent is destroyed. When bpfdetach() calls if_setflags() we panic on destroyed mutex. To prevent the above scenario, clear pointer to parent, when we detach ourselves from parent. Approved by: re (kensmith) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-12T13:38:35.000000Z K 7 svn:log V 437 MFC 1.31: When a carp(4) interface is being destroyed and is in a promiscous mode, first interface is detached from parent and then bpfdetach() is called. If the interface was the last carp(4) interface attached to parent, then the mutex on parent is destroyed. When bpfdetach() calls if_setflags() we panic on destroyed mutex. To prevent the above scenario, clear pointer to parent, when we detach ourselves from parent. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-12T13:39:47.000000Z K 7 svn:log V 149 MFC 1.33: Change default KTR_COMPILE from KTR_GEN to KTR_ALL, to match with manual page. Reviewed by: jhb, pjd Approved by: re (kensmith) END K 10 svn:author V 4 nyan K 8 svn:date V 27 2005-09-12T13:40:10.000000Z K 7 svn:log V 56 more #ifndef PC98. This really fix the pc98 tinderbox. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-12T13:43:34.000000Z K 7 svn:log V 205 MFC: Make callout_reset() return a non-zero value if a pending callout was rescheduled. If there was no pending callout, then return 0. Reviewed by: iedowse, cperciva Approved by: re (kensmith) END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-09-12T13:46:32.000000Z K 7 svn:log V 125 Move the declaration of __cleanup to libc_private.h as it is used in both stdio/ and stdlib/. Don't define __cleanup twice. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2005-09-12T13:50:56.000000Z K 7 svn:log V 26 opt_pc98.h is not needed. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-12T14:11:11.000000Z K 7 svn:log V 147 When message can't fit into socket receive buffer return ENOBUFS to userland program instead of letting it wait until end of days. PR: kern/85907 END K 10 svn:author V 5 maxim K 8 svn:date V 27 2005-09-12T14:12:09.000000Z K 7 svn:log V 117 o Add shutdown(2) regression tests. At the moment we cannot pass shutdown-on-non connected socket test, kern/84761. END K 10 svn:author V 2 le K 8 svn:date V 27 2005-09-12T14:31:49.000000Z K 7 svn:log V 125 Clean up. Remove unused functions. Reduce indentation level by reverting the logic of the enclosing conditional statement. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-12T14:46:19.000000Z K 7 svn:log V 460 MFC 1.112: Fix an item leak, that happens when some node calls ng_callout() two times consequently, without checking whether callout has been serviced or not. (ng_pptpgre and ng_ppp were catched in this behavior). - In ng_callout() save old item before calling callout_reset(). If the latter has returned 1, then free this item. - In ng_uncallout() clear c->c_arg. Problem reported by: Alexandre Kardanev Approved by: re (kensmith) END K 10 svn:author V 6 mlaier K 8 svn:date V 27 2005-09-12T14:46:55.000000Z K 7 svn:log V 366 Commit imported changes to RELENG_5: pf_ioctl.c Revision 1.153 Sun Aug 7 11:37:33 2005 UTC by dhartmei | verify ticket in DIOCADDADDR, from Boris Polevoy, ok deraadt@ pf_ioctl.c Revision 1.158 Mon Sep 5 14:51:08 2005 UTC by dhartmei | in DIOCCHANGERULE, properly initialize table, if used in NAT rule. | from Boris Polevoy , ok mcbride@ END K 10 svn:author V 4 jkim K 8 svn:date V 27 2005-09-12T15:31:28.000000Z K 7 svn:log V 102 use monotonic `time_uptime' instead of `time_second' Approved by: anholt (mentor) Discussed on: arch END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-09-12T15:53:28.000000Z K 7 svn:log V 34 Don't declare ___res_ext() twice. END K 10 svn:author V 5 tegge K 8 svn:date V 27 2005-09-12T15:53:58.000000Z K 7 svn:log V 153 MFC: Don't retry when vget() returns ENOENT in the nonblocking case due to the vnode being doomed. It causes a livelock. Approved by: re (scottl) END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2005-09-12T15:55:44.000000Z K 7 svn:log V 224 Process one NMI interrupt per handler invocation as the processor 'buffers' pending NMIs from multiple interrupting PMCs and delivers them serially. Reported by: Olivier Crameri MFC after: 3 days END K 10 svn:author V 5 tegge K 8 svn:date V 27 2005-09-12T15:56:07.000000Z K 7 svn:log V 63 MFC: Giant is no longer needed here. Approved by: re (scottl) END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-09-12T15:58:15.000000Z K 7 svn:log V 160 Fix the prototypes for devname() and devname_r(), the first two argument types are supposed to be dev_t and mode_t (prefixed with __ due to namespace reasons). END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-09-12T16:02:54.000000Z K 7 svn:log V 39 Use prototypes for CHIN1() and CHIN(). END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-09-12T16:06:15.000000Z K 7 svn:log V 46 Include at the top of the file. END K 10 svn:author V 4 emax K 8 svn:date V 27 2005-09-12T16:09:23.000000Z K 7 svn:log V 111 MFC to RELENG_6 Fix typo in usage Submitted by: Jonatan B Approved by: re (scottl) END K 10 svn:author V 4 emax K 8 svn:date V 27 2005-09-12T16:11:25.000000Z K 7 svn:log V 111 MFC to RELENG_5 Fix typo in usage Submitted by: Jonatan B Approved by: re (scottl) END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-09-12T16:11:48.000000Z K 7 svn:log V 89 Put a getosreldate() prototype into , getosreldate(3) implies there is one. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-09-12T16:16:12.000000Z K 7 svn:log V 71 - Add prototypes for __cmpdi2() and __ucmpdi2(). - Remove GCC 1 stuff. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T17:05:48.000000Z K 7 svn:log V 688 Further updates to fifo_io regression test: - Teach fifo_io about kqueue monitoring of fifo file descriptor status, and add test cases for kqueue to match existing case for poll and select. Add a new cleanup routine, cleanfifokq(), for use in tests that use kqueues. kqueue_setup() sets up kqueue sessions, and kqueue_status() returns file descriptor status. - Correct a bug in select handling relating to the nfds argument, which was incorrect so resulted in select occuring on the wrong file descriptor, and possible false positive/negative results. - Clarify error reporting in one byte write+read tests to distinguish errors in the after case from the before case. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T18:07:49.000000Z K 7 svn:log V 194 When a request is made to register a filter on a fifo that doesn't apply to the fifo (i.e., not EVFILT_READ or EVFILT_WRITE), reject it as EINVAL, not by returning 1 (EPERM). MFC after: 3 days END K 10 svn:author V 8 netchild K 8 svn:date V 27 2005-09-12T18:33:33.000000Z K 7 svn:log V 1142 - Fix the locking in dsp.c to prevent a LOR (AFAIK not on the LOR page). - Remove an assertion in sound.c, it's not needed (and causes a panic now). From the conversation via mail between glebius and Ariff: ---snip--- > Well, but which mutex protects now? Do we own anything else > in pcm_chnalloc()? I see some queue(4) macros in pcm_chnalloc(), > they should be protected, shouldn't they? Queue insertion/removal occur during 1) driver loading (which is pretty much single thread / sequential) or unloading (mutex protected, bail out if there is any channel with refcount > 0 or busy). 2) vchan_create()/destroy(), (which is *sigh* quite complicated), but somehow protected by 'master'/parent channel mutex. Other thread cannot add/remove vchan (or even continue traversing that queue) unless it can acquire parent channel mutex. ---snip--- Fix the locking in dsp.c to prevent a LOR (AFAIK not on the LOR page). Submitted by: Ariff Abdullah Tested with: INVARIANTS[1] and DIAGNOSTICS[2] Tested by: netchild [1,2], David Reid [1] END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T19:22:37.000000Z K 7 svn:log V 137 In vfs_kqfilter(), return EINVAL instead of 1 (EPERM) when an unsupported kqueue filter type is requested on a vnode. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T19:26:03.000000Z K 7 svn:log V 167 In netkqfilter(), return EINVAL instead of 1 (EPERM) when a filter type is requested on a network interface file descriptor that is non-applicable. MFC after: 3 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T19:31:16.000000Z K 7 svn:log V 337 Comment test_lseek(). Add test_kqueue(), which registers and unregisters various kqueue filter types on a fifo in order to make sure that EVFILT_READ, EVFILT_WRITE can be registered, and that EVFILT_NETDEV can't be registered. For now, we don't test that EVFILT_VNODE can be registered on fifos, as that has been broken at some point. END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-09-12T19:52:42.000000Z K 7 svn:log V 101 Include a couple of headers to ensure consistency between the prototype and the function definition. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-12T19:59:12.000000Z K 7 svn:log V 711 Introduce no-op nosup fifo kqueue filter and detach routine, which are used when a read filter is requested on a write-only fifo descriptor, or a write filter is requested on a read-only fifo descriptor. This permits the filters to be registered, but never raises the event, which causes kqueue behavior for fifos to more closely match similar semantics for poll and select, which permit testing for the condition even though the condition will never be raised, and is consistent with POSIX's notion that a fifo has identical semantics to a one-way IPC channel created using pipe() on most operating systems. The fifo regression test suite can now run to completion on HEAD without errors. MFC after: 3 days END K 10 svn:author V 3 das K 8 svn:date V 27 2005-09-12T20:54:00.000000Z K 7 svn:log V 63 Add a missing ldexpf() alias for amd64. Noticed by: bz@, tjr@ END K 10 svn:author V 3 das K 8 svn:date V 27 2005-09-12T21:01:28.000000Z K 7 svn:log V 145 MFC rev 1.64. Rev 1.51.2.3 claimed to be an MFC of 1.53, 1.55, 1.56, 1.59, 1.60, 1.62, and 1.64, but I left out 1.64. Reported by: asmodai@ END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2005-09-13T02:23:25.000000Z K 7 svn:log V 168 Fix a bug that caused generated gmon.out profiles to be out of whack. Use saturating arithmetic when incrementing a bucket. Improve a few comments. MFC after: 3 days END K 10 svn:author V 6 grehan K 8 svn:date V 27 2005-09-13T05:11:37.000000Z K 7 svn:log V 271 MFC r1.101 Fix boot-time hang/panic on G3 systems when modifying IBAT0 in pmap_bootstrap by using the sync;isync big hammer to make sure all prior operations have completed. Reported by: Nathan Whitehorn Approved by: re (Ken Smith) END K 10 svn:author V 6 grehan K 8 svn:date V 27 2005-09-13T05:59:07.000000Z K 7 svn:log V 352 MFC 1.3 Comment out ofw_console 'screen' entry and zs tty entries. The OpenFirmware console isn't used on real systems anymore and I never get to multi-user mode in psim. There are problems with zs that need to be resolved before these lines can be enabled. This eliminates disconcerting warnings on boot. Approved by: re (Ken Smith) END K 10 svn:author V 4 nyan K 8 svn:date V 27 2005-09-13T08:27:38.000000Z K 7 svn:log V 103 MFi386: revisions 1.10 and 1.11. - Add '-mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3' to CFLAGS. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2005-09-13T08:29:03.000000Z K 7 svn:log V 23 MFi386: revision 1.11. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-13T09:23:22.000000Z K 7 svn:log V 465 Annotate two issues: 1) fifo_kqfilter() is not actually ever used, it likely should be GC'd. 2) fifo_kqfilter_f() doesn't implement EVFILT_VNODE, so detecting events on the underlying vnode for a fifo no longer works (it did in 4.x). Likely, fifo_kqfilter_f() should forward the request to the VFS using fp->f_vnode, which would work once fifo_kqfilter() was detached from the vnode operation vector (removing the fifo override). Discussed with: phk END K 10 svn:author V 7 yongari K 8 svn:date V 27 2005-09-13T10:12:28.000000Z K 7 svn:log V 117 Unlock driver lock before calling resource_int_value(9). This should fix LOR(in fact it's not LOR) in device attach. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-13T10:33:32.000000Z K 7 svn:log V 27 Remove a debugging printf. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-13T10:39:24.000000Z K 7 svn:log V 242 As a result of kqueue locking work, socket buffer locks will always be held when entering a kqueue filter for fifos via a socket buffer event: as such, assert the lock unconditionally rather than acquiring it conditionall. MFC after: 3 days END K 10 svn:author V 4 nyan K 8 svn:date V 27 2005-09-13T11:33:25.000000Z K 7 svn:log V 29 Remove EPSON_NRDISK support. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2005-09-13T11:34:07.000000Z K 7 svn:log V 25 Remove unused functions. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-13T12:41:05.000000Z K 7 svn:log V 82 MFC 1.26 by ru: Fixed parsing of unsigned integers. Approved by: re (kensmith) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-13T12:41:52.000000Z K 7 svn:log V 54 MFC 1.26 by ru: Fixed parsing of unsigned integers. END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-13T12:43:15.000000Z K 7 svn:log V 95 MFC 1.68 by obrien: Fix missing '=' in structure initialization. Approved by: re (kensmith) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-13T12:44:19.000000Z K 7 svn:log V 141 MFC 1.7: Plug item leak in case when not all hooks are connected. Found by: David Vos Approved by: re (kensmith) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-13T12:44:55.000000Z K 7 svn:log V 113 MFC 1.7: Plug item leak in case when not all hooks are connected. Found by: David Vos END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-09-13T13:56:22.000000Z K 7 svn:log V 195 MFC rev. 1.233: Fix ICMP_UNREACH_NEEDFRAG case where no MTU was proposed in the ICMP reply. PR: kern/81813 Submitted by: Vitezslav Novy Approved by: re (kensmith) END K 10 svn:author V 5 maxim K 8 svn:date V 27 2005-09-13T14:34:11.000000Z K 7 svn:log V 115 MFC rev. 1.10: postpone a temporary file creation until we realize if ipfw(4) ever used. Approved by: re (scottl) END K 10 svn:author V 7 glebius K 8 svn:date V 27 2005-09-13T14:37:58.000000Z K 7 svn:log V 427 MFC 1.141: - Do not hold route entry lock, when calling arprequest(). One such call was introduced by me in 1.139, the other one was present before. - Do all manipulations with rtentry and la before dropping the lock. - Copy interface address from route into local variable before dropping the lock. Supply this copy as argument to arprequest(). (LOR Ids in original commit message.) Approved by: re (scottl) END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-09-13T14:44:08.000000Z K 7 svn:log V 168 MFC rev. 1.233: Fix ICMP_UNREACH_NEEDFRAG case where no MTU was proposed in the ICMP reply. PR: kern/81813 Submitted by: Vitezslav Novy END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-13T15:16:50.000000Z K 7 svn:log V 1354 Various and sundry improvements: - Replace 'process' with 'thread' everywhere. - Update several places to note that that the fact that default mutexes may adaptively spin isn't necessarily MD, but is just part of the implementation as a whole. - Clarify the text about MTX_SPIN mutexes only being appropriate for INTR_FAST interrupts or other low level scheduler code to make the jargon more FreeBSD-ish rather than BSD/OS-ish. - Also, note that it is possible that interrupts aren't blocked but just deferred when a spin lock is held (the whole blocked vs. deferred bit is an MD implementation detail). - Remove statements saying that spin locks must be released in the exact opposite order that they were acquired. This stopped being true several years ago when we first added critical sections that stored their state in the current thread rather than in struct mtx. - Note that a mutex must be initialized before it is passed to any other mutex function, not just mtx_lock. - Clarify that mtx_trylock() only operates on MTX_DEF mutexes. - Simplify the text about possible preemption during a mtx_unlock(). - Use complete English sentences in place of phrases in a few places. - Clarify that it isn't ever safe to sleep with a mutex held. The kernel tends to panic when you do that. Requested by: scottl (7) MFC after: 3 days END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2005-09-13T15:23:26.000000Z K 7 svn:log V 64 MFC r1.9: Improve an error message. Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-13T15:49:12.000000Z K 7 svn:log V 159 Teach fifo_io how to use ioctl(FIONREAD) to determine if a fifo is readable, and use that in addition to poll+select+kqueue to verify appropriate readability. END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-09-13T16:04:56.000000Z K 7 svn:log V 80 Garbage collect bpfstat. This is handled by netstat now. Requested by: rwatson END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-13T17:15:05.000000Z K 7 svn:log V 1249 Restructure fifo_io event-related tests in order to support test cases relating to O_RDWR file descriptors, which while not defined in POSIX, are in fact used: (1) Revise assumption that we have two file descriptors when testing I/O operations on a fifo. Provide cleanup routines that handle either two or three file descriptors (including a kqueue descriptor). (2) Add an openfifo_rw() routine to supplement openfifo(). (3) kqueue_setup() now configures an existing kqueue to monitor a new file descriptor, rather than allocating a new kqueue to monitor two existing file descriptors. (4) Wrap all direct poll/select/kqueue/FIONREAD interactions in a single function, assert_status(), which takes a file descriptor, kqueue descriptor, assertion of read/writable/exception states, and test description, then tests the assertion. This reduces the bulk of calls in many of the tests, making them shorter, more readable, and easier to determine correct. (5) Add a new test_events_rdwr() function, which performs a basic create/ write/read event test on a O_RDWR fifo file descriptor. This is currently failed by our fifo code in HEAD due to a bug in FIONREAD handling. Fix to be merged shortly. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-13T17:25:35.000000Z K 7 svn:log V 98 Add two small tests to set and clear two file I/O flags using ioctl on a fifo: FIONBIO, FIOASYNC. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-13T17:41:48.000000Z K 7 svn:log V 30 MFp4: Remove stale functions. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-13T17:46:48.000000Z K 7 svn:log V 884 Trim down now (believed to be) unused fifo_ioctl() and fifo_kqfilter() VOP implementations, since they in theory are used only on open file descriptors, in which case the ioctls are via fifo_ioctl_f() and kqueue requests are via fifo_kqfilter_f(). Generate warnings if they are entered for now. These printf() calls should become panic() calls. Annotate and re-implement fifo_ioctl_f(): don't arbitrarily forward ioctls to the socket layer, only forward the ones we explicitly support for fifos. In the case of FIONREAD, don't forward the request to the write socket on a read-write fifo, or the read result is overwritten. Annotate a nasty case for the undefined POSIX O_RDWR on fifos, in which failure of the second ioctl will result in the socket pair being in an inconsistent state. Assert copyright as I find myself rewriting non-trivial parts of fifofs. MFC after: 3 days END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-13T17:49:47.000000Z K 7 svn:log V 37 Define and use PCCARD_MEM_PAGE_SIZE. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-13T17:56:36.000000Z K 7 svn:log V 111 Add a few new functions interfaces to allow reading/writing attribute memory, the CCR and a tweak to cis_scan. END K 10 svn:author V 7 thompsa K 8 svn:date V 27 2005-09-13T18:02:39.000000Z K 7 svn:log V 620 MFC: if_bridge.c, r1.21; if_ethersubr.c, r1.198; in6_ifattach.c, r1.28; nd6.c, r1.55; nd6_nbr.c, r1.33 > Add support for multicast to the bridge and allow inet6 addresses to be > assigned to the interface. > > IPv6 auto-configuration is disabled. An IPv6 link-local address has a > link-local scope within one link, the spec is unclear for the bridge case and > it may cause scope violation. > > An address can be assigned in the usual way; > ifconfig bridge0 inet6 xxxx:... > > Tested by: bmah > Reviewed by: ume (netinet6) > Approved by: mlaier (mentor) Approved by: re (kensmith), mlaier (mentor) END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-13T18:55:28.000000Z K 7 svn:log V 305 Add the olicom OC2231 and OC2232 to the list of cards that we should attach to. These cards are combo cards (in that they have a modem inside of them), but not true MFC cards. Full support of these cards will have to wait until we can pick the config to use and for the PFC support that I have brewing. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-13T19:01:53.000000Z K 7 svn:log V 85 Add a "-q" quiet flag to kenv so that warnings can be suppressed. MFC after: 1 week END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-13T19:07:00.000000Z K 7 svn:log V 162 Use smaller names. The "NE2000 PCI Ethernet" is largerly redundant with edX at pciY. This removes 8*22 bytes from the strings. Not a huge win, but a cheap one. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-13T19:07:02.000000Z K 7 svn:log V 210 Use kenv -q to extract dumpdev rather than kenv, in order to avoid spamming the console in the event that a loader tunable 'dumpdev' isn't defined, which is not a relevant failure to report. MFC after: 1 week END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-13T19:09:57.000000Z K 7 svn:log V 45 MFp4: Minor formatting nits in pccard table. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-13T19:15:28.000000Z K 7 svn:log V 341 Don't consider being unable to open the bounds file worthy of printing at LOG_WARNING by default; instead, consider it something to be printed to the tty when 'verbose' mode is set. This avoids printing out extra lines at every boot on a system with crash dumps enabled, but that has not yet had to generate a crashdump. MFC after: 1 week END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-13T19:25:30.000000Z K 7 svn:log V 87 Use new convenience function to read CIS rather than the older, harder to use version. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-13T19:28:03.000000Z K 7 svn:log V 85 MFp4: o Move to new pccard_cis_scan convenience function. o Remove compat layer goo. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-13T19:47:44.000000Z K 7 svn:log V 918 MFp4: Omnibus ed changes o Attach AX88x90's MII bus to system, and require its presence. o Reorg the mii code a little, and move more of it into pccard attachment. o Eliminate ed_pccard_{read,write}_attrmem in favor of a more appropriate function in the pccard layer. o Update comments to reflect knowledge gained. o Update how re recognize a NE-2000 ROM. I found a couple of different datasheets that define the structure of the PROM data, so the code's old heuristics have been removed, and comments updated to reflect the structure. o Eliminate work around for EC2T. It is no longer needed, and was wrong headed since the EC2T has a Winbound 82C926C in it, not a AX88x90. o Add copyright to if_ed_pccard.c, since I believe I've re-written more than 3/4 of it. # With these changes, all of my 20-odd ed based cards work, except for the # NetGear FA-410, and I'm pretty sure that's a MII/PHY problem. END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-13T19:54:14.000000Z K 7 svn:log V 72 MFp4: o Use pccard_cis_scan o use pccard_attr_write_1 o Update comments END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-13T19:56:07.000000Z K 7 svn:log V 52 MFp4: Migrate from CARD_CIS_SCAN to pccard_cis_scan END K 10 svn:author V 6 marcel K 8 svn:date V 27 2005-09-13T20:54:00.000000Z K 7 svn:log V 79 MFC 1.20: Remove the execute permission for stacks. Approved by: re (blanket) END K 10 svn:author V 6 marcel K 8 svn:date V 27 2005-09-13T21:07:14.000000Z K 7 svn:log V 499 Mega-MFC: Add SMP support and enable it by default. This includes: conf/GENERIC: 1.73, 1.53 ia64/exception.S: 1.57 ia64/interrupt.c: 1.50, 1.51 ia64/machdep.c: 1.201, 1.202 ia64/mp_machdep.c: 1.56, 1.57, 1.58 ia64/pmap.c: 1.161, 1.162, 1.164, 1.165, 1.166 ia64/sal.c: 1.15 ia64/trap.c: 1.114, 1.115 ia64/vm_machdep.c: 1.91, 1.92 include/ia64_cpu.h: 1.20 include/param.h: 1.21 include/pmap.h: 1.25 include/proc.h: 1.15 include/smp.h: 1.10 Approved by: re (kensmith, scottl -- thanks!) END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-09-13T22:13:01.000000Z K 7 svn:log V 179 If there are'nt any bpf descriptors to process than dont bother attempting to retrieve statistic information for them. Pointed out by: Pawel Worach < pawel.worach at gmail.com > END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-09-13T23:11:16.000000Z K 7 svn:log V 72 Print a warning if we fail to retrieve the process name for any reason. END K 10 svn:author V 7 yongari K 8 svn:date V 27 2005-09-14T01:34:13.000000Z K 7 svn:log V 248 Fix module unload panic which was caused by missing sx lock release. While I'm here add KASSERT(9) to notify failure of SYSUNINIT handler. Reported by: Ben Kaduk < minimarmot AT gmail DOT com > Tested by: Ben Kaduk < minimarmot AT gmail DOT com > END K 10 svn:author V 7 delphij K 8 svn:date V 27 2005-09-14T02:45:50.000000Z K 7 svn:log V 299 MFC 1.118: When padding with zero, do pad after prefixes rather than padding before prefixes. Use cases: printf("%05d", -42); --> "00-42" (should be "-0042") printf("%#05x", 12); --> "000xc" (should be "0x00c") Submitted by: Oliver Fromme PR: kern/85520 Approved by: re (kensmith) END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-14T05:04:12.000000Z K 7 svn:log V 126 Manpage for the acpi_sony(4) driver. This is more of a dummy page at the moment, but better than nothing. MFC after: 3 days END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-14T05:09:33.000000Z K 7 svn:log V 20 Hook up acpi_sony.4 END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-09-14T05:46:28.000000Z K 7 svn:log V 479 Use time_uptime for timing commands instead of time_second. This is a bit risky because the "current time" is supposed to be fed to the card during initialization, and the current time is supposed to be put into each command that is sent to the card. Hopefully either the card doesn't actually care about the timestamps, or it doesn't care about the absolute values so long and the relative values are consistent. Not an MFC candidate until more thorough testing can be done. END K 10 svn:author V 6 scottl K 8 svn:date V 27 2005-09-14T05:49:34.000000Z K 7 svn:log V 71 Bring aac_cam into line with using time_uptime instead of time_second. END K 10 svn:author V 8 brueffer K 8 svn:date V 27 2005-09-14T05:50:09.000000Z K 7 svn:log V 36 Note acpi_sony(4) manpage addition. END K 10 svn:author V 2 bz K 8 svn:date V 27 2005-09-14T07:53:54.000000Z K 7 svn:log V 144 Fix panic when kernel compiled without INET6 by rejecting IPv6 opcodes which are behind #if(n)def INET6 now. PR: kern/85826 MFC after: 3 days END K 10 svn:author V 7 stefanf K 8 svn:date V 27 2005-09-14T09:01:06.000000Z K 7 svn:log V 125 Back out 1.247. On ia64 is included from assembler source, the prototype broke buildword. Noticed by: marcel END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-14T10:28:01.000000Z K 7 svn:log V 98 Fix "Memory modified after free" panic on detach, caused by accessing already freed struct ifnet. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-09-14T10:42:51.000000Z K 7 svn:log V 34 Correct type. OK'ed by: cperciva END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-14T12:33:23.000000Z K 7 svn:log V 177 Fixed "Memory modified after free" panic in rl_detach() due to rl_stop() accessing already freed "struct ifnet". Fixed LOR between rl mutex and some ACPI mutex in rl_detach(). END K 10 svn:author V 4 nyan K 8 svn:date V 27 2005-09-14T12:39:06.000000Z K 7 svn:log V 44 Remove EPSON PC-386 note A/W/AE/WR support. END K 10 svn:author V 4 nyan K 8 svn:date V 27 2005-09-14T12:42:39.000000Z K 7 svn:log V 50 Add some defines for EPSON machines and use them. END K 10 svn:author V 3 sos K 8 svn:date V 27 2005-09-14T12:45:06.000000Z K 7 svn:log V 142 Harden the hotplug support for SATA devices. This also fixes a few races that was present in the timeout/detach code. Sponsored by: pair.com END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-09-14T14:57:04.000000Z K 7 svn:log V 152 Remove bogous semicolons at the end of the definitions of 'do { ... } while (0)' macros. PR: kern/83088 Sumbitted by: END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-09-14T15:06:22.000000Z K 7 svn:log V 209 Do not ignore all other TCP options (eg. timestamp, window scaling) when responding to TCP SYN packets with TCP_MD5 enabled and set. PR: kern/82963 Submitted by: MFC after: 3 days END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-09-14T15:18:12.000000Z K 7 svn:log V 176 Increase boot-time DigiBIOS initialization timeout to allow for a larger number of chained port modules. PR: kern/55018 Submitted by: Cyrill Shevchuk END K 10 svn:author V 4 joel K 8 svn:date V 27 2005-09-14T16:32:21.000000Z K 7 svn:log V 86 Remove superfluous reference to the FreeBSD handbook. Approved by: brueffer (mentor) END K 10 svn:author V 4 joel K 8 svn:date V 27 2005-09-14T16:36:19.000000Z K 7 svn:log V 48 Xref msdosfs(5) Approved by: brueffer (mentor) END K 10 svn:author V 5 andre K 8 svn:date V 27 2005-09-14T16:37:05.000000Z K 7 svn:log V 215 Undo a tad little optimization to bpf_mtap() introduced in rev. 1.95 which broke the correct handling of the BIOCGSEESENT flag in the bpf listener. PR: kern/56441 Submitted by: MFC after: 3 days END K 10 svn:author V 2 ru K 8 svn:date V 27 2005-09-14T19:03:14.000000Z K 7 svn:log V 40 Make device_detach methods really work. END K 10 svn:author V 4 ache K 8 svn:date V 27 2005-09-14T19:14:32.000000Z K 7 svn:log V 184 Don't reuse *pl to skip [], it is already used for {} parts in the loop above (submitted patch slightly modified) PR: 86038 Submitted by: Gerd Rausch END K 10 svn:author V 4 ache K 8 svn:date V 27 2005-09-14T20:35:46.000000Z K 7 svn:log V 270 Remove any hardcoded assumptions about malloc's way of allocating, just use MAXPATHLEN. It prevents potential buffer overflow with other malloc implementations. (this change based on submitted patch) PR: 86135 Submitted by: Trevor Blackwell END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2005-09-14T21:15:50.000000Z K 7 svn:log V 241 Determine where the runtime loader got mapped to when a dynamically linked process was exec()'ed, and map samples in that address range into the appropriate buckets in the runtime loader's profile. Improve a few comments. MFC after: 3 days END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-09-14T21:21:45.000000Z K 7 svn:log V 119 MFC: 1.10 As with NO_CRYPT, don't try to compile geli(8) when NO_OPENSSL is defined either. Approved by: re (scottl) END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-09-14T21:23:50.000000Z K 7 svn:log V 571 MFC: 1.34 - Allow for VLAN-sized frames and set IFCAP_VLAN_MTU. - On resume all registers have to be initialized again like after power-on so reset sc_inited in gem_suspend() in order get all of the registers set next time gem_init_regs() is called. - On at least some ERI and GEM revisions GEM_MAC_RX_OVERFLOW happen often due to a silicon bug and re-initializing is all we can do about these errors so make handling them non-verbose. - Remove a superfluous memset(3) call in gem_meminit(), all elements are initialized to 0 anyway. Approved by: re (scottl) END K 10 svn:author V 6 marius K 8 svn:date V 27 2005-09-14T21:26:09.000000Z K 7 svn:log V 174 MFC: 1.26 Add gem(4) to the list of devices supporting VLAN-sized frames natively (since sys/dev/gem/if_gem.c rev. 1.34, MFC'ed in rev. 1.29.2.4). Approved by: re (scottl) END K 10 svn:author V 7 rodrigc K 8 svn:date V 27 2005-09-14T21:38:35.000000Z K 7 svn:log V 447 Fix so that when a slice or a partition is removed through g_slice_config(), it is destroyed in GEOM, in addition to being removed from /dev. Before this patch, if you applied a new MBR which deleted a slice, the deleted slice would not be in /dev, but it would still appear in kern.geom.conftxt and kern.geom.confxml, which would confused the diskPartitionEditor in sysinstall. Submitted by: pjd Tested by: pjd, rodrigc MFC after: 1 week END K 10 svn:author V 6 jcamou K 8 svn:date V 27 2005-09-15T02:29:37.000000Z K 7 svn:log V 47 MFC: rev. 1.22. Approved by: trhodes (mentor) END K 10 svn:author V 3 imp K 8 svn:date V 27 2005-09-15T04:05:09.000000Z K 7 svn:log V 253 When stopping the card, and returning to page 0, it is best if you do that with the NIC set of registers rather than the ASIC registers. I believe this was a harmless oversight, since we set ED_P0_CR to the same value 5ms later, but just to be safe... END K 10 svn:author V 6 marcel K 8 svn:date V 27 2005-09-15T05:32:11.000000Z K 7 svn:log V 391 Mega-MFC: o Manpage type fix: kgdb/kgdb.1: 1.8 o Unwind across trapframes: kgdb/kgdb.h: 1.3 kgdb/kthr.c: 1.3 kgdb/main.c: 1.9 kgdb/trgt.c: 1.4 kgdb/trgt_alpha.c: 1.3, 1.4 kgdb/trgt_amd64.c: 1.3, 1.4, 1.5 kgdb/trgt_i386.c: 1.3, 1.4, 1.5 kgdb/trgt_ia64.c: 1.3, 1.4 kgdb/trgt_sparc64.c: 1.4, 1.5, 1.6 libgdb/Makefile: 1.10 libgdb/frame-unwind.diff: 1.1 Approved by: re (scottl) END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-15T06:57:28.000000Z K 7 svn:log V 538 Close a race which could result in unwarranted "ruleset %d already running" panics. Previously, recursion through the "include" feature was prevented by marking each ruleset as "running" when applied. This doesn't work for the case where two DEVFS instances try to apply the same ruleset at the same time. Instead introduce the sysctl vfs.devfs.rule_depth (default == 1) which limits how many levels of "include" we will traverse. Be aware that traversal of "include" is recursive and kernel stack size is limited. MFC: after 3 days END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-15T08:01:57.000000Z K 7 svn:log V 36 Retire unused dev_named() function. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-15T08:36:37.000000Z K 7 svn:log V 94 Absolve devfs_rule.c from locking responsibility and call it with all necessary locking held. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-15T08:50:16.000000Z K 7 svn:log V 189 Protect the devfs rule internal global lists with a sx lock, the per mount locks are not enough. Finer granularity (x)locking could be implemented, but I prefer to keep it simple for now. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-15T10:28:19.000000Z K 7 svn:log V 25 Various minor polishing. END K 10 svn:author V 5 maxim K 8 svn:date V 27 2005-09-15T11:45:36.000000Z K 7 svn:log V 165 o Return ENOTCONN when shutdown(2) on non-connected socket. PR: kern/84761 Submitted by: James Juran R-test: tools/regression/sockets/shutdown MFC after: 1 month END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-15T13:07:38.000000Z K 7 svn:log V 59 Allocate unit numbers with unr, implement detach function. END K 10 svn:author V 3 rse K 8 svn:date V 27 2005-09-15T13:16:07.000000Z K 7 svn:log V 1405 Fix system shutdown timeout handling by again supporting longer running shutdown procedures (which have a duration of more than 120 seconds). We have two user-space affecting shutdown timeouts: a "soft" one in /etc/rc.shutdown and a "hard" one in init(8). The first one can be configured via /etc/rc.conf variable "rcshutdown_timeout" and defaults to 30 seconds. The second one was originally (in 1998) intended to be configured via sysctl(8) variable "kern.shutdown_timeout" and defaults to 120 seconds. Unfortunately, the "kern.shutdown_timeout" was declared "unused" in 1999 (as it obviously is actually not used within the kernel itself) and hence was intentionally but misleadingly removed in revision 1.107 from init_main.c. Kernel sysctl(8) variables are certainly a wrong way to control user-space processes in general, but in this particular case the sysctl(8) variable should have remained as it supports init(8), which isn't passed command line flags (which in turn could have been set via /etc/rc.conf), etc. As there is already a similar "kern.init_path" sysctl(8) variable which directly affects init(8), resurrect the init(8) shutdown timeout under sysctl(8) variable "kern.init_shutdown_timeout". But this time document it as being intentionally unused within the kernel and used by init(8). Also document it in the manpages init(8) and rc.conf(5). Reviewed by: phk MFC after: 2 weeks END K 10 svn:author V 5 maxim K 8 svn:date V 27 2005-09-15T13:18:05.000000Z K 7 svn:log V 103 Backout rev. 1.246, it breaks code uses shutdown(2) on non-connected sockets. Pointed out by: rwatson END K 10 svn:author V 5 maxim K 8 svn:date V 27 2005-09-15T13:20:39.000000Z K 7 svn:log V 55 Remove checks for shutdown(2) on non-connected socket. END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-15T13:27:16.000000Z K 7 svn:log V 129 First cut at a driver for National Instruments PCI-GPIB hardware. Hardware donated by: "Greg Maciejewski" END K 10 svn:author V 3 phk K 8 svn:date V 27 2005-09-15T13:28:33.000000Z K 7 svn:log V 32 Add tnt4882 driver to the build END K 10 svn:author V 8 cperciva K 8 svn:date V 27 2005-09-15T13:29:10.000000Z K 7 svn:log V 316 Portsnap uses host(1) to search for mirrors, but this is only available when the base system is not compiled with NO_BIND set. Before we start searching for mirrors, make sure that host(1) can be found, and if it doesn't exist then fallback to the A record instead of the SRV records. Submitted by: Luca Morettoni END K 10 svn:author V 7 cvs2svn K 8 svn:date V 27 2005-09-15T13:29:11.000000Z K 7 svn:log V 68 This commit was manufactured by cvs2svn to create branch 'RELENG_5'. END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-09-15T14:10:41.000000Z K 7 svn:log V 230 MFC: sys/dev/bge/if_bge.c 1.94 When bge_stop() is called from bge_detach(), mii is already NULL, so check before trying to use it. This fix allows to 'kldunload if_bge' without panicing. Reviewed by: bz Approved by: re (scottl) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-09-15T14:12:54.000000Z K 7 svn:log V 200 MFC: sbin/geom/class/eli/geom_eli.c 1.4 Even if there are no valid keys in metadata, but provider is attached we can still use setkey subcommand. Found by: regression tests Approved by: re (scottl) END K 10 svn:author V 3 pjd K 8 svn:date V 27 2005-09-15T14:17:31.000000Z K 7 svn:log V 180 MFC: sys/geom/eli/g_eli.c 1.12,1.13 - Don't forget to initialize crp_etype field. Reported by: Nick Evans - Fix copy&paste typo. Approved by: re (scottl) END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-09-15T15:03:48.000000Z K 7 svn:log V 914 Improve the MP safeness associated with the creation of symbolic links and the execution of ELF binaries. Two problems were found: 1) The link path wasn't tagged as being MP safe and thus was not properly protected. 2) The ELF interpreter vnode wasnt being locked in namei(9) and thus was insufficiently protected. This commit makes the following changes: -Sets the MPSAFE flag in NDINIT for symbolic link paths -Sets the MPSAFE flag in NDINIT and introduce a vfslocked variable which will be used to instruct VFS_UNLOCK_GIANT to unlock Giant if it has been picked up. -Drop in an assertion into vfs_lookup which ensures that if the MPSAFE flag is NOT set, that we have picked up giant. If not panic (if WITNESS compiled into the kernel). This should help us find conditions where vnode operations are in-sufficiently protected. This is a RELENG_6 candidate. Discussed with: jeff MFC after: 4 days END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-15T15:45:34.000000Z K 7 svn:log V 146 The socket pointers in fifoinfo are not permitted to be NULL, so don't check if they are, it just confuses the fifo code more. MFC after: 3 days END K 10 svn:author V 6 jkoshy K 8 svn:date V 27 2005-09-15T15:48:16.000000Z K 7 svn:log V 196 MFC r1.12: ``Process one NMI interrupt per handler invocation as the processor buffers pending NMIs from multiple interrupting PMCs and delivers them serially.'' Approved by: re (kensmith) END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-15T16:08:04.000000Z K 7 svn:log V 223 Add "-q" argument to sysctl(8), which suppresses a limited set of warnings/ errors generated. In particular, it suppresses "unknown oid" when attempting to get or set a sysctl not present in the kernel. MFC after: 1 week END K 10 svn:author V 4 csjp K 8 svn:date V 27 2005-09-15T16:09:24.000000Z K 7 svn:log V 63 Use is '-' to imply that the flag is not set, rather than '.'. END K 10 svn:author V 7 rwatson K 8 svn:date V 27 2005-09-15T16:09:28.000000Z K 7 svn:log V 155 Use sysctl -q when querying for kern.bootp_cookie in order to avoid printing boot-time errors that don't reflect true error conditions. MFC after: 1 week END K 10 svn:author V 3 jhb K 8 svn:date V 27 2005-09-15T17:09:42.000000Z K 7 svn:log V 158 Add a memory barrier for PREWRITE operations to ensure all writes by the CPU have drained before further writes to kick off the operation. MFC after: 1 week END