OpenBSD CVS

CVS log for src/sys/kern/kern_subr.c


[BACK] Up to [local] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.52 / (download) - annotate - [select for diffs], Tue Jan 31 15:18:56 2023 UTC (16 months, 1 week ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, HEAD
Changes since 1.51: +62 -1 lines
Diff to previous 1.51 (colored)

On systems without xonly mmu hardware-enforcement, we can still mitigate
against classic BROP with a range-checking wrapper in front of copyin() and
copyinstr() which ensures the userland source doesn't overlap the main program
text, ld.so text, signal tramp text (it's mapping is hard to distinguish
so it comes along for the ride), or libc.so text.  ld.so tells the kernel
libc.so text range with msyscall(2).  The range checking for 2-4 elements is
done without locking (because all 4 ranges are immutable!) and is inexpensive.

write(sock, &open, 400) now fails with EFAULT.  No programs have been
discovered which require reading their own text segments with a system call.

On a machine without mmu enforcement, a test program reports the following:
                  userland   kernel
ld.so             readable   unreadable
mmap xz           unreadable unreadable
mmap x            readable   readable
mmap nrx          readable   readable
mmap nwx          readable   readable
mmap xnwx         readable   readable
main              readable   unreadable
libc unmapped?    readable   unreadable
libc mapped       readable   unreadable

ok kettenis, additional help from miod

Revision 1.51 / (download) - annotate - [select for diffs], Sun Aug 14 01:58:27 2022 UTC (21 months, 4 weeks ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_7_2_BASE, OPENBSD_7_2
Changes since 1.50: +1 -2 lines
Diff to previous 1.50 (colored)

remove unneeded includes in sys/kern
ok mpi@ miod@

Revision 1.50 / (download) - annotate - [select for diffs], Sun Apr 29 17:26:31 2018 UTC (6 years, 1 month ago) by anton
Branch: MAIN
CVS Tags: OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, OPENBSD_6_4_BASE, OPENBSD_6_4
Changes since 1.49: +11 -5 lines
Diff to previous 1.49 (colored)

In hash{free,init}(), there's no need to calculate the size of the hash table if
the given number of elements already is a power of 2.

ok visa@, "seems like a good plan" deraadt@

Revision 1.49 / (download) - annotate - [select for diffs], Tue Feb 14 10:31:15 2017 UTC (7 years, 3 months ago) by mpi
Branch: MAIN
CVS Tags: OPENBSD_6_3_BASE, OPENBSD_6_3, OPENBSD_6_2_BASE, OPENBSD_6_2, OPENBSD_6_1_BASE, OPENBSD_6_1
Changes since 1.48: +2 -4 lines
Diff to previous 1.48 (colored)

Convert most of the manual checks for CPU hogging to sched_pause().

The distinction between preempt() and yield() stays as it is usueful
to know if a thread decided to yield by itself or if the kernel told
him to go away.

ok tedu@, guenther@

Revision 1.48 / (download) - annotate - [select for diffs], Sat Sep 24 18:35:52 2016 UTC (7 years, 8 months ago) by tedu
Branch: MAIN
Changes since 1.47: +15 -1 lines
Diff to previous 1.47 (colored)

introduce hashfree() function to free hash tables, with sizes.
ok guenther

Revision 1.47 / (download) - annotate - [select for diffs], Tue Mar 15 04:19:26 2016 UTC (8 years, 2 months ago) by stefan
Branch: MAIN
CVS Tags: OPENBSD_6_0_BASE, OPENBSD_6_0
Changes since 1.46: +1 -10 lines
Diff to previous 1.46 (colored)

Remove now unused legacy uiomovei() function.

All its callers got reviewed and converted to
use uiomove() properly.

ok deraadt@

Revision 1.46 / (download) - annotate - [select for diffs], Thu Feb 11 18:59:15 2016 UTC (8 years, 4 months ago) by stefan
Branch: MAIN
CVS Tags: OPENBSD_5_9_BASE, OPENBSD_5_9
Changes since 1.45: +8 -6 lines
Diff to previous 1.45 (colored)

Make sure uiomove does not copy more than uio_resid bytes, as the manual
says. Move code belonging to diagnostics in the #ifdef DIAGNOSTIC part
and add a KASSERT that makes sure that we do not run beyond uio_iov.
Diff from Martin Natano.

Revision 1.45 / (download) - annotate - [select for diffs], Fri Dec 11 16:07:02 2015 UTC (8 years, 6 months ago) by mpi
Branch: MAIN
Changes since 1.44: +2 -4 lines
Diff to previous 1.44 (colored)

Replace mountroothook_establish(9) by config_mountroot(9) a narrower API
similar to config_defer(9).

ok mikeb@, deraadt@

Revision 1.44 / (download) - annotate - [select for diffs], Sat Mar 14 03:38:50 2015 UTC (9 years, 3 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_5_8_BASE, OPENBSD_5_8
Changes since 1.43: +1 -2 lines
Diff to previous 1.43 (colored)

Remove some includes include-what-you-use claims don't
have any direct symbols used.  Tested for indirect use by compiling
amd64/i386/sparc64 kernels.

ok tedu@ deraadt@

Revision 1.43 / (download) - annotate - [select for diffs], Tue Feb 10 21:56:09 2015 UTC (9 years, 4 months ago) by miod
Branch: MAIN
CVS Tags: OPENBSD_5_7_BASE, OPENBSD_5_7
Changes since 1.42: +11 -2 lines
Diff to previous 1.42 (colored)

First step towards making uiomove() take a size_t size argument:
- rename uiomove() to uiomovei() and update all its users.
- introduce uiomove(), which is similar to uiomovei() but with a size_t.
- rewrite uiomovei() as an uiomove() wrapper.
ok kettenis@

Revision 1.42 / (download) - annotate - [select for diffs], Wed Dec 10 15:29:53 2014 UTC (9 years, 6 months ago) by mikeb
Branch: MAIN
Changes since 1.41: +2 -4 lines
Diff to previous 1.41 (colored)

retire shutdown hooks; ok deraadt, krw

Revision 1.41 / (download) - annotate - [select for diffs], Sat Nov 1 23:58:28 2014 UTC (9 years, 7 months ago) by tedu
Branch: MAIN
Changes since 1.40: +3 -3 lines
Diff to previous 1.40 (colored)

add a few sizes to free

Revision 1.40 / (download) - annotate - [select for diffs], Sun Jul 13 15:48:41 2014 UTC (9 years, 11 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_5_6_BASE, OPENBSD_5_6
Changes since 1.39: +2 -2 lines
Diff to previous 1.39 (colored)

trim some casts

Revision 1.39 / (download) - annotate - [select for diffs], Sun Jul 13 15:29:04 2014 UTC (9 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.38: +2 -2 lines
Diff to previous 1.38 (colored)

use mallocarray where arguments are multipled. ok deraadt

Revision 1.38 / (download) - annotate - [select for diffs], Sat Jul 12 18:43:32 2014 UTC (9 years, 11 months ago) by tedu
Branch: MAIN
Changes since 1.37: +3 -3 lines
Diff to previous 1.37 (colored)

add a size argument to free. will be used soon, but for now default to 0.
after discussions with beck deraadt kettenis.

Revision 1.37 / (download) - annotate - [select for diffs], Sat Oct 19 09:24:57 2013 UTC (10 years, 7 months ago) by reyk
Branch: MAIN
CVS Tags: OPENBSD_5_5_BASE, OPENBSD_5_5
Changes since 1.36: +3 -3 lines
Diff to previous 1.36 (colored)

When hooks are called, allow them to disestablish themselves by using
the safe version to traverse the TAILQ list.

ok deraadt@

Revision 1.36 / (download) - annotate - [select for diffs], Sat Sep 14 02:28:01 2013 UTC (10 years, 8 months ago) by guenther
Branch: MAIN
Changes since 1.35: +4 -6 lines
Diff to previous 1.35 (colored)

Correct the handling of I/O of >=2^32 bytes and the ktracing there of
by using size_t/ssize_t instead of int/u_int to handle I/O lengths in
uiomove(), vn_fsizechk(), and ktrgenio().  Eliminate the always-zero
'error' argument to ktrgenio() at the same time.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Aug 13 05:52:23 2013 UTC (10 years, 10 months ago) by guenther
Branch: MAIN
Changes since 1.34: +5 -3 lines
Diff to previous 1.34 (colored)

Switch time_t, ino_t, clock_t, and struct kevent's ident and data
members to 64bit types.  Assign new syscall numbers for (almost
all) the syscalls that involve the affected types, including anything
with time_t, timeval, itimerval, timespec, rusage, dirent, stat,
or kevent arguments.  Add a d_off member to struct dirent and replace
getdirentries() with getdents(), thus immensely simplifying and
accelerating telldir/seekdir.  Build perl with -DBIG_TIME.

Bump the major on every single base library: the compat bits included
here are only good enough to make the transition; the T32 compat
option will be burned as soon as we've reached the new world are
are happy with the snapshots for all architectures.

DANGER: ABI incompatibility.  Updating to this kernel requires extra
work or you won't be able to login: install a snapshot instead.

Much assistance in fixing userland issues from deraadt@ and tedu@
and build assistance from todd@ and otto@

Revision 1.34 / (download) - annotate - [select for diffs], Tue Sep 7 16:21:47 2010 UTC (13 years, 9 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_5_4_BASE, OPENBSD_5_4, OPENBSD_5_3_BASE, OPENBSD_5_3, OPENBSD_5_2_BASE, OPENBSD_5_2, OPENBSD_5_1_BASE, OPENBSD_5_1, OPENBSD_5_0_BASE, OPENBSD_5_0, OPENBSD_4_9_BASE, OPENBSD_4_9
Changes since 1.33: +1 -71 lines
Diff to previous 1.33 (colored)

remove the powerhook code.  All architectures now use the ca_activate tree
traversal code to suspend/resume
ok oga kettenis blambert

Revision 1.33 / (download) - annotate - [select for diffs], Mon Sep 6 19:20:24 2010 UTC (13 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.32: +2 -2 lines
Diff to previous 1.32 (colored)

All PWR_{SUSPEND,RESUME} can now be replaced by DVACT_{SUSPEND,RESUME}

Revision 1.32 / (download) - annotate - [select for diffs], Thu Jun 12 16:15:49 2008 UTC (16 years ago) by marco
Branch: MAIN
CVS Tags: OPENBSD_4_8_BASE, OPENBSD_4_8, OPENBSD_4_7_BASE, OPENBSD_4_7, OPENBSD_4_6_BASE, OPENBSD_4_6, OPENBSD_4_5_BASE, OPENBSD_4_5, OPENBSD_4_4_BASE, OPENBSD_4_4
Changes since 1.31: +2 -2 lines
Diff to previous 1.31 (colored)

Remove silly panic when disestablish cookie doesnt exist

ok art

Revision 1.31 / (download) - annotate - [select for diffs], Wed May 16 17:27:30 2007 UTC (17 years ago) by art
Branch: MAIN
CVS Tags: OPENBSD_4_3_BASE, OPENBSD_4_3, OPENBSD_4_2_BASE, OPENBSD_4_2
Changes since 1.30: +1 -5 lines
Diff to previous 1.30 (colored)

The world of __HAVEs and __HAVE_NOTs is reducing. All architectures
have cpu_info now, so kill the option.

eyeballed by jsg@ and grange@

Revision 1.30 / (download) - annotate - [select for diffs], Mon Nov 28 00:14:29 2005 UTC (18 years, 6 months ago) by jsg
Branch: MAIN
CVS Tags: OPENBSD_4_1_BASE, OPENBSD_4_1, OPENBSD_4_0_BASE, OPENBSD_4_0, OPENBSD_3_9_BASE, OPENBSD_3_9
Changes since 1.29: +12 -28 lines
Diff to previous 1.29 (colored)

ansi/deregister.
'go for it' deraadt@

Revision 1.29 / (download) - annotate - [select for diffs], Sun Nov 28 02:11:33 2004 UTC (19 years, 6 months ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_3_8_BASE, OPENBSD_3_8, OPENBSD_3_7_BASE, OPENBSD_3_7
Changes since 1.28: +3 -1 lines
Diff to previous 1.28 (colored)

mountroothooks are called after the root filesystem is mounted.

Revision 1.28 / (download) - annotate - [select for diffs], Sun Jun 13 21:49:26 2004 UTC (20 years ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_3_6_BASE, OPENBSD_3_6
Changes since 1.27: +2 -1 lines
Diff to previous 1.27 (colored)

debranch SMP, have fun

Revision 1.10.2.11 / (download) - annotate - [select for diffs], Thu Jun 10 11:40:33 2004 UTC (20 years ago) by niklas
Branch: SMP
Changes since 1.10.2.10: +2 -2 lines
Diff to previous 1.10.2.10 (colored) to branchpoint 1.10 (colored) next main 1.11 (colored)

sync with head, make i386 __HAVE_CPUINFO

Revision 1.27 / (download) - annotate - [select for diffs], Wed Jun 9 20:18:28 2004 UTC (20 years ago) by art
Branch: MAIN
CVS Tags: SMP_SYNC_B, SMP_SYNC_A
Changes since 1.26: +6 -1 lines
Diff to previous 1.26 (colored)

Merge in a piece of the SMP branch into HEAD.

Introduce the cpu_info structure, p_cpu field in struct proc and global
scheduling context and various changed code to deal with this. At the
moment no architecture uses this stuff yet, but it will allow us slow and
controlled migration to the new APIs.

All new code is ifdef:ed out.

ok deraadt@ niklas@

Revision 1.10.2.10 / (download) - annotate - [select for diffs], Tue Jun 8 20:15:48 2004 UTC (20 years ago) by drahn
Branch: SMP
Changes since 1.10.2.9: +2 -1 lines
Diff to previous 1.10.2.9 (colored) to branchpoint 1.10 (colored)

Include sched.h in kern_ktrace and kern_subr since they use those
defines in the MULTIPROCESSOR cases.

Revision 1.10.2.9 / (download) - annotate - [select for diffs], Sat Jun 5 17:19:55 2004 UTC (20 years ago) by niklas
Branch: SMP
Changes since 1.10.2.8: +6 -1 lines
Diff to previous 1.10.2.8 (colored) to branchpoint 1.10 (colored)

Make a few scheduling globals per-cpu, mostly NetBSD code

Revision 1.10.2.8 / (download) - annotate - [select for diffs], Thu Feb 19 10:56:37 2004 UTC (20 years, 3 months ago) by niklas
Branch: SMP
Changes since 1.10.2.7: +6 -8 lines
Diff to previous 1.10.2.7 (colored) to branchpoint 1.10 (colored)

Merge of current from two weeks agointo the SMP branch

Revision 1.26 / (download) - annotate - [select for diffs], Fri Oct 31 11:10:41 2003 UTC (20 years, 7 months ago) by markus
Branch: MAIN
CVS Tags: OPENBSD_3_5_BASE, OPENBSD_3_5
Changes since 1.25: +4 -6 lines
Diff to previous 1.25 (colored)

allocate at least as much elements as requested in hashinit
fixes pr 3537, based on patch from daniel@nofsk.nofsk.au.eu.org
ok millert@, deraadt@, tedu@

Revision 1.25 / (download) - annotate - [select for diffs], Mon Jul 21 22:44:50 2003 UTC (20 years, 10 months ago) by tedu
Branch: MAIN
CVS Tags: OPENBSD_3_4_BASE, OPENBSD_3_4
Changes since 1.24: +3 -3 lines
Diff to previous 1.24 (colored)

remove caddr_t casts.  it's just silly to cast something when the function
takes a void *.  convert uiomove to take a void * as well.  ok deraadt@

Revision 1.10.2.7 / (download) - annotate - [select for diffs], Sat Jun 7 11:03:40 2003 UTC (21 years ago) by ho
Branch: SMP
Changes since 1.10.2.6: +2 -6 lines
Diff to previous 1.10.2.6 (colored) to branchpoint 1.10 (colored)

Sync SMP branch to -current

Revision 1.24 / (download) - annotate - [select for diffs], Mon Jun 2 23:28:06 2003 UTC (21 years ago) by millert
Branch: MAIN
Changes since 1.23: +2 -6 lines
Diff to previous 1.23 (colored)

Remove the advertising clause in the UCB license which Berkeley
rescinded 22 July 1999.  Proofed by myself and Theo.

Revision 1.20.4.3 / (download) - annotate - [select for diffs], Mon May 19 22:31:10 2003 UTC (21 years ago) by tedu
Branch: UBC
Changes since 1.20.4.2: +6 -2 lines
Diff to previous 1.20.4.2 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

sync

Revision 1.10.2.6 / (download) - annotate - [select for diffs], Fri Mar 28 00:41:26 2003 UTC (21 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.10.2.5: +22 -9 lines
Diff to previous 1.10.2.5 (colored) to branchpoint 1.10 (colored)

Sync the SMP branch with 3.3

Revision 1.23 / (download) - annotate - [select for diffs], Thu Jan 9 22:27:12 2003 UTC (21 years, 5 months ago) by miod
Branch: MAIN
CVS Tags: UBC_SYNC_A, OPENBSD_3_3_BASE, OPENBSD_3_3
Changes since 1.22: +6 -2 lines
Diff to previous 1.22 (colored)

Remove fetch(9) and store(9) functions from the kernel, and replace the few
remaining instances of them with appropriate copy(9) usage.

ok art@, tested on all arches unless my memory is non-ECC

Revision 1.20.4.2 / (download) - annotate - [select for diffs], Tue Oct 29 00:36:44 2002 UTC (21 years, 7 months ago) by art
Branch: UBC
Changes since 1.20.4.1: +18 -9 lines
Diff to previous 1.20.4.1 (colored) to branchpoint 1.20 (colored)

sync to -current

Revision 1.22 / (download) - annotate - [select for diffs], Fri Jul 12 13:31:20 2002 UTC (21 years, 11 months ago) by art
Branch: MAIN
CVS Tags: UBC_SYNC_B, OPENBSD_3_2_BASE, OPENBSD_3_2
Changes since 1.21: +18 -9 lines
Diff to previous 1.21 (colored)

- Add a flags argument to dohooks.
  The flag can be either HOOK_REMOVE or HOOK_REMOVE|HOOK_FREE.
   o HOOK_REMOVE removes the hook from the list before executing it.
   o HOOK_FREE frees the hook after that.

- Let dostartuphooks use HOOK_REMOVE|HOOK_FREE so we can reclaim the memory.

- Let doshutdownhooks use HOOK_REMOVE so that when some shutdown hook
  panics (they do that all the #@$%! time these days) we don't loop
  for ever. Don't HOOK_FREE, it doesn't matter and I don't want to add
  another possible panic condition for shutdown hooks.

- Actually free the pointer we're throwing away in hook_disestablish (I wonder
  how much memory this has leaked over the years).

Revision 1.20.4.1 / (download) - annotate - [select for diffs], Tue Jun 11 03:29:40 2002 UTC (22 years ago) by art
Branch: UBC
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

Sync UBC branch to -current

Revision 1.10.2.5 / (download) - annotate - [select for diffs], Thu Mar 28 11:43:04 2002 UTC (22 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.10.2.4: +4 -4 lines
Diff to previous 1.10.2.4 (colored) to branchpoint 1.10 (colored)

Merge in -current from about a week ago

Revision 1.21 / (download) - annotate - [select for diffs], Thu Mar 14 01:27:04 2002 UTC (22 years, 3 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_3_1_BASE, OPENBSD_3_1
Changes since 1.20: +4 -4 lines
Diff to previous 1.20 (colored)

First round of __P removal in sys

Revision 1.10.2.4 / (download) - annotate - [select for diffs], Wed Oct 31 03:26:29 2001 UTC (22 years, 7 months ago) by nate
Branch: SMP
Changes since 1.10.2.3: +38 -39 lines
Diff to previous 1.10.2.3 (colored) to branchpoint 1.10 (colored)

Sync the SMP branch to something just after 3.0

Revision 1.20 / (download) - annotate - [select for diffs], Fri Jul 27 09:55:07 2001 UTC (22 years, 10 months ago) by niklas
Branch: MAIN
CVS Tags: UBC_BASE, OPENBSD_3_0_BASE, OPENBSD_3_0
Branch point for: UBC
Changes since 1.19: +38 -39 lines
Diff to previous 1.19 (colored)

Startup hooks.  Can be used for providing root/swap devices from device
systems which want configuration to finish late, like I2O.  Implemented via
a general hooks mechanism which the shutdown hooks have been converted to
use as well.  It even has manpages!

Revision 1.10.2.3 / (download) - annotate - [select for diffs], Wed Jul 4 10:48:26 2001 UTC (22 years, 11 months ago) by niklas
Branch: SMP
Changes since 1.10.2.2: +5 -11 lines
Diff to previous 1.10.2.2 (colored) to branchpoint 1.10 (colored)

Merge in -current from two days ago in the SMP branch.
As usual with merges, they do not indicate progress, so do not hold
your breath for working SMP, and do not mail me and ask about the
state of it.  It has not changed.  There is work ongoing, but very, very
slowly.  The commit is done in parts as to not lock up the tree in too
big chunks at a time.

Revision 1.19 / (download) - annotate - [select for diffs], Wed Jun 27 04:49:45 2001 UTC (22 years, 11 months ago) by art
Branch: MAIN
Changes since 1.18: +1 -9 lines
Diff to previous 1.18 (colored)

remove old vm

Revision 1.18 / (download) - annotate - [select for diffs], Tue Jun 26 06:27:40 2001 UTC (22 years, 11 months ago) by aaron
Branch: MAIN
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored)

Appease gcc by not using void pointers in arithmetic operations; art@ ok

Revision 1.17 / (download) - annotate - [select for diffs], Sat Jun 23 05:45:13 2001 UTC (22 years, 11 months ago) by art
Branch: MAIN
Changes since 1.16: +3 -1 lines
Diff to previous 1.16 (colored)

Since malloc in hashinit can get M_NOWAIT flags, we should
check the return value.

Revision 1.10.2.2 / (download) - annotate - [select for diffs], Mon May 14 22:32:41 2001 UTC (23 years, 1 month ago) by niklas
Branch: SMP
Changes since 1.10.2.1: +21 -31 lines
Diff to previous 1.10.2.1 (colored) to branchpoint 1.10 (colored)

merge in approximately 2.9 into SMP branch

Revision 1.16 / (download) - annotate - [select for diffs], Thu Sep 7 19:21:30 2000 UTC (23 years, 9 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_9_BASE, OPENBSD_2_9, OPENBSD_2_8_BASE, OPENBSD_2_8
Changes since 1.15: +9 -3 lines
Diff to previous 1.15 (colored)

On resume run the powerhook in installation order.
(the powerhooks were always run in reverse order).

Revision 1.15 / (download) - annotate - [select for diffs], Thu Sep 7 19:07:00 2000 UTC (23 years, 9 months ago) by art
Branch: MAIN
Changes since 1.14: +9 -10 lines
Diff to previous 1.14 (colored)

Put powerhooks on a CIRCLEQ instead of LIST.
Use FOREACH macros instead of walking the list manually.

Revision 1.14 / (download) - annotate - [select for diffs], Thu Sep 7 18:39:13 2000 UTC (23 years, 9 months ago) by art
Branch: MAIN
Changes since 1.13: +2 -2 lines
Diff to previous 1.13 (colored)

Run powerhooks at splhigh.

Revision 1.13 / (download) - annotate - [select for diffs], Tue Sep 5 21:47:14 2000 UTC (23 years, 9 months ago) by aaron
Branch: MAIN
Changes since 1.12: +4 -1 lines
Diff to previous 1.12 (colored)

Wrap power hooks in splimp(), fixes WaveLAN suspend problem; thanks art@

Revision 1.12 / (download) - annotate - [select for diffs], Wed Apr 19 09:58:20 2000 UTC (24 years, 1 month ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_7_BASE, OPENBSD_2_7
Changes since 1.11: +3 -21 lines
Diff to previous 1.11 (colored)

Remove the roundrobin_attempts hack and replace it with per-process scheduling
flags (much nicer for future smp work).
Add two generic functions yield() and preempt(). Use preepmt() in uio when
we are told to yield.
Based on my idea, code written by Jason Thorpe from NetBSD.

Revision 1.10.2.1 / (download) - annotate - [select for diffs], Fri Mar 24 09:09:24 2000 UTC (24 years, 2 months ago) by niklas
Branch: SMP
Changes since 1.10: +28 -3 lines
Diff to previous 1.10 (colored)

Sync with -current

Revision 1.11 / (download) - annotate - [select for diffs], Fri Mar 3 16:58:49 2000 UTC (24 years, 3 months ago) by art
Branch: MAIN
Changes since 1.10: +28 -3 lines
Diff to previous 1.10 (colored)

If we attempted reschedule two times without suceeding, uiomove will yield,
giving other processes a chance to run.

A process feeding a huge buffer to {read,write}{,v} on a file that doesn't
need to wait for I/O, could have hogged a lot of cpu in the kernel, blocking
all userland activity.

Based on a similiar fix in FreeBSD.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Nov 7 17:39:14 1999 UTC (24 years, 7 months ago) by provos
Branch: MAIN
CVS Tags: kame_19991208, SMP_BASE
Branch point for: SMP
Changes since 1.9: +67 -1 lines
Diff to previous 1.9 (colored)

add APM powerhooks.
from NetBSD, Sat Jun 26 08:25:25 1999 UTC by augustss:

Add powerhooks, i.e., the ability to register a function that will be
called when the machine does a suspend or resume.
XXX Will go away when Jason's kevents come to life.

Revision 1.9 / (download) - annotate - [select for diffs], Wed Apr 28 09:28:15 1999 UTC (25 years, 1 month ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_6_BASE, OPENBSD_2_6
Changes since 1.8: +2 -10 lines
Diff to previous 1.8 (colored)

zap the newhashinit hack.
Add an extra flag to hashinit telling if it should wait in malloc.
update all calls to hashinit.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Feb 26 04:56:02 1999 UTC (25 years, 3 months ago) by art
Branch: MAIN
CVS Tags: OPENBSD_2_5_BASE, OPENBSD_2_5
Changes since 1.7: +10 -1 lines
Diff to previous 1.7 (colored)

uvm uses kcopy when uiomoving from sysspace

Revision 1.7 / (download) - annotate - [select for diffs], Fri Feb 26 03:16:47 1999 UTC (25 years, 3 months ago) by millert
Branch: MAIN
Changes since 1.6: +10 -2 lines
Diff to previous 1.6 (colored)

Add newhashinit(), which is identical to hashinit() except it takes a flags
arg for passing to malloc() (hashinit always uses M_WAITOK which is not
always what you want).  Everything that uses hashinit should really
get converted to newhashinit and then newhashinit can be renamed.

Revision 1.6 / (download) - annotate - [select for diffs], Tue Jul 28 00:13:08 1998 UTC (25 years, 10 months ago) by millert
Branch: MAIN
CVS Tags: OPENBSD_2_4_BASE, OPENBSD_2_4
Changes since 1.5: +11 -3 lines
Diff to previous 1.5 (colored)

Return EINVAL when msg_iovlen or iovcnt <= 0; Make uio_resid unsigned (size_t) and don't return EINVAL if it is < 0 in sys_{read,write}.  Remove check for uio_resid < 0 uiomove() now that uio_resid is unsigned and brack remaining panics with #ifdef DIAGNOSTIC.  vn_rdwr() must now take a size_t * as its 9th argument so change that and clean up uses of vn_rdwr().  Fixes 549 + more

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 11 05:41:59 1998 UTC (26 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.4: +2 -2 lines
Diff to previous 1.4 (colored)

compile if iov_base is void *

Revision 1.4 / (download) - annotate - [select for diffs], Mon Feb 24 14:19:56 1997 UTC (27 years, 3 months ago) by niklas
Branch: MAIN
CVS Tags: OPENBSD_2_3_BASE, OPENBSD_2_3, OPENBSD_2_2_BASE, OPENBSD_2_2, OPENBSD_2_1_BASE, OPENBSD_2_1
Changes since 1.3: +1 -0 lines
Diff to previous 1.3 (colored)

OpenBSD tags

Revision 1.3 / (download) - annotate - [select for diffs], Sun Apr 21 22:27:05 1996 UTC (28 years, 1 month ago) by deraadt
Branch: MAIN
CVS Tags: OPENBSD_2_0_BASE, OPENBSD_2_0
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

partial sync with netbsd 960418, more to come

Revision 1.2 / (download) - annotate - [select for diffs], Wed Apr 17 05:09:13 1996 UTC (28 years, 2 months ago) by mickey
Branch: MAIN
Changes since 1.1: +0 -43 lines
Diff to previous 1.1 (colored)

Removed vax ifdefed function from kern_subr.c (from NetBSD).
Do sync in the order of umount (vfs_syscals.c), as it was pointed
by someone in NetBSD's lists.

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Wed Oct 18 08:52:44 1995 UTC (28 years, 8 months ago) by deraadt
CVS Tags: netbsd_1_1
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)

initial import of NetBSD tree

Revision 1.1 / (download) - annotate - [select for diffs], Wed Oct 18 08:52:44 1995 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.