Commit Graph

4449 Commits

Author SHA1 Message Date
dsl
a89c49ee25 KNF - remove the K&R function definitions 2005-12-18 17:02:45 +00:00
dsl
5f7cb96ae2 Only update partition 2 when RAW_PART is 3. 2005-12-18 16:48:06 +00:00
yamt
758ed9461b fix spurious EINVAL at end of partition.
- rather than special-caseing EINVAL,
  simply pick an error at the lowest offset.
- correct uio_resid.
- add some debug code.
2005-12-17 05:26:41 +00:00
cube
c13d97c44b ktrace-lwp merge fallout. 2005-12-15 22:01:17 +00:00
yamt
d369d69d2f updatepri:
- don't compare a scaled value with a unscaled value.
- actually, 7 times the loadfactor is necessary to decay p_estcpu enough,
  even before the recent p_estcpu changes.
  after the recent p_estcpu change, 8 times loadavg decay is needed.
- fix a comment to match with the recent reality.
2005-12-15 13:43:49 +00:00
dsl
ae10740c03 Revert previous change.
It breaks the code that generates a default label (with partition 'a'
covering the entire volume - which is what everything expects) for disks that
don't have a NetBSD label nor an MBR, but do have a single filesytem covering
the entire volume.
2005-12-14 21:40:32 +00:00
cube
cb6200f890 Remove bogus XXX comment: a.msg doesn't point to stack data. 2005-12-14 15:27:59 +00:00
cube
ae544644cf Fix typo in previous commit. 2005-12-14 15:23:00 +00:00
reinoud
d3857d0bd2 Fix disklabel recognition code for mbr based systems like i386. It would
return NULL even though no disklabel was found making callers assume that a
valid disklabel WAS found but instead were presented by the dummy disklabel
that is created.

If the rval is SCAN_CONTINUE it now returns a standard error that no
disklabel was found instead of the NULL.
2005-12-14 15:01:03 +00:00
yamt
78bf100dce simplify rev.1.68 and fix EINVAL problem. add a comment. PR/32224. 2005-12-14 01:58:01 +00:00
reinoud
255662c92a Fix of panic that was introduced since ktrace-lwp branch was merged. The
shortcut to the process of the passed lwp paniced the kernel since lwp
could/can be passwd as NULL in VOP_WRITE().

This was happening when ktracing to NFS. The function ktrwrite() set the
uio_lwp to NULL and then calls VOP_WRITE() with this argument. nfs_write()
then accessed lwp *l->l_proc wich paniced.

Thanks to David Laight for his help on tracking it down.
2005-12-13 13:12:18 +00:00
yamt
0a40fe5a5e physio: deal with unaligned buffers/small maxphys/overlapped buffers.
fix PR/32224 from Matthias Scheler.
(uvm_vslock needs to be redesigned for threaded applications.
but it's a different problem.)
2005-12-13 12:29:32 +00:00
elad
6590e0e201 Catch up with ktrace-lwp merge.
While I'm here, stop using cur{lwp,proc}.
2005-12-12 16:26:33 +00:00
skrll
c9e1574d35 Get correct Ids after ktrace-lwp merge. 2005-12-11 13:02:20 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
he
3d002780df Move a misplaced #endif, so that NO_DEV_PTM builds don't get a duplicate
definition of ptm_cdevsw.
2005-12-09 01:06:15 +00:00
yamt
6bba73019a use VM_PAGE_TO_PHYS macro. 2005-12-08 22:41:44 +00:00
thorpej
9bdc42727c Sprinkle static. 2005-12-08 03:13:18 +00:00
thorpej
459c8f9316 Lose an __inline on a non-trivial function. 2005-12-08 03:12:31 +00:00
thorpej
b99f870719 Sprinkle static. 2005-12-08 03:11:14 +00:00
thorpej
fbd789fa2d Use ANSI function decls in one more place. 2005-12-08 03:10:12 +00:00
thorpej
7c4d54df55 Use ANSI function decls, sprinkle static. 2005-12-08 03:09:04 +00:00
thorpej
b5d9c8bb96 Sprinkle static. 2005-12-08 03:08:12 +00:00
thorpej
59898de0b4 Use ANSI function decls. 2005-12-08 03:06:31 +00:00
thorpej
5946661246 Sprinkle static. 2005-12-08 03:05:40 +00:00
thorpej
218b07e98d Use ANSI function delcs. 2005-12-07 06:14:13 +00:00
thorpej
b8352211cd Use ANSI function decls. 2005-12-07 05:53:24 +00:00
thorpej
6d942b5afc Regen: Generate ANSI function decls. 2005-12-07 00:46:23 +00:00
thorpej
aae7b1614d Generate ANSI function decls. 2005-12-07 00:45:57 +00:00
thorpej
3b7f7cc748 Regen: VNODE_OP_NOINLINE is gone. 2005-12-07 00:42:26 +00:00
thorpej
e3dec5c260 Remove the VNODE_OP_NOINLINE option. We now NEVER inline vnode ops.
Briefly discussed on tech-kern not too long ago.
2005-12-07 00:42:03 +00:00
christos
cfcbe4640f - make settime take timespec.
- avoid wrapping of time in settime (from OpenBSD)
- pass struct proc down so that we can log a detailed message.
2005-12-05 00:16:33 +00:00
christos
184ad089a7 - make settime take timespec.
- avoid wrapping of time in settime.
- pass struct proc down so that we can log a detailed message.
2005-12-05 00:16:33 +00:00
yamt
6ca0ee47b9 physio_done:
- report a correct error.
- remove a no-op goto.
2005-12-04 23:34:00 +00:00
christos
3b9c87155a Merge the 3 copies of m_getcl() so that fast ipsec compiles again together
with net80211. XXX: We don't really have an m_getcl(), we just emulate it.
2005-12-04 19:15:21 +00:00
christos
3b5b073fd2 protect sys/syscall.h properly against multiple inclusion and make the
names of the protection macros consistent.
2005-12-03 17:04:36 +00:00
yamt
a004e1d63c add "show all pools" command for ddb. 2005-12-01 13:21:05 +00:00
yamt
d3bf8145af regen to revert the previous. 2005-11-29 23:02:22 +00:00
yamt
7af60d1ad1 regen (after remove -kk) 2005-11-29 23:01:19 +00:00
yamt
83427523dc regen. 2005-11-29 22:54:08 +00:00
yamt
221616873d merge yamt-readahead branch. 2005-11-29 22:52:02 +00:00
yamt
467e5f4980 KNF. convert
if () {
        }
        /*
         * some
         * comments
         */
        else {
        }

to
        if () {
        } else {
                /*
                 * some
                 * comments
                 */
        }
2005-11-27 12:07:24 +00:00
thorpej
7d00e1aff3 Overhaul how TTY line disciplines are handled:
- Replace references to linesw[0] with a ttyldisc_default() function
  that returns the default ("termios") line discipline.
- The linesw[] array is gone, replaced by a linked list.
- ttyldisc_add() and ttyldisc_remove() have been replaced by
  ttyldisc_attach() and ttyldisc_detach().
- Things that provide line disciplines are now responsible for
  registering those disciplines with the system.  The linesw
  structures are no longer declared in tty_conf.c
- Line disciplines are now refcounted; a lookup causes a reference to
  be held.  ttyldisc_release() releases the reference.  Attempts to
  detach an in-use line discipline result in EBUSY.
- Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c
  that was masked by the old tty_conf.c
- tty_init() is no longer necessary; delete it and its call from main().
2005-11-27 05:35:52 +00:00
simonb
d077ba210f Convert malloc/free of struct ptimers to pools.
Move the ptimer pool to kern_time.c to keep like pools together,
and it wasn't used in kern_proc.c
2005-11-26 05:26:33 +00:00
thorpej
959eb5dd8e Statically initalize the systrace lock. systrace_init() is now not
needed on NetBSD.  Remove the call from main().
2005-11-25 20:32:32 +00:00
thorpej
6685f0f408 Use a once control to initialize the LKM subsystem on first open. Remove
the lkm_init() call from main().
2005-11-25 20:13:54 +00:00
thorpej
49fc1cb09c Use a once control to initialize the NFS server / client shared data
from nfs_vfs_init() or sys_nfssvc().  Remove the nfs_init() call from
main().
2005-11-25 20:01:38 +00:00
thorpej
9c99eab147 Use a once control to call initialize the 802.11 layer when
ieee80211_ifattach() is called.  "wlan" no longer needs-flag,
and remove the ieee80211_init() call from main().
2005-11-25 17:33:56 +00:00
thorpej
7bc6d90c9d - De-couple the software crypto implementation from the rest of the
framework.  There is no need to waste the space if you are only using
  algoritms provided by hardware accelerators.  To get the software
  implementations, add "pseudo-device swcr" to your kernel config.
- Lazily initialize the opencrypto framework when crypto drivers
  (either hardware or swcr) register themselves with the framework.
2005-11-25 16:16:46 +00:00
elad
d51a16a060 Remove few no longer needed XXX comments about fsid/fileid being
not the same type as dev_t/ino_t.
2005-11-25 12:02:09 +00:00