CVS log for src/sys/sys/sysctl.h
Up to [cvs.NetBSD.org] / src / sys / sys
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.240: download - view: text, markup, annotated - select for diffs
Tue Mar 11 14:30:28 2025 UTC (6 weeks, 1 day ago) by riastradh
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.239: preferred, colored
Changes since revision 1.239: +8 -1
lines
Assign static MIB numbers for kern.entropy.epoch.
This sidesteps any need for dynamically sized memory in userland to
resolve sysctl names to read it out, or for a new syscall interface
to sysctl resolution by name.
It would really be better to expose this through a page shared with
userland, so querying it doesn't cost a syscall, but this will serve
for now.
PR lib/59148: arc4random calls malloc so it can't be used in an ELF
constructor
Revision 1.239: download - view: text, markup, annotated - select for diffs
Sat Jan 20 13:15:46 2024 UTC (15 months ago) by christos
Branches: MAIN
CVS tags: perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs
Diff to: previous 1.238: preferred, colored
Changes since revision 1.238: +1 -3
lines
Make __learn_tree always visible. It starts with __ anyway.
Revision 1.238: download - view: text, markup, annotated - select for diffs
Fri Jan 19 18:39:59 2024 UTC (15 months ago) by christos
Branches: MAIN
Diff to: previous 1.237: preferred, colored
Changes since revision 1.237: +4 -1
lines
Add missing decls.
Revision 1.237: download - view: text, markup, annotated - select for diffs
Fri Apr 7 03:01:21 2023 UTC (2 years ago) by simonb
Branches: MAIN
CVS tags: thorpej-ifq-base,
thorpej-ifq,
thorpej-altq-separation-base,
thorpej-altq-separation
Diff to: previous 1.236: preferred, colored
Changes since revision 1.236: +79 -79
lines
#define<tab>
Revision 1.236: download - view: text, markup, annotated - select for diffs
Thu Sep 16 22:47:29 2021 UTC (3 years, 7 months ago) by christos
Branches: MAIN
CVS tags: netbsd-10-base,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
bouyer-sunxi-drm-base,
bouyer-sunxi-drm
Diff to: previous 1.235: preferred, colored
Changes since revision 1.235: +2 -2
lines
fix pasto
Revision 1.235: download - view: text, markup, annotated - select for diffs
Tue Sep 14 17:10:46 2021 UTC (3 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.234: preferred, colored
Changes since revision 1.234: +29 -1
lines
Provide some snprintb(3) formats.
Revision 1.233.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 1 22:42:44 2021 UTC (3 years, 8 months ago) by thorpej
Branches: thorpej-i2c-spi-conf
Diff to: previous 1.233: preferred, colored; next MAIN 1.234: preferred, colored
Changes since revision 1.233: +3 -1
lines
Sync with HEAD.
Revision 1.234: download - view: text, markup, annotated - select for diffs
Sat Jul 24 13:28:14 2021 UTC (3 years, 9 months ago) by simonb
Branches: MAIN
CVS tags: thorpej-i2c-spi-conf2-base,
thorpej-i2c-spi-conf2,
thorpej-i2c-spi-conf-base,
thorpej-futex2-base,
thorpej-futex2,
thorpej-cfargs2-base,
thorpej-cfargs2
Diff to: previous 1.233: preferred, colored
Changes since revision 1.233: +3 -1
lines
Expose KERN_BUFSLOP in <sys/sysctl.h>.
Revision 1.231.4.2: download - view: text, markup, annotated - select for diffs
Sat Apr 17 17:26:22 2021 UTC (4 years ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.231.4.1: preferred, colored; next MAIN 1.232: preferred, colored
Changes since revision 1.231.4.1: +2 -2
lines
Sync with HEAD.
Revision 1.233: download - view: text, markup, annotated - select for diffs
Tue Apr 13 01:10:24 2021 UTC (4 years ago) by mrg
Branches: MAIN
CVS tags: thorpej-cfargs-base,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: thorpej-i2c-spi-conf
Diff to: previous 1.232: preferred, colored
Changes since revision 1.232: +2 -2
lines
in struct evcnt_sysctl, change ev_strings[0] to ev_strings[].
GCC 10 does not like accesses to zero length arrays.
Revision 1.231.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 22:29:03 2021 UTC (4 years ago) by thorpej
Branches: thorpej-futex
Diff to: previous 1.231: preferred, colored; next MAIN 1.232: preferred, colored
Changes since revision 1.231: +23 -1
lines
Sync with HEAD.
Revision 1.231.4.1: download - view: text, markup, annotated - select for diffs
Sat Apr 3 21:45:01 2021 UTC (4 years ago) by thorpej
Branches: thorpej-cfargs
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +23 -1
lines
Sync with HEAD.
Revision 1.232: download - view: text, markup, annotated - select for diffs
Thu Apr 1 06:22:10 2021 UTC (4 years ago) by simonb
Branches: MAIN
CVS tags: thorpej-futex-base
Diff to: previous 1.231: preferred, colored
Changes since revision 1.231: +23 -1
lines
Add support for kernel hash statistics generation for vmstat -h/-H. As
well as not needing any kmem grovelling, also much faster as it doesn't
need a kmem read for hash bucket and for each item in the hash bucket
chains.
Revision 1.231: download - view: text, markup, annotated - select for diffs
Sat Oct 17 09:06:15 2020 UTC (4 years, 6 months ago) by mlelstv
Branches: MAIN
Branch point for: thorpej-futex,
thorpej-cfargs
Diff to: previous 1.230: preferred, colored
Changes since revision 1.230: +2 -1
lines
Setting a socket buffer size stops autoscaling. Add a sysctl to
prevent this behaviour. The default is not changed.
Revision 1.226.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:09:57 2019 UTC (5 years, 10 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.226: preferred, colored; next MAIN 1.227: preferred, colored
Changes since revision 1.226: +4 -200
lines
Sync with HEAD
Revision 1.230: download - view: text, markup, annotated - select for diffs
Fri May 31 23:01:39 2019 UTC (5 years, 10 months ago) by kamil
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
is-mlppp-base,
is-mlppp,
bouyer-xenpvh-base2,
bouyer-xenpvh-base1,
bouyer-xenpvh-base,
bouyer-xenpvh,
ad-namecache-base3,
ad-namecache-base2,
ad-namecache-base1,
ad-namecache-base,
ad-namecache
Diff to: previous 1.229: preferred, colored
Changes since revision 1.229: +2 -1
lines
Implement KERN_PROC_CWD in sysctl(3)
Retrieve specified process current working directory.
Fixes PR kern/50620 by Thomas Klausner.
Revision 1.225.2.3: download - view: text, markup, annotated - select for diffs
Wed Dec 26 14:02:07 2018 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.225.2.2: preferred, colored; branchpoint 1.225: preferred, colored; next MAIN 1.226: preferred, colored
Changes since revision 1.225.2.2: +3 -3
lines
Sync with HEAD, resolve a few conflicts
Revision 1.229: download - view: text, markup, annotated - select for diffs
Wed Dec 5 18:16:51 2018 UTC (6 years, 4 months ago) by christos
Branches: MAIN
CVS tags: pgoyette-compat-20190127,
pgoyette-compat-20190118,
pgoyette-compat-1226,
isaki-audio2-base,
isaki-audio2
Diff to: previous 1.228: preferred, colored
Changes since revision 1.228: +3 -3
lines
As discussed in tech-kern:
- make sysctl kern.expose_address tri-state:
0: no access
1: access to processes with open /dev/kmem
2: access to everyone
defaults:
0: KASLR kernels
1: non-KASLR kernels
- improve efficiency by calling get_expose_address() per sysctl, not per
process.
- don't expose addresses for linux procfs
- welcome to 8.99.27, changes to fill_*proc ABI
Revision 1.225.2.2: download - view: text, markup, annotated - select for diffs
Thu Sep 6 06:56:47 2018 UTC (6 years, 7 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.225.2.1: preferred, colored; branchpoint 1.225: preferred, colored
Changes since revision 1.225.2.1: +1 -198
lines
Sync with HEAD
Resolve a couple of conflicts (result of the uimin/uimax changes)
Revision 1.228: download - view: text, markup, annotated - select for diffs
Wed Aug 22 01:05:24 2018 UTC (6 years, 8 months ago) by msaitoh
Branches: MAIN
CVS tags: pgoyette-compat-1126,
pgoyette-compat-1020,
pgoyette-compat-0930,
pgoyette-compat-0906
Diff to: previous 1.227: preferred, colored
Changes since revision 1.227: +1 -196
lines
- Cleanup for dynamic sysctl:
- Remove unused *_NAMES macros for sysctl.
- Remove unused *_MAXID for sysctls.
- Move CTL_MACHDEP sysctl definitions for m68k into m68k/include/cpu.h and
use them on all m68k machines.
Revision 1.227: download - view: text, markup, annotated - select for diffs
Sat Aug 11 11:33:10 2018 UTC (6 years, 8 months ago) by kamil
Branches: MAIN
Diff to: previous 1.226: preferred, colored
Changes since revision 1.226: +1 -3
lines
Remove unused symbols from <sys/sysctl.h>
Drop: P_PAXMPROTECT and P_PAXNOMPROTECT.
These values are unused and the proper way to check PaX MPROTECT is to use
CTL_PROC.pid().PROC_PID_PAXFLAGS and check CTL_PROC_PAXFLAGS_MPROTECT.
Proposed on current-users@.
OK from <christos>
Revision 1.225.2.1: download - view: text, markup, annotated - select for diffs
Mon May 21 04:36:17 2018 UTC (6 years, 11 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +4 -3
lines
Sync with HEAD
Revision 1.226: download - view: text, markup, annotated - select for diffs
Wed May 16 20:21:39 2018 UTC (6 years, 11 months ago) by joerg
Branches: MAIN
CVS tags: phil-wifi-base,
pgoyette-compat-0728,
pgoyette-compat-0625,
pgoyette-compat-0521
Branch point for: phil-wifi
Diff to: previous 1.225: preferred, colored
Changes since revision 1.225: +4 -3
lines
Avoid complicated arithmetic involving NULL.
Revision 1.223.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 12 13:42:49 2018 UTC (7 years ago) by martin
Branches: netbsd-8
CVS tags: netbsd-8-3-RELEASE,
netbsd-8-2-RELEASE,
netbsd-8-1-RELEASE,
netbsd-8-1-RC1,
netbsd-8-0-RELEASE,
netbsd-8-0-RC2,
netbsd-8-0-RC1
Diff to: previous 1.223: preferred, colored; next MAIN 1.224: preferred, colored
Changes since revision 1.223: +1 -2
lines
Pull up following revision(s) (requested by kamil in ticket #713):
sys/modules/procfs/Makefile: revision 1.4
sys/miscfs/procfs/procfs_vfsops.c: revision 1.98
bin/ps/ps.1: revision 1.108
sys/compat/linux/arch/i386/linux_ptrace.c: revision 1.32
sys/miscfs/procfs/procfs_vnops.c: revision 1.198
sys/kern/sys_ptrace_common.c: revision 1.23
sys/kern/sys_ptrace_common.c: revision 1.24
sbin/mount_procfs/mount_procfs.8: revision 1.36
sys/kern/sys_ptrace_common.c: revision 1.25
sys/kern/sys_ptrace.c: revision 1.5
sys/compat/linux/arch/powerpc/linux_ptrace.c: revision 1.30
sys/sys/proc.h: revision 1.342
sys/kern/sys_ptrace_common.c: revision 1.26
sys/miscfs/procfs/procfs_ctl.c: file removal
sys/kern/sys_ptrace_common.c: revision 1.27
sys/miscfs/procfs/procfs_subr.c: revision 1.109
sys/kern/sys_ptrace_common.c: revision 1.28
sys/secmodel/extensions/secmodel_extensions.c: revision 1.8
sys/kern/sys_ptrace_common.c: revision 1.29
sys/sys/ptrace.h: revision 1.62
sys/compat/netbsd32/netbsd32_signal.c: revision 1.45
share/man/man9/kauth.9: revision 1.109
sys/miscfs/procfs/files.procfs: revision 1.12
sys/compat/netbsd32/netbsd32.h: revision 1.115
sys/miscfs/procfs/procfs.h: revision 1.72
sys/compat/netbsd32/netbsd32_ptrace.c: revision 1.5
sys/kern/kern_sig.c: revision 1.337
sys/sys/kauth.h: revision 1.75
sys/sys/sysctl.h: revision 1.224
sys/kern/sys_ptrace_common.c: revision 1.30
sys/kern/sys_ptrace_common.c: revision 1.31
sys/kern/sys_ptrace_common.c: revision 1.32
sys/kern/sys_ptrace_common.c: revision 1.33
sys/compat/linux/arch/arm/linux_ptrace.c: revision 1.20
sys/kern/sys_ptrace_common.c: revision 1.34
sys/kern/sys_ptrace_common.c: revision 1.36
sys/kern/kern_proc.c: revision 1.207
sys/kern/kern_exit.c: revision 1.269
doc/TODO.ptrace: revision 1.29
Make {s,g}et{db,fp,}regs work again for PK_32 processes
XXX: pullup-8
add disgusting magic to handle compat_netbsd32 as a module.
use process_*reg32 instead of struct *reg32.
Remove the filesystem tracing feature
This is a legacy interface from 4.4BSD, and it was
introduced to overcome shortcomings of ptrace(2) at that time, which are
no longer relevant (performance). Today /proc/#/ctl offers a narrow
subset of ptrace(2) commands and is not applicable for modern
applications use beyond simplistic tracing scenarios.
This removal will simplify kernel internals. Users will still be able to
use all the other /proc files.
This change won't affect other procfs files neither Linux compat
features within mount_procfs(8). /proc/#/ctl isn't available on Linux.
Remove:
- /proc/#/ctl from mount_procfs(8)
- P_FSTRACE note from the documentation of ps(1)
- /proc/#/ctl and filesystem tracing documentation from mount_procfs(8)
- KAUTH_REQ_PROCESS_PROCFS_CTL documentation from kauth(9)
- source code file miscfs/procfs/procfs_ctl.c
- PFSctl and procfs_doctl() from sys/miscfs/procfs/procfs.h
- KAUTH_REQ_PROCESS_PROCFS_CTL from sys/sys/kauth.h
- PSL_FSTRACE (0x00010000) from sys/sys/proc.h
- P_FSTRACE (0x00010000) from sys/sys/sysctl.h
Reduce code complexity after removal of this functionality.
Update TODO.ptrace accordingly: remove two entries about /proc tracing.
Do not keep legacy notes as comments in the headers about removed
PSL_FSTRACE / P_FSTRACE, as this interface had little number of users
(close or equal to zero).
Proposed on tech-kern@.
All filesystem tracing utility users are encouraged to switch to ptrace(2).
Sponsored by <The NetBSD Foundation>
untangle the mess:
- factor out common code
- break each ptrace subcall to its own sub-function
.. more to come ...
- reduce ifdef ugliness by moving it up top.
- factor out PT_IO and make PT_{READ,WRITE}_{I,D} use it
- factor out PT_DUMPCORE
- factor out sendsig code
.. more to come ...
handle siginfo requests for ptrace32
ptrace: Partially undo PT_{READ,WRITE}_{I,D} and unbreak these commands
The refactored code did not work and was generating EFAULT.
Sponsored by <The NetBSD Foundation>
Merge the code back; the problem was that since we are reading/writing
to a kernel address for PT_{READ,WRITE}_{I,D} we need the kernel vmspace.
provide separate read and write functions to accomodate register functions
that need a size argument.
don't ignore error from copyout_piod
Use the proper process (the tracee) to get information about lwps and
registers and the tracer for vmspace.
Add new sysctl(3) entry: security.models.extensions.user_set_dbregs
Model this new sysctl(3) entry after "user_set_cpu_affinity" in the same
level of sysctl(3) switches.
Allow to read unconditionally Debug Registers (no change here). This is
convenient as even if a user of a debugger does not use hardware assisted
watchpoints/breakpoints, a debugger can still prompt these values to store
in an internal cache with context of registers. Reading them should have
no security concerns.
Add a paranoid MI switch that prohibits by default setting these registers
by a regular user (non-superuser). Make this switch disabled by default.
There are enough reserved bits out there to allow using them
unconditionally on hardened hosts.
Features shipped with Debug Registers are optional features in debuggers.
There is no reduction in elementary functionality.
Reviewed by <christos>
Sponsored by <The NetBSD Foundation>
Revision 1.201.2.4: download - view: text, markup, annotated - select for diffs
Sun Dec 3 11:39:21 2017 UTC (7 years, 4 months ago) by jdolecek
Branches: tls-maxphys
Diff to: previous 1.201.2.3: preferred, colored; next MAIN 1.202: preferred, colored
Changes since revision 1.201.2.3: +142 -32
lines
update from HEAD
Revision 1.225: download - view: text, markup, annotated - select for diffs
Fri Sep 8 10:53:55 2017 UTC (7 years, 7 months ago) by wiz
Branches: MAIN
CVS tags: tls-maxphys-base-20171202,
pgoyette-compat-base,
pgoyette-compat-0502,
pgoyette-compat-0422,
pgoyette-compat-0415,
pgoyette-compat-0407,
pgoyette-compat-0330,
pgoyette-compat-0322,
pgoyette-compat-0315
Branch point for: pgoyette-compat
Diff to: previous 1.224: preferred, colored
Changes since revision 1.224: +2 -2
lines
Remove duplicate words in comment.
Revision 1.214.2.4: download - view: text, markup, annotated - select for diffs
Mon Aug 28 17:53:16 2017 UTC (7 years, 7 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.214.2.3: preferred, colored; branchpoint 1.214: preferred, colored; next MAIN 1.215: preferred, colored
Changes since revision 1.214.2.3: +17 -4
lines
Sync with HEAD
Revision 1.224: download - view: text, markup, annotated - select for diffs
Mon Aug 28 00:46:07 2017 UTC (7 years, 7 months ago) by kamil
Branches: MAIN
Diff to: previous 1.223: preferred, colored
Changes since revision 1.223: +1 -2
lines
Remove the filesystem tracing feature
This is a legacy interface from 4.4BSD, and it was
introduced to overcome shortcomings of ptrace(2) at that time, which are
no longer relevant (performance). Today /proc/#/ctl offers a narrow
subset of ptrace(2) commands and is not applicable for modern
applications use beyond simplistic tracing scenarios.
This removal will simplify kernel internals. Users will still be able to
use all the other /proc files.
This change won't affect other procfs files neither Linux compat
features within mount_procfs(8). /proc/#/ctl isn't available on Linux.
Remove:
- /proc/#/ctl from mount_procfs(8)
- P_FSTRACE note from the documentation of ps(1)
- /proc/#/ctl and filesystem tracing documentation from mount_procfs(8)
- KAUTH_REQ_PROCESS_PROCFS_CTL documentation from kauth(9)
- source code file miscfs/procfs/procfs_ctl.c
- PFSctl and procfs_doctl() from sys/miscfs/procfs/procfs.h
- KAUTH_REQ_PROCESS_PROCFS_CTL from sys/sys/kauth.h
- PSL_FSTRACE (0x00010000) from sys/sys/proc.h
- P_FSTRACE (0x00010000) from sys/sys/sysctl.h
Reduce code complexity after removal of this functionality.
Update TODO.ptrace accordingly: remove two entries about /proc tracing.
Do not keep legacy notes as comments in the headers about removed
PSL_FSTRACE / P_FSTRACE, as this interface had little number of users
(close or equal to zero).
Proposed on tech-kern@.
All filesystem tracing utility users are encouraged to switch to ptrace(2).
Sponsored by <The NetBSD Foundation>
Revision 1.221.2.1: download - view: text, markup, annotated - select for diffs
Wed Apr 26 02:53:31 2017 UTC (8 years ago) by pgoyette
Branches: pgoyette-localcount
Diff to: previous 1.221: preferred, colored; next MAIN 1.222: preferred, colored
Changes since revision 1.221: +17 -4
lines
Sync with HEAD
Revision 1.221.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 21 16:54:08 2017 UTC (8 years ago) by bouyer
Branches: bouyer-socketcan
Diff to: previous 1.221: preferred, colored; next MAIN 1.222: preferred, colored
Changes since revision 1.221: +17 -4
lines
Sync with HEAD
Revision 1.223: download - view: text, markup, annotated - select for diffs
Sat Mar 25 05:55:36 2017 UTC (8 years, 1 month ago) by pgoyette
Branches: MAIN
CVS tags: prg-localcount2-base3,
prg-localcount2-base2,
prg-localcount2-base1,
prg-localcount2-base,
prg-localcount2,
pgoyette-localcount-20170426,
perseant-stdc-iso10646-base,
perseant-stdc-iso10646,
nick-nhusb-base-20170825,
netbsd-8-base,
matt-nb8-mediatek-base,
matt-nb8-mediatek,
jdolecek-ncq-base,
jdolecek-ncq,
bouyer-socketcan-base1
Branch point for: netbsd-8
Diff to: previous 1.222: preferred, colored
Changes since revision 1.222: +4 -3
lines
Update a comment. No functional change.
Revision 1.222: download - view: text, markup, annotated - select for diffs
Fri Mar 24 21:43:21 2017 UTC (8 years, 1 month ago) by pgoyette
Branches: MAIN
Diff to: previous 1.221: preferred, colored
Changes since revision 1.221: +14 -2
lines
Add new sysctl variable proc.curproc.paxflags so a process can determine
which flags were set for it. Define some values for the variable:
CTL_PROC_PAXFLAGS_{ASLR,MPROTECT,GUARD}
Revision 1.221: download - view: text, markup, annotated - select for diffs
Mon Apr 4 23:31:46 2016 UTC (9 years ago) by christos
Branches: MAIN
CVS tags: pgoyette-localcount-base,
pgoyette-localcount-20170320,
pgoyette-localcount-20170107,
pgoyette-localcount-20161104,
pgoyette-localcount-20160806,
pgoyette-localcount-20160726,
nick-nhusb-base-20170204,
nick-nhusb-base-20161204,
nick-nhusb-base-20161004,
nick-nhusb-base-20160907,
nick-nhusb-base-20160529,
nick-nhusb-base-20160422,
localcount-20160914,
bouyer-socketcan-base
Branch point for: pgoyette-localcount,
bouyer-socketcan
Diff to: previous 1.220: preferred, colored
Changes since revision 1.220: +1 -2
lines
remove sys/wait.h just added, put it in the file that needed it (kvm_proc.c)
Revision 1.220: download - view: text, markup, annotated - select for diffs
Mon Apr 4 23:07:06 2016 UTC (9 years ago) by christos
Branches: MAIN
Diff to: previous 1.219: preferred, colored
Changes since revision 1.219: +2 -1
lines
no need to pass the coredump flag to exit1() since it is set and known
in one place.
Revision 1.214.2.3: download - view: text, markup, annotated - select for diffs
Sat Mar 19 11:30:39 2016 UTC (9 years, 1 month ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.214.2.2: preferred, colored; branchpoint 1.214: preferred, colored
Changes since revision 1.214.2.2: +19 -6
lines
Sync with HEAD
Revision 1.219: download - view: text, markup, annotated - select for diffs
Mon Jan 18 23:27:49 2016 UTC (9 years, 3 months ago) by pooka
Branches: MAIN
CVS tags: nick-nhusb-base-20160319
Diff to: previous 1.218: preferred, colored
Changes since revision 1.218: +3 -3
lines
Include <sys/kernel.h> only if it's needed.
(fix build failure)
Revision 1.218: download - view: text, markup, annotated - select for diffs
Mon Jan 18 16:46:08 2016 UTC (9 years, 3 months ago) by pooka
Branches: MAIN
Diff to: previous 1.217: preferred, colored
Changes since revision 1.217: +19 -6
lines
Fix dlopen()/dlclose()+RUMP_USE_CTOR to not leave dangling pointers around.
Revision 1.214.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 27 12:10:18 2015 UTC (9 years, 3 months ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.214.2.1: preferred, colored; branchpoint 1.214: preferred, colored
Changes since revision 1.214.2.1: +61 -1
lines
Sync with HEAD (as of 26th Dec)
Revision 1.217: download - view: text, markup, annotated - select for diffs
Sat Sep 26 20:28:37 2015 UTC (9 years, 6 months ago) by christos
Branches: MAIN
CVS tags: nick-nhusb-base-20151226
Diff to: previous 1.216: preferred, colored
Changes since revision 1.216: +2 -4
lines
move CTL_VM constants to uvm_param.h, leaving a comment behind.
Revision 1.216: download - view: text, markup, annotated - select for diffs
Thu Sep 24 14:32:15 2015 UTC (9 years, 7 months ago) by christos
Branches: MAIN
Diff to: previous 1.215: preferred, colored
Changes since revision 1.215: +63 -1
lines
Add KERN_PROC_PATHNAME and VM_PROC_MAP used by libproc.
Revision 1.214.2.1: download - view: text, markup, annotated - select for diffs
Mon Apr 6 15:18:32 2015 UTC (10 years ago) by skrll
Branches: nick-nhusb
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +28 -5
lines
Sync with HEAD
Revision 1.215: download - view: text, markup, annotated - select for diffs
Sun Jan 4 22:11:40 2015 UTC (10 years, 3 months ago) by pooka
Branches: MAIN
CVS tags: nick-nhusb-base-20150921,
nick-nhusb-base-20150606,
nick-nhusb-base-20150406
Diff to: previous 1.214: preferred, colored
Changes since revision 1.214: +28 -5
lines
Extend RUMP_USE_CTOR to SYSCTL_SETUP(), similar to what is already
done in MODULE(). The sysctl tree nodes from all components which
were loaded when rump_init() was called now get created -- mimics the
monolithic kernel.
No change to the monolithic kernel.
Revision 1.214: download - view: text, markup, annotated - select for diffs
Fri Sep 5 05:42:50 2014 UTC (10 years, 7 months ago) by matt
Branches: MAIN
CVS tags: nick-nhusb-base
Branch point for: nick-nhusb
Diff to: previous 1.213: preferred, colored
Changes since revision 1.213: +26 -24
lines
Don't nest structure definitions.
Revision 1.201.2.3: download - view: text, markup, annotated - select for diffs
Wed Aug 20 00:04:44 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.201.2.2: preferred, colored
Changes since revision 1.201.2.2: +18 -22
lines
Rebase to HEAD as of a few days ago.
Revision 1.211.2.1: download - view: text, markup, annotated - select for diffs
Sun Aug 10 06:56:55 2014 UTC (10 years, 8 months ago) by tls
Branches: tls-earlyentropy
Diff to: previous 1.211: preferred, colored; next MAIN 1.212: preferred, colored
Changes since revision 1.211: +4 -1
lines
Rebase.
Revision 1.213: download - view: text, markup, annotated - select for diffs
Sat Jul 12 09:57:25 2014 UTC (10 years, 9 months ago) by njoly
Branches: MAIN
CVS tags: tls-maxphys-base,
tls-earlyentropy-base,
netbsd-7-nhusb-base-20170116,
netbsd-7-nhusb-base,
netbsd-7-nhusb,
netbsd-7-base,
netbsd-7-2-RELEASE,
netbsd-7-1-RELEASE,
netbsd-7-1-RC2,
netbsd-7-1-RC1,
netbsd-7-1-2-RELEASE,
netbsd-7-1-1-RELEASE,
netbsd-7-1,
netbsd-7-0-RELEASE,
netbsd-7-0-RC3,
netbsd-7-0-RC2,
netbsd-7-0-RC1,
netbsd-7-0-2-RELEASE,
netbsd-7-0-1-RELEASE,
netbsd-7-0,
netbsd-7
Diff to: previous 1.212: preferred, colored
Changes since revision 1.212: +2 -1
lines
Allow fill_kproc2() to be used by more than sysctl.
Revision 1.212: download - view: text, markup, annotated - select for diffs
Fri Jun 13 15:45:05 2014 UTC (10 years, 10 months ago) by joerg
Branches: MAIN
Diff to: previous 1.211: preferred, colored
Changes since revision 1.211: +3 -1
lines
Add asysctl(3) and asysctlbyname(3) wrappers for the common idiom of
fetching dynamically sized data via sysctl.
Revision 1.197.2.5: download - view: text, markup, annotated - select for diffs
Thu May 22 11:41:18 2014 UTC (10 years, 11 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.197.2.4: preferred, colored; branchpoint 1.197: preferred, colored; next MAIN 1.198: preferred, colored
Changes since revision 1.197.2.4: +15 -20
lines
sync with head.
for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.
this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
Revision 1.207.2.2: download - view: text, markup, annotated - select for diffs
Sun May 18 17:46:21 2014 UTC (10 years, 11 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.207.2.1: preferred, colored; branchpoint 1.207: preferred, colored; next MAIN 1.208: preferred, colored
Changes since revision 1.207.2.1: +8 -15
lines
sync with head
Revision 1.211: download - view: text, markup, annotated - select for diffs
Tue Feb 25 18:30:13 2014 UTC (11 years, 1 month ago) by pooka
Branches: MAIN
CVS tags: yamt-pagecache-base9,
rmind-smpnet-nbase,
rmind-smpnet-base,
riastradh-xf86-video-intel-2-7-1-pre-2-21-15,
riastradh-drm2-base3
Branch point for: tls-earlyentropy
Diff to: previous 1.210: preferred, colored
Changes since revision 1.210: +2 -1
lines
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.
Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
Revision 1.210: download - view: text, markup, annotated - select for diffs
Fri Jan 17 02:12:48 2014 UTC (11 years, 3 months ago) by pooka
Branches: MAIN
Diff to: previous 1.209: preferred, colored
Changes since revision 1.209: +1 -9
lines
Put cprng sysctls into subr_cprng.c. Also, make sysctl_prng static
in subr_cprng and get rid of SYSCTL_PRIVATE namespace leak macro.
Fixes ping(8) when run against a standalone rump kernel due to appearance
of the kern.urandom sysctl node (in case someone was wondering ...)
Revision 1.209: download - view: text, markup, annotated - select for diffs
Fri Sep 20 12:20:01 2013 UTC (11 years, 7 months ago) by wiz
Branches: MAIN
Diff to: previous 1.208: preferred, colored
Changes since revision 1.208: +7 -7
lines
Fix typos in comments.
Revision 1.207.2.1: download - view: text, markup, annotated - select for diffs
Wed Aug 28 23:59:37 2013 UTC (11 years, 7 months ago) by rmind
Branches: rmind-smpnet
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +8 -8
lines
sync with head
Revision 1.208: download - view: text, markup, annotated - select for diffs
Thu Aug 1 01:16:34 2013 UTC (11 years, 8 months ago) by matt
Branches: MAIN
Diff to: previous 1.207: preferred, colored
Changes since revision 1.207: +8 -8
lines
Put parens arund the negative numbers so 0 CTL_XX will cause a syntax error.
Revision 1.201.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 25 00:30:13 2013 UTC (12 years, 2 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.201.2.1: preferred, colored
Changes since revision 1.201.2.1: +19 -8
lines
resync with head
Revision 1.207: download - view: text, markup, annotated - select for diffs
Sat Feb 2 14:02:09 2013 UTC (12 years, 2 months ago) by matt
Branches: MAIN
CVS tags: riastradh-drm2-base2,
riastradh-drm2-base1,
riastradh-drm2-base,
riastradh-drm2,
khorben-n900,
agc-symver-base,
agc-symver
Branch point for: rmind-smpnet
Diff to: previous 1.206: preferred, colored
Changes since revision 1.206: +4 -2
lines
Make the inclusion of <sys/cprng.h> a private matter for sysctl. No reason
to expose the rest of the kernel to it.
Revision 1.197.2.4: download - view: text, markup, annotated - select for diffs
Wed Jan 23 00:06:30 2013 UTC (12 years, 3 months ago) by yamt
Branches: yamt-pagecache
CVS tags: yamt-pagecache-tag8
Diff to: previous 1.197.2.3: preferred, colored; branchpoint 1.197: preferred, colored
Changes since revision 1.197.2.3: +15 -6
lines
sync with head
Revision 1.197.2.3: download - view: text, markup, annotated - select for diffs
Wed Jan 16 05:33:54 2013 UTC (12 years, 3 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.197.2.2: preferred, colored; branchpoint 1.197: preferred, colored
Changes since revision 1.197.2.2: +2 -2
lines
sync with (a bit old) head
Revision 1.206: download - view: text, markup, annotated - select for diffs
Thu Jan 3 13:19:32 2013 UTC (12 years, 3 months ago) by dsl
Branches: MAIN
CVS tags: yamt-pagecache-base8
Diff to: previous 1.205: preferred, colored
Changes since revision 1.205: +7 -3
lines
Avoid exposing some headers to userland
Revision 1.205: download - view: text, markup, annotated - select for diffs
Wed Jan 2 19:29:40 2013 UTC (12 years, 3 months ago) by dsl
Branches: MAIN
Diff to: previous 1.204: preferred, colored
Changes since revision 1.204: +9 -4
lines
Only define 'struct kinfo_proc' if _KERNEL or _KMEMUSER is defined.
All 'normal' programs should be using kinfo_proc2 instead.
Revision 1.204: download - view: text, markup, annotated - select for diffs
Sat Dec 1 11:41:50 2012 UTC (12 years, 4 months ago) by mbalmer
Branches: MAIN
CVS tags: yamt-pagecache-base7
Diff to: previous 1.203: preferred, colored
Changes since revision 1.203: +2 -2
lines
Fix misspelling: accommodate is a long enough word to have room for two 'c's
and two 'm's.
Revision 1.201.2.1: download - view: text, markup, annotated - select for diffs
Tue Nov 20 03:02:52 2012 UTC (12 years, 5 months ago) by tls
Branches: tls-maxphys
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +1 -1
lines
Resync to 2012-11-19 00:00:00 UTC
Revision 1.197.2.2: download - view: text, markup, annotated - select for diffs
Tue Oct 30 17:22:57 2012 UTC (12 years, 5 months ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.197.2.1: preferred, colored; branchpoint 1.197: preferred, colored
Changes since revision 1.197.2.1: +30 -1
lines
sync with head
Revision 1.203: download - view: text, markup, annotated - select for diffs
Sun Oct 14 20:56:55 2012 UTC (12 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base6
Diff to: previous 1.202: preferred, colored
Changes since revision 1.202: +1 -3
lines
remove KERN_USRSTACK
Revision 1.202: download - view: text, markup, annotated - select for diffs
Sat Oct 13 15:35:56 2012 UTC (12 years, 6 months ago) by christos
Branches: MAIN
Diff to: previous 1.201: preferred, colored
Changes since revision 1.201: +4 -2
lines
add KERN_USRSTACK (this is not dynamically defined for FreeBSD compatibility)
Revision 1.177.4.2: download - view: text, markup, annotated - select for diffs
Wed Aug 22 20:21:26 2012 UTC (12 years, 8 months ago) by bouyer
Branches: netbsd-5
CVS tags: netbsd-5-2-RELEASE,
netbsd-5-2-RC1,
netbsd-5-2-3-RELEASE,
netbsd-5-2-2-RELEASE,
netbsd-5-2-1-RELEASE,
netbsd-5-2
Diff to: previous 1.177.4.1: preferred, colored; branchpoint 1.177: preferred, colored; next MAIN 1.178: preferred, colored
Changes since revision 1.177.4.1: +7 -1
lines
Apply patch, requested by dsl in ticket 1769:
sys/sys/sysctl.h patch
define CTLTYPE_LONG, needed for ticket 1770
Revision 1.199.2.1: download - view: text, markup, annotated - select for diffs
Tue Jun 12 17:06:38 2012 UTC (12 years, 10 months ago) by riz
Branches: netbsd-6
CVS tags: netbsd-6-1-RELEASE,
netbsd-6-1-RC4,
netbsd-6-1-RC3,
netbsd-6-1-RC2,
netbsd-6-1-RC1,
netbsd-6-1-5-RELEASE,
netbsd-6-1-4-RELEASE,
netbsd-6-1-3-RELEASE,
netbsd-6-1-2-RELEASE,
netbsd-6-1-1-RELEASE,
netbsd-6-1,
netbsd-6-0-RELEASE,
netbsd-6-0-RC2,
netbsd-6-0-RC1,
netbsd-6-0-6-RELEASE,
netbsd-6-0-5-RELEASE,
netbsd-6-0-4-RELEASE,
netbsd-6-0-3-RELEASE,
netbsd-6-0-2-RELEASE,
netbsd-6-0-1-RELEASE,
netbsd-6-0,
matt-nb6-plus-nbase,
matt-nb6-plus-base,
matt-nb6-plus
Diff to: previous 1.199: preferred, colored; next MAIN 1.200: preferred, colored
Changes since revision 1.199: +7 -1
lines
Pull up following revision(s) (requested by dsl in ticket #305):
sys/sys/sysctl.h: patch
Define CTLTYPE_LONG in preparation for more pullups.
Revision 1.201: download - view: text, markup, annotated - select for diffs
Sat Jun 9 02:31:15 2012 UTC (12 years, 10 months ago) by christos
Branches: MAIN
Branch point for: tls-maxphys
Diff to: previous 1.200: preferred, colored
Changes since revision 1.200: +3 -1
lines
Add a new resource to limit the number of lwps per user, RLIMIT_NTHR. There
is a global sysctl kern.maxlwp to control this, which is by default 2048.
The first lwp of each process or kernel threads are not counted against the
limit. To show the current resource usage per user, I added a new sysctl
that dumps the uidinfo structure fields.
Revision 1.200: download - view: text, markup, annotated - select for diffs
Sat Jun 2 21:36:48 2012 UTC (12 years, 10 months ago) by dsl
Branches: MAIN
Diff to: previous 1.199: preferred, colored
Changes since revision 1.199: +28 -1
lines
Add some pre-processor magic to verify that the type of the data item
passed to sysctl_createv() actually matches the declared type for
the item itself.
In the places where the caller specifies a function and a structure
address (typically the 'softc') an explicit (void *) cast is now needed.
Fixes bugs in sys/dev/acpi/asus_acpi.c sys/dev/bluetooth/bcsp.c
sys/kern/vfs_bio.c sys/miscfs/syncfs/sync_subr.c and setting
AcpiGbl_EnableAmlDebugObject.
(mostly passing the address of a uint64_t when typed as CTLTYPE_INT).
I've test built quite a few kernels, but there may be some unfixed MD
fallout. Most likely passing &char[] to char *.
Also add CTLFLAG_UNSIGNED for unsiged decimals - not set yet.
Revision 1.197.2.1: download - view: text, markup, annotated - select for diffs
Tue Apr 17 00:08:53 2012 UTC (13 years ago) by yamt
Branches: yamt-pagecache
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +8 -1
lines
sync with head
Revision 1.198.2.1: download - view: text, markup, annotated - select for diffs
Sat Feb 18 07:35:52 2012 UTC (13 years, 2 months ago) by mrg
Branches: jmcneill-usbmp
Diff to: previous 1.198: preferred, colored; next MAIN 1.199: preferred, colored
Changes since revision 1.198: +2 -1
lines
merge to -current.
Revision 1.199: download - view: text, markup, annotated - select for diffs
Fri Jan 27 19:48:41 2012 UTC (13 years, 2 months ago) by para
Branches: MAIN
CVS tags: yamt-pagecache-base5,
yamt-pagecache-base4,
netbsd-6-base,
jmcneill-usbmp-base9,
jmcneill-usbmp-base8,
jmcneill-usbmp-base7,
jmcneill-usbmp-base6,
jmcneill-usbmp-base5,
jmcneill-usbmp-base4,
jmcneill-usbmp-base3,
jmcneill-usbmp-base2,
jmcneill-usbmp-base10
Branch point for: netbsd-6
Diff to: previous 1.198: preferred, colored
Changes since revision 1.198: +2 -1
lines
extending vmem(9) to be able to allocated resources for it's own needs.
simplifying uvm_map handling (no special kernel entries anymore no relocking)
make malloc(9) a thin wrapper around kmem(9)
(with private interface for interrupt safety reasons)
releng@ acknowledged
Revision 1.198: download - view: text, markup, annotated - select for diffs
Sat Nov 19 22:51:31 2011 UTC (13 years, 5 months ago) by tls
Branches: MAIN
CVS tags: jmcneill-usbmp-pre-base2,
jmcneill-usbmp-base
Branch point for: jmcneill-usbmp
Diff to: previous 1.197: preferred, colored
Changes since revision 1.197: +7 -1
lines
First step of random number subsystem rework described in
<20111022023242.BA26F14A158@mail.netbsd.org>. This change includes
the following:
An initial cleanup and minor reorganization of the entropy pool
code in sys/dev/rnd.c and sys/dev/rndpool.c. Several bugs are
fixed. Some effort is made to accumulate entropy more quickly at
boot time.
A generic interface, "rndsink", is added, for stream generators to
request that they be re-keyed with good quality entropy from the pool
as soon as it is available.
The arc4random()/arc4randbytes() implementation in libkern is
adjusted to use the rndsink interface for rekeying, which helps
address the problem of low-quality keys at boot time.
An implementation of the FIPS 140-2 statistical tests for random
number generator quality is provided (libkern/rngtest.c). This
is based on Greg Rose's implementation from Qualcomm.
A new random stream generator, nist_ctr_drbg, is provided. It is
based on an implementation of the NIST SP800-90 CTR_DRBG by
Henric Jungheim. This generator users AES in a modified counter
mode to generate a backtracking-resistant random stream.
An abstraction layer, "cprng", is provided for in-kernel consumers
of randomness. The arc4random/arc4randbytes API is deprecated for
in-kernel use. It is replaced by "cprng_strong". The current
cprng_fast implementation wraps the existing arc4random
implementation. The current cprng_strong implementation wraps the
new CTR_DRBG implementation. Both interfaces are rekeyed from
the entropy pool automatically at intervals justifiable from best
current cryptographic practice.
In some quick tests, cprng_fast() is about the same speed as
the old arc4randbytes(), and cprng_strong() is about 20% faster
than rnd_extract_data(). Performance is expected to improve.
The AES code in src/crypto/rijndael is no longer an optional
kernel component, as it is required by cprng_strong, which is
not an optional kernel component.
The entropy pool output is subjected to the rngtest tests at
startup time; if it fails, the system will reboot. There is
approximately a 3/10000 chance of a false positive from these
tests. Entropy pool _input_ from hardware random numbers is
subjected to the rngtest tests at attach time, as well as the
FIPS continuous-output test, to detect bad or stuck hardware
RNGs; if any are detected, they are detached, but the system
continues to run.
A problem with rndctl(8) is fixed -- datastructures with
pointers in arrays are no longer passed to userspace (this
was not a security problem, but rather a major issue for
compat32). A new kernel will require a new rndctl.
The sysctl kern.arandom() and kern.urandom() nodes are hooked
up to the new generators, but the /dev/*random pseudodevices
are not, yet.
Manual pages for the new kernel interfaces are forthcoming.
Revision 1.197: download - view: text, markup, annotated - select for diffs
Fri Oct 21 02:07:07 2011 UTC (13 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-pagecache-base3,
yamt-pagecache-base2,
yamt-pagecache-base,
jmcneill-audiomp3-base,
jmcneill-audiomp3
Branch point for: yamt-pagecache
Diff to: previous 1.196: preferred, colored
Changes since revision 1.196: +3 -1
lines
add proc_compare prototype.
Revision 1.196: download - view: text, markup, annotated - select for diffs
Wed Oct 12 23:04:22 2011 UTC (13 years, 6 months ago) by dholland
Branches: MAIN
Diff to: previous 1.195: preferred, colored
Changes since revision 1.195: +2 -1
lines
As a precaution, add sys/param.h explicitly to some headers that will
no longer get it via sys/ucred.h and don't already include it
explicitly. These should in turn be removed when it can be confirmed
that it's safe to do so. (Because sys/param.h is full of things that
are often tested with #if, it's not in general safe to remove it
without checking, as such tests fail silently if the symbol goes
missing.)
Revision 1.189.2.1: download - view: text, markup, annotated - select for diffs
Mon Jun 6 09:10:13 2011 UTC (13 years, 10 months ago) by jruoho
Branches: jruoho-x86intr
Diff to: previous 1.189: preferred, colored; next MAIN 1.190: preferred, colored
Changes since revision 1.189: +38 -14
lines
Sync with HEAD.
Revision 1.188.4.2: download - view: text, markup, annotated - select for diffs
Tue May 31 03:05:12 2011 UTC (13 years, 10 months ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.188.4.1: preferred, colored; branchpoint 1.188: preferred, colored; next MAIN 1.189: preferred, colored
Changes since revision 1.188.4.1: +0 -11
lines
sync with head
Revision 1.195: download - view: text, markup, annotated - select for diffs
Tue Apr 26 21:27:44 2011 UTC (14 years ago) by joerg
Branches: MAIN
CVS tags: rmind-uvmplock-nbase,
rmind-uvmplock-base,
cherry-xenmp-base,
cherry-xenmp
Diff to: previous 1.194: preferred, colored
Changes since revision 1.194: +1 -6
lines
Kill CTL_EMUL_NAMES.
Revision 1.194: download - view: text, markup, annotated - select for diffs
Tue Apr 26 16:36:43 2011 UTC (14 years ago) by joerg
Branches: MAIN
Diff to: previous 1.193: preferred, colored
Changes since revision 1.193: +1 -3
lines
Remove IRIX emulation
Revision 1.193: download - view: text, markup, annotated - select for diffs
Tue Apr 26 15:51:32 2011 UTC (14 years ago) by joerg
Branches: MAIN
Diff to: previous 1.192: preferred, colored
Changes since revision 1.192: +1 -5
lines
Remove Darwin, MACH and Mach-O support.
Revision 1.188.4.1: download - view: text, markup, annotated - select for diffs
Sat Mar 5 20:56:26 2011 UTC (14 years, 1 month ago) by rmind
Branches: rmind-uvmplock
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +38 -20
lines
sync with head
Revision 1.189.4.1: download - view: text, markup, annotated - select for diffs
Tue Feb 8 16:20:05 2011 UTC (14 years, 2 months ago) by bouyer
Branches: bouyer-quota2
Diff to: previous 1.189: preferred, colored; next MAIN 1.190: preferred, colored
Changes since revision 1.189: +38 -3
lines
Sync with HEAD
Revision 1.192: download - view: text, markup, annotated - select for diffs
Sat Jan 29 17:35:23 2011 UTC (14 years, 2 months ago) by matt
Branches: MAIN
CVS tags: uebayasi-xip-base7,
bouyer-quota2-nbase,
bouyer-quota2-base
Diff to: previous 1.191: preferred, colored
Changes since revision 1.191: +28 -2
lines
Add a sysctl to retrieve evcnts from the kernel. You can tell it to
limit to a specific type and/or all or just evcnts with non-zero counts.
Revision 1.191: download - view: text, markup, annotated - select for diffs
Fri Jan 28 18:44:45 2011 UTC (14 years, 2 months ago) by pooka
Branches: MAIN
Diff to: previous 1.190: preferred, colored
Changes since revision 1.190: +9 -1
lines
Move sysctl routines from init_sysctl.c to kern_descrip.c (for
descriptors) and kern_proc.c (for processes). This makes them
usable in a rump kernel, in case somebody was wondering.
Revision 1.190: download - view: text, markup, annotated - select for diffs
Sat Jan 22 20:54:44 2011 UTC (14 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.189: preferred, colored
Changes since revision 1.189: +3 -2
lines
Use the L_ flags instead of the P_ flags for lwps.
Revision 1.189: download - view: text, markup, annotated - select for diffs
Sun Nov 14 05:34:56 2010 UTC (14 years, 5 months ago) by uebayasi
Branches: MAIN
CVS tags: uebayasi-xip-base6,
matt-mips64-premerge-20101231,
jruoho-x86intr-base
Branch point for: jruoho-x86intr,
bouyer-quota2
Diff to: previous 1.188: preferred, colored
Changes since revision 1.188: +1 -18
lines
According to nxr.netbsd.org nothing uses CTL_NAMES now.
Revision 1.175.6.5: download - view: text, markup, annotated - select for diffs
Thu Mar 11 15:04:43 2010 UTC (15 years, 1 month ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.175.6.4: preferred, colored; branchpoint 1.175: preferred, colored; next MAIN 1.176: preferred, colored
Changes since revision 1.175.6.4: +3 -2
lines
sync with head
Revision 1.188: download - view: text, markup, annotated - select for diffs
Sat Dec 12 00:24:57 2009 UTC (15 years, 4 months ago) by rmind
Branches: MAIN
CVS tags: yamt-nfs-mp-base9,
yamt-nfs-mp-base11,
yamt-nfs-mp-base10,
uebayasi-xip-base5,
uebayasi-xip-base4,
uebayasi-xip-base3,
uebayasi-xip-base2,
uebayasi-xip-base1,
uebayasi-xip-base,
uebayasi-xip,
matt-premerge-20091211
Branch point for: rmind-uvmplock
Diff to: previous 1.187: preferred, colored
Changes since revision 1.187: +2 -2
lines
Fix comment.
Revision 1.187: download - view: text, markup, annotated - select for diffs
Wed Sep 16 15:23:05 2009 UTC (15 years, 7 months ago) by pooka
Branches: MAIN
CVS tags: jym-xensuspend-nbase
Diff to: previous 1.186: preferred, colored
Changes since revision 1.186: +2 -1
lines
Replace a large number of link set based sysctl node creations with
calls from subsystem constructors. Benefits both future kernel
modules and rump.
no change to sysctl nodes on i386/MONOLITHIC & build tested i386/ALL
Revision 1.175.6.4: download - view: text, markup, annotated - select for diffs
Wed Sep 16 13:38:06 2009 UTC (15 years, 7 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.175.6.3: preferred, colored; branchpoint 1.175: preferred, colored
Changes since revision 1.175.6.3: +2 -1
lines
sync with head
Revision 1.186: download - view: text, markup, annotated - select for diffs
Fri Aug 21 22:51:00 2009 UTC (15 years, 8 months ago) by dyoung
Branches: MAIN
CVS tags: yamt-nfs-mp-base8
Diff to: previous 1.185: preferred, colored
Changes since revision 1.185: +2 -1
lines
In sysctl_realloc(), don't make 'i' act as both an child-array
iterator and the length of the old child array, but introduce a
new variable, 'olen', for the latter purpose.
In sysctl_alloc(), name a constant.
Introduce sysctl_log_print(), a handy debug routine.
No functional changes intended.
Revision 1.175.6.3: download - view: text, markup, annotated - select for diffs
Wed Aug 19 18:48:33 2009 UTC (15 years, 8 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.175.6.2: preferred, colored; branchpoint 1.175: preferred, colored
Changes since revision 1.175.6.2: +2 -2
lines
sync with head.
Revision 1.183.2.2: download - view: text, markup, annotated - select for diffs
Thu Jul 23 23:32:57 2009 UTC (15 years, 9 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.183.2.1: preferred, colored; branchpoint 1.183: preferred, colored; next MAIN 1.184: preferred, colored
Changes since revision 1.183.2.1: +2 -2
lines
Sync with HEAD.
Revision 1.185: download - view: text, markup, annotated - select for diffs
Wed Jul 22 22:53:41 2009 UTC (15 years, 9 months ago) by alc
Branches: MAIN
CVS tags: yamt-nfs-mp-base7,
jymxensuspend-base
Diff to: previous 1.184: preferred, colored
Changes since revision 1.184: +2 -2
lines
Constify the fourth argument of sysctlbtname(3) (ie. `newp', the pointer to
the new value).
This change sync sysctl(3) and sysctlbtname(3) prototypes.
No objection on <tech-userlevel>
Revision 1.183.2.1: download - view: text, markup, annotated - select for diffs
Wed May 13 17:23:04 2009 UTC (15 years, 11 months ago) by jym
Branches: jym-xensuspend
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +5 -1
lines
Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
Revision 1.175.6.2: download - view: text, markup, annotated - select for diffs
Mon May 4 08:14:36 2009 UTC (15 years, 11 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.175.6.1: preferred, colored; branchpoint 1.175: preferred, colored
Changes since revision 1.175.6.1: +25 -16
lines
sync with head.
Revision 1.177.2.3: download - view: text, markup, annotated - select for diffs
Tue Apr 28 07:37:53 2009 UTC (15 years, 11 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.177.2.2: preferred, colored; branchpoint 1.177: preferred, colored; next MAIN 1.178: preferred, colored
Changes since revision 1.177.2.2: +5 -1
lines
Sync with HEAD.
Revision 1.177.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 1 00:25:22 2009 UTC (16 years ago) by snj
Branches: netbsd-5
CVS tags: netbsd-5-1-RELEASE,
netbsd-5-1-RC4,
netbsd-5-1-RC3,
netbsd-5-1-RC2,
netbsd-5-1-RC1,
netbsd-5-1-5-RELEASE,
netbsd-5-1-4-RELEASE,
netbsd-5-1-3-RELEASE,
netbsd-5-1-2-RELEASE,
netbsd-5-1-1-RELEASE,
netbsd-5-1,
netbsd-5-0-RELEASE,
netbsd-5-0-RC4,
netbsd-5-0-2-RELEASE,
netbsd-5-0-1-RELEASE,
netbsd-5-0,
matt-nb5-pq3-base,
matt-nb5-pq3,
matt-nb5-mips64-u2-k2-k4-k7-k8-k9,
matt-nb5-mips64-u1-k1-k5,
matt-nb5-mips64-premerge-20101231,
matt-nb5-mips64-premerge-20091211,
matt-nb5-mips64-k15,
matt-nb5-mips64,
matt-nb4-mips64-k7-u2a-k9b
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +5 -1
lines
Pull up following revision(s) (requested by mrg in ticket #622):
bin/csh/csh.1: revision 1.46
bin/csh/func.c: revision 1.37
bin/ps/print.c: revision 1.111
bin/ps/ps.c: revision 1.74
bin/sh/miscbltin.c: revision 1.38
bin/sh/sh.1: revision 1.92 via patch
external/bsd/top/dist/machine/m_netbsd.c: revision 1.7
lib/libkvm/kvm_proc.c: revision 1.82
sys/arch/mips/mips/cpu_exec.c: revision 1.55
sys/compat/darwin/darwin_exec.c: revision 1.57
sys/compat/ibcs2/ibcs2_exec.c: revision 1.73
sys/compat/irix/irix_resource.c: revision 1.15
sys/compat/linux/arch/amd64/linux_exec_machdep.c: revision 1.16
sys/compat/linux/arch/i386/linux_exec_machdep.c: revision 1.12
sys/compat/linux/common/linux_limit.h: revision 1.5
sys/compat/osf1/osf1_resource.c: revision 1.14
sys/compat/svr4/svr4_resource.c: revision 1.18
sys/compat/svr4_32/svr4_32_resource.c: revision 1.17
sys/kern/exec_subr.c: revision 1.62
sys/kern/init_sysctl.c: revision 1.160
sys/kern/kern_exec.c: revision 1.288
sys/kern/kern_resource.c: revision 1.151
sys/sys/param.h: patch
sys/sys/resource.h: revision 1.31
sys/sys/sysctl.h: revision 1.184
sys/uvm/uvm_extern.h: revision 1.153
sys/uvm/uvm_glue.c: revision 1.136
sys/uvm/uvm_mmap.c: revision 1.128
usr.bin/systat/ps.c: revision 1.32
- - add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total
address space available to processes. this limit exists in most other
modern unix variants, and like most of them, our defaults are unlimited.
remove the old mmap / rlimit.datasize hack.
- - adds the VMCMD_STACK flag to all the stack-creation vmcmd callers.
it is currently unused, but was added a few years ago.
- - add a pair of new process size values to kinfo_proc2{}. one is the
total size of the process memory map, and the other is the total size
adjusted for unused stack space (since most processes have a lot of
this...)
- - patch sh, and csh to notice RLIMIT_AS. (in some cases, the alias
RLIMIT_VMEM was already present and used if availble.)
- - patch ps, top and systat to notice the new k_vm_vsize member of
kinfo_proc2{}.
- - update irix, svr4, svr4_32, linux and osf1 emulations to support
this information. (freebsd could be done, but that it's best left
as part of the full-update of compat/freebsd.)
this addresses PR 7897. it also gives correct memory usage values,
which have never been entirely correct (since mmap), and have been
very incorrect since jemalloc() was enabled.
tested on i386 and sparc64, build tested on several other platforms.
thanks to many folks for feedback and testing but most espcially
chuq and yamt for critical suggestions that lead to this patch not
having a special ugliness i wasn't happy with anyway :-)
Revision 1.184: download - view: text, markup, annotated - select for diffs
Sun Mar 29 01:02:50 2009 UTC (16 years ago) by mrg
Branches: MAIN
CVS tags: yamt-nfs-mp-base6,
yamt-nfs-mp-base5,
yamt-nfs-mp-base4,
yamt-nfs-mp-base3,
nick-hppapmap-base4,
nick-hppapmap-base3,
nick-hppapmap-base,
jym-xensuspend-base
Diff to: previous 1.183: preferred, colored
Changes since revision 1.183: +5 -1
lines
- add new RLIMIT_AS (aka RLIMIT_VMEM) resource that limits the total
address space available to processes. this limit exists in most other
modern unix variants, and like most of them, our defaults are unlimited.
remove the old mmap / rlimit.datasize hack.
- adds the VMCMD_STACK flag to all the stack-creation vmcmd callers.
it is currently unused, but was added a few years ago.
- add a pair of new process size values to kinfo_proc2{}. one is the
total size of the process memory map, and the other is the total size
adjusted for unused stack space (since most processes have a lot of
this...)
- patch sh, and csh to notice RLIMIT_AS. (in some cases, the alias
RLIMIT_VMEM was already present and used if availble.)
- patch ps, top and systat to notice the new k_vm_vsize member of
kinfo_proc2{}.
- update irix, svr4, svr4_32, linux and osf1 emulations to support
this information. (freebsd could be done, but that it's best left
as part of the full-update of compat/freebsd.)
this addresses PR 7897. it also gives correct memory usage values,
which have never been entirely correct (since mmap), and have been
very incorrect since jemalloc() was enabled.
tested on i386 and sparc64, build tested on several other platforms.
thanks to many folks for feedback and testing but most espcially
chuq and yamt for critical suggestions that lead to this patch not
having a special ugliness i wasn't happy with anyway :-)
Revision 1.177.2.2: download - view: text, markup, annotated - select for diffs
Tue Mar 3 18:34:31 2009 UTC (16 years, 1 month ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.177.2.1: preferred, colored; branchpoint 1.177: preferred, colored
Changes since revision 1.177.2.1: +9 -6
lines
Sync with HEAD.
Revision 1.183: download - view: text, markup, annotated - select for diffs
Tue Jan 20 18:20:48 2009 UTC (16 years, 3 months ago) by drochner
Branches: MAIN
CVS tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Diff to: previous 1.182: preferred, colored
Changes since revision 1.182: +3 -3
lines
Change major()/minor() to return 32-bit types again, called
devmajor_t/devminor_t, as proposed on tech-kern.
This avoids 64-bit arithmetics and 64-bit printf formats in parts
of the kernel where it is not really useful, and helps clarity.
Revision 1.182: download - view: text, markup, annotated - select for diffs
Mon Jan 19 19:39:41 2009 UTC (16 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.181: preferred, colored
Changes since revision 1.181: +7 -4
lines
Provide compatibility for pre-christos-time_t sysv sysctls.
Revision 1.177.2.1: download - view: text, markup, annotated - select for diffs
Mon Jan 19 13:20:31 2009 UTC (16 years, 3 months ago) by skrll
Branches: nick-hppapmap
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +12 -10
lines
Sync with HEAD.
Revision 1.173.6.4: download - view: text, markup, annotated - select for diffs
Sat Jan 17 13:29:41 2009 UTC (16 years, 3 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.173.6.3: preferred, colored; branchpoint 1.173: preferred, colored; next MAIN 1.174: preferred, colored
Changes since revision 1.173.6.3: +11 -9
lines
Sync with HEAD.
Revision 1.181: download - view: text, markup, annotated - select for diffs
Sun Jan 11 02:45:55 2009 UTC (16 years, 3 months ago) by christos
Branches: MAIN
CVS tags: mjf-devfs2-base
Diff to: previous 1.180: preferred, colored
Changes since revision 1.180: +8 -6
lines
merge christos-time_t
Revision 1.175.2.6: download - view: text, markup, annotated - select for diffs
Tue Dec 30 18:50:26 2008 UTC (16 years, 3 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.175.2.5: preferred, colored; branchpoint 1.175: preferred, colored; next MAIN 1.176: preferred, colored
Changes since revision 1.175.2.5: +1 -2
lines
sync with head.
Revision 1.180: download - view: text, markup, annotated - select for diffs
Mon Dec 29 15:35:02 2008 UTC (16 years, 3 months ago) by pooka
Branches: MAIN
CVS tags: christos-time_t-nbase,
christos-time_t-base
Diff to: previous 1.179: preferred, colored
Changes since revision 1.179: +1 -2
lines
Librate sysctl_setup_func typedef from the clutches of _MODULE and
stuff it in kern_sysctl.c where its only sensible use is.
Revision 1.175.2.5: download - view: text, markup, annotated - select for diffs
Sun Dec 28 19:48:25 2008 UTC (16 years, 3 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.175.2.4: preferred, colored; branchpoint 1.175: preferred, colored
Changes since revision 1.175.2.4: +3 -3
lines
make both tdevs uint32_t to preserve binary compatibility.
Revision 1.175.2.4: download - view: text, markup, annotated - select for diffs
Sat Dec 27 23:14:25 2008 UTC (16 years, 3 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.175.2.3: preferred, colored; branchpoint 1.175: preferred, colored
Changes since revision 1.175.2.3: +2 -1
lines
merge with head.
Revision 1.176.6.2: download - view: text, markup, annotated - select for diffs
Sat Dec 13 01:15:35 2008 UTC (16 years, 4 months ago) by haad
Branches: haad-dm
Diff to: previous 1.176.6.1: preferred, colored; branchpoint 1.176: preferred, colored; next MAIN 1.177: preferred, colored
Changes since revision 1.176.6.1: +5 -4
lines
Update haad-dm branch to haad-dm-base2.
Revision 1.179: download - view: text, markup, annotated - select for diffs
Sun Dec 7 20:58:46 2008 UTC (16 years, 4 months ago) by pooka
Branches: MAIN
CVS tags: haad-nbase2,
haad-dm-base2,
haad-dm-base
Diff to: previous 1.178: preferred, colored
Changes since revision 1.178: +2 -1
lines
Move some sysctl node creations away from linksets and into the
constructors for subsystems.
XXX: CTLFLAG_PERMANENT is non-sensible.
Revision 1.175.2.3: download - view: text, markup, annotated - select for diffs
Thu Nov 20 20:45:40 2008 UTC (16 years, 5 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.175.2.2: preferred, colored; branchpoint 1.175: preferred, colored
Changes since revision 1.175.2.2: +4 -4
lines
merge with head.
Revision 1.178: download - view: text, markup, annotated - select for diffs
Wed Nov 12 12:36:28 2008 UTC (16 years, 5 months ago) by ad
Branches: MAIN
CVS tags: ad-audiomp2-base,
ad-audiomp2
Diff to: previous 1.177: preferred, colored
Changes since revision 1.177: +4 -4
lines
Remove LKMs and switch to the module framework, pass 1.
Proposed on tech-kern@.
Revision 1.175.2.2: download - view: text, markup, annotated - select for diffs
Sat Nov 1 21:22:28 2008 UTC (16 years, 5 months ago) by christos
Branches: christos-time_t
Diff to: previous 1.175.2.1: preferred, colored; branchpoint 1.175: preferred, colored
Changes since revision 1.175.2.1: +3 -3
lines
Sync with head.
Revision 1.176.6.1: download - view: text, markup, annotated - select for diffs
Sun Oct 19 22:18:09 2008 UTC (16 years, 6 months ago) by haad
Branches: haad-dm
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +2 -2
lines
Sync with HEAD.
Revision 1.173.6.3: download - view: text, markup, annotated - select for diffs
Sun Sep 28 10:41:05 2008 UTC (16 years, 6 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.173.6.2: preferred, colored; branchpoint 1.173: preferred, colored
Changes since revision 1.173.6.2: +1 -1
lines
Sync with HEAD.
Revision 1.176.2.1: download - view: text, markup, annotated - select for diffs
Thu Sep 18 04:37:05 2008 UTC (16 years, 7 months ago) by wrstuden
Branches: wrstuden-revivesa
Diff to: previous 1.176: preferred, colored; next MAIN 1.177: preferred, colored
Changes since revision 1.176: +2 -2
lines
Sync with wrstuden-revivesa-base-2.
Revision 1.177: download - view: text, markup, annotated - select for diffs
Wed Aug 27 08:53:55 2008 UTC (16 years, 8 months ago) by christos
Branches: MAIN
CVS tags: wrstuden-revivesa-base-4,
wrstuden-revivesa-base-3,
wrstuden-revivesa-base-2,
netbsd-5-base,
netbsd-5-0-RC3,
netbsd-5-0-RC2,
netbsd-5-0-RC1,
matt-mips64-base2,
haad-dm-base1
Branch point for: nick-hppapmap,
netbsd-5
Diff to: previous 1.176: preferred, colored
Changes since revision 1.176: +2 -2
lines
Make _POSIX_TZNAME_MAX=6 per SUSv3, from Andy Shevchenko
Revision 1.173.6.2: download - view: text, markup, annotated - select for diffs
Mon Jun 2 13:24:34 2008 UTC (16 years, 10 months ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.173.6.1: preferred, colored; branchpoint 1.173: preferred, colored
Changes since revision 1.173.6.1: +1 -1
lines
Sync with HEAD.
Revision 1.175.4.1: download - view: text, markup, annotated - select for diffs
Sun May 18 12:35:50 2008 UTC (16 years, 11 months ago) by yamt
Branches: yamt-pf42
Diff to: previous 1.175: preferred, colored; next MAIN 1.176: preferred, colored
Changes since revision 1.175: +2 -2
lines
sync with head.
Revision 1.175.6.1: download - view: text, markup, annotated - select for diffs
Fri May 16 02:25:52 2008 UTC (16 years, 11 months ago) by yamt
Branches: yamt-nfs-mp
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +2 -2
lines
sync with head.
Revision 1.176: download - view: text, markup, annotated - select for diffs
Tue Apr 29 16:21:27 2008 UTC (16 years, 11 months ago) by ad
Branches: MAIN
CVS tags: yamt-pf42-base4,
yamt-pf42-base3,
yamt-pf42-base2,
yamt-nfs-mp-base2,
wrstuden-revivesa-base-1,
wrstuden-revivesa-base,
simonb-wapbl-nbase,
simonb-wapbl-base,
simonb-wapbl,
hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa,
haad-dm
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +2 -2
lines
PR kern/37917 /bin/ps no longer shows zombies
Revision 1.173.6.1: download - view: text, markup, annotated - select for diffs
Thu Apr 3 12:43:13 2008 UTC (17 years ago) by mjf
Branches: mjf-devfs2
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +6 -1
lines
Sync with HEAD.
Revision 1.175.2.1: download - view: text, markup, annotated - select for diffs
Sat Mar 29 20:47:03 2008 UTC (17 years ago) by christos
Branches: christos-time_t
Diff to: previous 1.175: preferred, colored
Changes since revision 1.175: +6 -4
lines
Welcome to the time_t=long long dev_t=uint64_t branch.
Revision 1.173.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 24 07:16:29 2008 UTC (17 years, 1 month ago) by keiichi
Branches: keiichi-mipv6
Diff to: previous 1.173: preferred, colored; next MAIN 1.174: preferred, colored
Changes since revision 1.173: +6 -1
lines
sync with head.
Revision 1.170.8.3: download - view: text, markup, annotated - select for diffs
Sun Mar 23 02:05:11 2008 UTC (17 years, 1 month ago) by matt
Branches: matt-armv6
Diff to: previous 1.170.8.2: preferred, colored; branchpoint 1.170: preferred, colored; next MAIN 1.171: preferred, colored
Changes since revision 1.170.8.2: +6 -1
lines
sync with HEAD
Revision 1.138.2.7: download - view: text, markup, annotated - select for diffs
Mon Mar 17 09:15:47 2008 UTC (17 years, 1 month ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.138.2.6: preferred, colored; next MAIN 1.139: preferred, colored
Changes since revision 1.138.2.6: +6 -1
lines
sync with head.
Revision 1.175: download - view: text, markup, annotated - select for diffs
Fri Feb 29 06:37:57 2008 UTC (17 years, 1 month ago) by matt
Branches: MAIN
CVS tags: yamt-pf42-baseX,
yamt-pf42-base,
yamt-nfs-mp-base,
yamt-lazymbuf-base15,
yamt-lazymbuf-base14,
matt-armv6-nbase,
keiichi-mipv6-nbase,
keiichi-mipv6-base,
ad-socklock-base1
Branch point for: yamt-pf42,
yamt-nfs-mp,
christos-time_t
Diff to: previous 1.174: preferred, colored
Changes since revision 1.174: +3 -1
lines
#include <stdbool.h> if !_KERNEL && !_STANDALONE
Revision 1.174: download - view: text, markup, annotated - select for diffs
Fri Feb 29 02:28:35 2008 UTC (17 years, 1 month ago) by matt
Branches: MAIN
Diff to: previous 1.173: preferred, colored
Changes since revision 1.173: +4 -1
lines
Add support for CTLTYPE_BOOL
Revision 1.171.4.1: download - view: text, markup, annotated - select for diffs
Mon Feb 18 21:07:24 2008 UTC (17 years, 2 months ago) by mjf
Branches: mjf-devfs
Diff to: previous 1.171: preferred, colored; next MAIN 1.172: preferred, colored
Changes since revision 1.171: +4 -3
lines
Sync with HEAD.
Revision 1.138.2.6: download - view: text, markup, annotated - select for diffs
Mon Jan 21 09:48:00 2008 UTC (17 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.138.2.5: preferred, colored
Changes since revision 1.138.2.5: +6 -3
lines
sync with head
Revision 1.170.8.2: download - view: text, markup, annotated - select for diffs
Wed Jan 9 01:58:19 2008 UTC (17 years, 3 months ago) by matt
Branches: matt-armv6
Diff to: previous 1.170.8.1: preferred, colored; branchpoint 1.170: preferred, colored
Changes since revision 1.170.8.1: +6 -3
lines
sync with HEAD
Revision 1.172.2.1: download - view: text, markup, annotated - select for diffs
Tue Jan 8 22:11:59 2008 UTC (17 years, 3 months ago) by bouyer
Branches: bouyer-xeni386
CVS tags: bouyer-xeni386-merge1
Diff to: previous 1.172: preferred, colored; next MAIN 1.173: preferred, colored
Changes since revision 1.172: +4 -3
lines
Sync with HEAD
Revision 1.173: download - view: text, markup, annotated - select for diffs
Mon Jan 7 16:12:56 2008 UTC (17 years, 3 months ago) by ad
Branches: MAIN
CVS tags: nick-net80211-sync-base,
nick-net80211-sync,
mjf-devfs-base,
matt-armv6-base,
hpcarm-cleanup-base,
bouyer-xeni386-nbase,
bouyer-xeni386-base
Branch point for: mjf-devfs2,
keiichi-mipv6
Diff to: previous 1.172: preferred, colored
Changes since revision 1.172: +4 -3
lines
Patch up sysctl locking:
- Lock processes, credentials, filehead etc correctly.
- Acquire a read hold on sysctl_treelock if only doing a query.
- Don't wire down the output buffer. It doesn't work correctly and the code
regularly does long term sleeps with it held - it's not worth it.
- Don't hold locks other than sysctl_lock while doing copyout().
- Drop sysctl_lock while doing copyout / allocating memory in a few places.
- Don't take kernel_lock for sysctl.
- Fix a number of bugs spotted along the way
Revision 1.171.6.1: download - view: text, markup, annotated - select for diffs
Wed Dec 26 19:57:59 2007 UTC (17 years, 4 months ago) by ad
Branches: vmlocking2
Diff to: previous 1.171: preferred, colored; next MAIN 1.172: preferred, colored
Changes since revision 1.171: +3 -1
lines
Sync with head.
Revision 1.171.8.1: download - view: text, markup, annotated - select for diffs
Tue Dec 11 15:45:42 2007 UTC (17 years, 4 months ago) by yamt
Branches: yamt-kmem
Diff to: previous 1.171: preferred, colored; next MAIN 1.172: preferred, colored
Changes since revision 1.171: +3 -1
lines
sync with head.
Revision 1.172: download - view: text, markup, annotated - select for diffs
Mon Dec 10 14:19:08 2007 UTC (17 years, 4 months ago) by bsh
Branches: MAIN
CVS tags: yamt-kmem-base3,
yamt-kmem-base2,
vmlocking2-base3,
cube-autoconf-base,
cube-autoconf
Branch point for: bouyer-xeni386
Diff to: previous 1.171: preferred, colored
Changes since revision 1.171: +3 -1
lines
fix compile error (no previous prototype for 'sysctl_FOO') when
SYSCTL_SETUP() is used in LKM.
Revision 1.170.8.1: download - view: text, markup, annotated - select for diffs
Tue Nov 6 23:34:59 2007 UTC (17 years, 5 months ago) by matt
Branches: matt-armv6
CVS tags: matt-armv6-prevmlocking
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +3 -1
lines
sync with HEAD
Revision 1.138.2.5: download - view: text, markup, annotated - select for diffs
Sat Oct 27 11:36:35 2007 UTC (17 years, 6 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.138.2.4: preferred, colored
Changes since revision 1.138.2.4: +3 -1
lines
sync with head.
Revision 1.170.6.1: download - view: text, markup, annotated - select for diffs
Fri Oct 26 15:49:22 2007 UTC (17 years, 6 months ago) by joerg
Branches: jmcneill-pm
Diff to: previous 1.170: preferred, colored; next MAIN 1.171: preferred, colored
Changes since revision 1.170: +3 -1
lines
Sync with HEAD.
Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
Revision 1.168.4.3: download - view: text, markup, annotated - select for diffs
Tue Oct 23 20:17:26 2007 UTC (17 years, 6 months ago) by ad
Branches: vmlocking
Diff to: previous 1.168.4.2: preferred, colored; branchpoint 1.168: preferred, colored; next MAIN 1.169: preferred, colored
Changes since revision 1.168.4.2: +3 -1
lines
Sync with head.
Revision 1.170.10.1: download - view: text, markup, annotated - select for diffs
Thu Oct 18 08:33:16 2007 UTC (17 years, 6 months ago) by yamt
Branches: yamt-x86pmap
Diff to: previous 1.170: preferred, colored; next MAIN 1.171: preferred, colored
Changes since revision 1.170: +3 -1
lines
sync with head.
Revision 1.171: download - view: text, markup, annotated - select for diffs
Mon Oct 15 14:12:54 2007 UTC (17 years, 6 months ago) by ad
Branches: MAIN
CVS tags: yamt-x86pmap-base4,
yamt-kmem-base,
vmlocking2-base2,
vmlocking2-base1,
vmlocking-nbase,
reinoud-bufcleanup-nbase,
reinoud-bufcleanup-base,
jmcneill-pm-base,
jmcneill-base,
bouyer-xenamd64-base2,
bouyer-xenamd64-base,
bouyer-xenamd64
Branch point for: yamt-kmem,
vmlocking2,
mjf-devfs
Diff to: previous 1.170: preferred, colored
Changes since revision 1.170: +3 -1
lines
Add _SC_NPROCESSORS_ONLN and _SC_NPROCESSORS_CONF for sysconf(). These
are extensions but are provided by many Unix systems.
Revision 1.138.2.4: download - view: text, markup, annotated - select for diffs
Mon Sep 3 14:46:40 2007 UTC (17 years, 7 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.138.2.3: preferred, colored
Changes since revision 1.138.2.3: +10 -3
lines
sync with head.
Revision 1.169.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 11 20:12:37 2007 UTC (17 years, 9 months ago) by mjf
Branches: mjf-ufs-trans
Diff to: previous 1.169: preferred, colored; next MAIN 1.170: preferred, colored
Changes since revision 1.169: +8 -3
lines
Sync with head.
Revision 1.168.4.2: download - view: text, markup, annotated - select for diffs
Fri Jun 8 14:18:14 2007 UTC (17 years, 10 months ago) by ad
Branches: vmlocking
Diff to: previous 1.168.4.1: preferred, colored; branchpoint 1.168: preferred, colored
Changes since revision 1.168.4.1: +8 -3
lines
Sync with head.
Revision 1.170: download - view: text, markup, annotated - select for diffs
Thu May 17 14:51:43 2007 UTC (17 years, 11 months ago) by yamt
Branches: MAIN
CVS tags: yamt-x86pmap-base3,
yamt-x86pmap-base2,
yamt-x86pmap-base,
vmlocking-base,
nick-csl-alignment-base5,
nick-csl-alignment-base,
nick-csl-alignment,
mjf-ufs-trans-base,
matt-mips64-base,
matt-mips64,
hpcarm-cleanup
Branch point for: yamt-x86pmap,
matt-armv6,
jmcneill-pm
Diff to: previous 1.169: preferred, colored
Changes since revision 1.169: +8 -3
lines
merge yamt-idlelwp branch. asked by core@. some ports still needs work.
from doc/BRANCHES:
idle lwp, and some changes depending on it.
1. separate context switching and thread scheduling.
(cf. gmcgarry_ctxsw)
2. implement idle lwp.
3. clean up related MD/MI interfaces.
4. make scheduler(s) modular.
Revision 1.166.2.5: download - view: text, markup, annotated - select for diffs
Mon Apr 30 16:38:37 2007 UTC (17 years, 11 months ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.166.2.4: preferred, colored; branchpoint 1.166: preferred, colored; next MAIN 1.167: preferred, colored
Changes since revision 1.166.2.4: +1 -2
lines
- Remove KERN_SCHED, do not break KERN_MAXID and use dynamic node creation,
since we are moving to dynamic sysctl anyway - note by <mrg>.
- Remove sched_slept() hook - we are not going to use it.
Revision 1.166.2.4: download - view: text, markup, annotated - select for diffs
Sat Apr 21 15:50:22 2007 UTC (18 years ago) by ad
Branches: yamt-idlelwp
Diff to: previous 1.166.2.3: preferred, colored; branchpoint 1.166: preferred, colored
Changes since revision 1.166.2.3: +6 -1
lines
Some changes mainly for top/ps:
- Add an optional name field to struct lwp.
- Count the total number of context switches + involuntary,
not voluntary + involuntary.
- Mark the idle threads as LSIDL when not running, otherwise
they show up funny in a top(1) that shows threads.
- Make pctcpu and cpticks per-LWP attributes.
- Add to kinfo_lwp: cpticks, pctcpu, pid, name.
Revision 1.168.4.1: download - view: text, markup, annotated - select for diffs
Tue Mar 13 16:52:06 2007 UTC (18 years, 1 month ago) by ad
Branches: vmlocking
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +3 -1
lines
Sync with head.
Revision 1.166.2.3: download - view: text, markup, annotated - select for diffs
Mon Mar 12 06:00:55 2007 UTC (18 years, 1 month ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.166.2.2: preferred, colored; branchpoint 1.166: preferred, colored
Changes since revision 1.166.2.2: +3 -1
lines
Sync with HEAD.
Revision 1.169: download - view: text, markup, annotated - select for diffs
Sun Mar 11 21:38:38 2007 UTC (18 years, 1 month ago) by ad
Branches: MAIN
CVS tags: yamt-idlelwp-base8,
thorpej-atomic-base,
thorpej-atomic,
reinoud-bufcleanup
Branch point for: mjf-ufs-trans
Diff to: previous 1.168: preferred, colored
Changes since revision 1.168: +3 -1
lines
Add the LWP's runtime to kinfo_lwp.
Revision 1.166.2.2: download - view: text, markup, annotated - select for diffs
Fri Mar 9 15:16:26 2007 UTC (18 years, 1 month ago) by rmind
Branches: yamt-idlelwp
Diff to: previous 1.166.2.1: preferred, colored; branchpoint 1.166: preferred, colored
Changes since revision 1.166.2.1: +4 -3
lines
Checkpoint:
- Addition of scheduler-specific pointers in the struct proc, lwp and
schedstate_percpu.
- Addition of sched_lwp_fork(), sched_lwp_exit() and sched_slept() hooks.
- mi_switch() now has only one argument.
- sched_nextlwp(void) becomes sched_switch(struct lwp *) and does an
enqueueing of LWP.
- Addition of general kern.sched sysctl node.
- Remove twice called uvmexp.swtch++, other cleanups.
Discussed on tech-kern@
Revision 1.166.2.1: download - view: text, markup, annotated - select for diffs
Tue Feb 27 16:55:18 2007 UTC (18 years, 1 month ago) by yamt
Branches: yamt-idlelwp
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +54 -32
lines
- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
Revision 1.138.2.3: download - view: text, markup, annotated - select for diffs
Mon Feb 26 09:12:15 2007 UTC (18 years, 2 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.138.2.2: preferred, colored
Changes since revision 1.138.2.2: +64 -3
lines
sync with head.
Revision 1.168: download - view: text, markup, annotated - select for diffs
Sun Feb 18 15:20:34 2007 UTC (18 years, 2 months ago) by dsl
Branches: MAIN
CVS tags: ad-audiomp-base,
ad-audiomp
Branch point for: vmlocking
Diff to: previous 1.167: preferred, colored
Changes since revision 1.167: +20 -3
lines
The pre-kauth 'struct ucread' and 'struct pcred' are now only used in the
(depracted some time ago) 'struct kinfo_proc' returned by sysctl.
Move the definitions to sys/syctl.h and rename in order to ensure all the
users are located.
Revision 1.167: download - view: text, markup, annotated - select for diffs
Sat Feb 17 22:31:45 2007 UTC (18 years, 2 months ago) by pavel
Branches: MAIN
Diff to: previous 1.166: preferred, colored
Changes since revision 1.166: +35 -30
lines
Change the process/lwp flags seen by userland via sysctl back to the
P_*/L_* naming convention, and rename the in-kernel flags to avoid
conflict. (P_ -> PK_, L_ -> LW_ ). Add back the (now unused) LSDEAD
constant.
Restores source compatibility with pre-newlock2 tools like ps or top.
Reviewed by Andrew Doran.
Revision 1.166: download - view: text, markup, annotated - select for diffs
Fri Feb 9 21:55:37 2007 UTC (18 years, 2 months ago) by ad
Branches: MAIN
CVS tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Diff to: previous 1.165: preferred, colored
Changes since revision 1.165: +40 -1
lines
Merge newlock2 to head.
Revision 1.156.2.4: download - view: text, markup, annotated - select for diffs
Sun Feb 4 14:42:36 2007 UTC (18 years, 2 months ago) by ad
Branches: newlock2
Diff to: previous 1.156.2.3: preferred, colored; branchpoint 1.156: preferred, colored; next MAIN 1.157: preferred, colored
Changes since revision 1.156.2.3: +6 -1
lines
Add a compat flag to match LPR_DETACHED.
Revision 1.156.2.3: download - view: text, markup, annotated - select for diffs
Fri Jan 12 01:04:24 2007 UTC (18 years, 3 months ago) by ad
Branches: newlock2
Diff to: previous 1.156.2.2: preferred, colored; branchpoint 1.156: preferred, colored
Changes since revision 1.156.2.2: +25 -10
lines
Sync with head.
Revision 1.138.2.2: download - view: text, markup, annotated - select for diffs
Sat Dec 30 20:50:56 2006 UTC (18 years, 3 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.138.2.1: preferred, colored
Changes since revision 1.138.2.1: +36 -24
lines
sync with head.
Revision 1.156.2.2: download - view: text, markup, annotated - select for diffs
Fri Dec 29 20:27:45 2006 UTC (18 years, 3 months ago) by ad
Branches: newlock2
Diff to: previous 1.156.2.1: preferred, colored; branchpoint 1.156: preferred, colored
Changes since revision 1.156.2.1: +35 -1
lines
Checkpoint work in progress.
Revision 1.157.2.2: download - view: text, markup, annotated - select for diffs
Sun Dec 10 07:19:29 2006 UTC (18 years, 4 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.157.2.1: preferred, colored; branchpoint 1.157: preferred, colored; next MAIN 1.158: preferred, colored
Changes since revision 1.157.2.1: +38 -22
lines
sync with head.
Revision 1.165: download - view: text, markup, annotated - select for diffs
Sat Nov 25 21:40:06 2006 UTC (18 years, 5 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base5,
yamt-splraiseipl-base4,
yamt-splraiseipl-base3,
wrstuden-fixsa-newbase,
wrstuden-fixsa-base-1,
wrstuden-fixsa-base,
wrstuden-fixsa,
newlock2-nbase,
newlock2-base,
netbsd-4-base,
netbsd-4-0-RELEASE,
netbsd-4-0-RC5,
netbsd-4-0-RC4,
netbsd-4-0-RC3,
netbsd-4-0-RC2,
netbsd-4-0-RC1,
netbsd-4-0-1-RELEASE,
netbsd-4-0,
netbsd-4,
matt-nb4-arm-base,
matt-nb4-arm
Diff to: previous 1.164: preferred, colored
Changes since revision 1.164: +25 -10
lines
PR/34837: Mindaguas: Add SysV SHM dynamic reallocation and locking to the
physical memory
Revision 1.156.2.1: download - view: text, markup, annotated - select for diffs
Sat Nov 18 21:39:47 2006 UTC (18 years, 5 months ago) by ad
Branches: newlock2
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +11 -11
lines
Sync with head.
Revision 1.164: download - view: text, markup, annotated - select for diffs
Thu Nov 16 01:33:51 2006 UTC (18 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.163: preferred, colored
Changes since revision 1.163: +10 -10
lines
__unused removal on arguments; approved by core.
Revision 1.163: download - view: text, markup, annotated - select for diffs
Thu Nov 2 13:28:25 2006 UTC (18 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.162: preferred, colored
Changes since revision 1.162: +3 -1
lines
put back p_ename, lost in the previous commit.
Revision 1.162: download - view: text, markup, annotated - select for diffs
Wed Nov 1 22:27:43 2006 UTC (18 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.161: preferred, colored
Changes since revision 1.161: +3 -6
lines
implement kern.arandom properly, instead of lying about it and only filling
the first 4 bytes of the array with random data.
Revision 1.161: download - view: text, markup, annotated - select for diffs
Sun Oct 29 22:34:07 2006 UTC (18 years, 5 months ago) by christos
Branches: MAIN
Diff to: previous 1.160: preferred, colored
Changes since revision 1.160: +3 -1
lines
add the emulation in kinfo_proc2
Revision 1.157.2.1: download - view: text, markup, annotated - select for diffs
Sun Oct 22 06:07:47 2006 UTC (18 years, 6 months ago) by yamt
Branches: yamt-splraiseipl
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +10 -8
lines
sync with head
Revision 1.160: download - view: text, markup, annotated - select for diffs
Thu Oct 12 01:32:51 2006 UTC (18 years, 6 months ago) by christos
Branches: MAIN
CVS tags: yamt-splraiseipl-base2
Diff to: previous 1.159: preferred, colored
Changes since revision 1.159: +10 -8
lines
- sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
Revision 1.159: download - view: text, markup, annotated - select for diffs
Tue Oct 3 16:07:12 2006 UTC (18 years, 6 months ago) by elad
Branches: MAIN
Diff to: previous 1.158: preferred, colored
Changes since revision 1.158: +1 -4
lines
Back out previous (p_flag2).
In 30 minutes from now Jason Thorpe will come up with an implementation
of a proplib dictionary in struct proc, so adding an int doesn't really
make any sense.
Revision 1.158: download - view: text, markup, annotated - select for diffs
Tue Oct 3 11:23:32 2006 UTC (18 years, 6 months ago) by elad
Branches: MAIN
Diff to: previous 1.157: preferred, colored
Changes since revision 1.157: +4 -1
lines
Until we figure out the Perfect Way of adding flags to processes, add
a p_flag2. No objections on tech-kern@.
Input from simonb@, thanks!
Revision 1.152.2.5: download - view: text, markup, annotated - select for diffs
Thu Sep 14 12:32:00 2006 UTC (18 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.152.2.4: preferred, colored; branchpoint 1.152: preferred, colored; next MAIN 1.153: preferred, colored
Changes since revision 1.152.2.4: +1 -4
lines
sync with head.
Revision 1.147.2.1: download - view: text, markup, annotated - select for diffs
Sat Sep 9 02:59:42 2006 UTC (18 years, 7 months ago) by rpaulo
Branches: rpaulo-netinet-merge-pcb
Diff to: previous 1.147: preferred, colored; next MAIN 1.148: preferred, colored
Changes since revision 1.147: +25 -18
lines
sync with head
Revision 1.157: download - view: text, markup, annotated - select for diffs
Fri Sep 8 20:58:58 2006 UTC (18 years, 7 months ago) by elad
Branches: MAIN
CVS tags: yamt-splraiseipl-base,
yamt-pdpolicy-base9
Branch point for: yamt-splraiseipl
Diff to: previous 1.156: preferred, colored
Changes since revision 1.156: +1 -4
lines
First take at security model abstraction.
- Add a few scopes to the kernel: system, network, and machdep.
- Add a few more actions/sub-actions (requests), and start using them as
opposed to the KAUTH_GENERIC_ISSUSER place-holders.
- Introduce a basic set of listeners that implement our "traditional"
security model, called "bsd44". This is the default (and only) model we
have at the moment.
- Update all relevant documentation.
- Add some code and docs to help folks who want to actually use this stuff:
* There's a sample overlay model, sitting on-top of "bsd44", for
fast experimenting with tweaking just a subset of an existing model.
This is pretty cool because it's *really* straightforward to do stuff
you had to use ugly hacks for until now...
* And of course, documentation describing how to do the above for quick
reference, including code samples.
All of these changes were tested for regressions using a Python-based
testsuite that will be (I hope) available soon via pkgsrc. Information
about the tests, and how to write new ones, can be found on:
http://kauth.linbsd.org/kauthwiki
NOTE FOR DEVELOPERS: *PLEASE* don't add any code that does any of the
following:
- Uses a KAUTH_GENERIC_ISSUSER kauth(9) request,
- Checks 'securelevel' directly,
- Checks a uid/gid directly.
(or if you feel you have to, contact me first)
This is still work in progress; It's far from being done, but now it'll
be a lot easier.
Relevant mailing list threads:
http://mail-index.netbsd.org/tech-security/2006/01/25/0011.html
http://mail-index.netbsd.org/tech-security/2006/03/24/0001.html
http://mail-index.netbsd.org/tech-security/2006/04/18/0000.html
http://mail-index.netbsd.org/tech-security/2006/05/15/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/01/0000.html
http://mail-index.netbsd.org/tech-security/2006/08/25/0000.html
Many thanks to YAMAMOTO Takashi, Matt Thomas, and Christos Zoulas for help
stablizing kauth(9).
Full credit for the regression tests, making sure these changes didn't break
anything, goes to Matt Fleming and Jaime Fournier.
Happy birthday Randi! :)
Revision 1.152.2.4: download - view: text, markup, annotated - select for diffs
Sun Sep 3 15:25:56 2006 UTC (18 years, 7 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.152.2.3: preferred, colored; branchpoint 1.152: preferred, colored
Changes since revision 1.152.2.3: +1 -4
lines
sync with head.
Revision 1.156: download - view: text, markup, annotated - select for diffs
Thu Aug 17 17:11:29 2006 UTC (18 years, 8 months ago) by christos
Branches: MAIN
CVS tags: yamt-pdpolicy-base8,
rpaulo-netinet-merge-pcb-base
Branch point for: newlock2
Diff to: previous 1.155: preferred, colored
Changes since revision 1.155: +1 -4
lines
Fix all the -D*DEBUG* code that it was rotting away and did not even compile.
Mostly from Arnaud Lacombe, many thanks!
Revision 1.152.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 11 15:47:26 2006 UTC (18 years, 8 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.152.2.2: preferred, colored; branchpoint 1.152: preferred, colored
Changes since revision 1.152.2.2: +3 -3
lines
sync with head
Revision 1.155: download - view: text, markup, annotated - select for diffs
Sun Jul 30 17:38:19 2006 UTC (18 years, 8 months ago) by elad
Branches: MAIN
CVS tags: yamt-pdpolicy-base7,
abandoned-netbsd-4-base,
abandoned-netbsd-4
Diff to: previous 1.154: preferred, colored
Changes since revision 1.154: +3 -3
lines
ugh.. more stuff that's overdue and should not be in 4.0: remove the
sysctl(9) flags CTLFLAG_READONLY[12]. luckily they're not documented
so it's only half regression.
only two knobs used them; proc.curproc.corename (check added in the
existing handler; its CTLFLAG_ANYWRITE, yay) and net.inet.ip.forwsrcrt,
that got its own handler now too.
Revision 1.138.2.1: download - view: text, markup, annotated - select for diffs
Wed Jun 21 15:12:04 2006 UTC (18 years, 10 months ago) by yamt
Branches: yamt-lazymbuf
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +119 -98
lines
sync with head.
Revision 1.152.6.2: download - view: text, markup, annotated - select for diffs
Wed May 24 15:50:47 2006 UTC (18 years, 11 months ago) by tron
Branches: peter-altq
Diff to: previous 1.152.6.1: preferred, colored; branchpoint 1.152: preferred, colored; next MAIN 1.153: preferred, colored
Changes since revision 1.152.6.1: +6 -9
lines
Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
Revision 1.152.2.2: download - view: text, markup, annotated - select for diffs
Wed May 24 10:59:21 2006 UTC (18 years, 11 months ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.152.2.1: preferred, colored; branchpoint 1.152: preferred, colored
Changes since revision 1.152.2.1: +6 -9
lines
sync with head.
Revision 1.148.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 22 11:40:21 2006 UTC (19 years ago) by simonb
Branches: simonb-timecounters
CVS tags: simonb-timcounters-final
Diff to: previous 1.148: preferred, colored; next MAIN 1.149: preferred, colored
Changes since revision 1.148: +23 -18
lines
Sync with head.
Revision 1.152.4.1: download - view: text, markup, annotated - select for diffs
Wed Apr 19 04:36:02 2006 UTC (19 years ago) by elad
Branches: elad-kernelauth
Diff to: previous 1.152: preferred, colored; next MAIN 1.153: preferred, colored
Changes since revision 1.152: +18 -10
lines
sync with head.
Revision 1.154: download - view: text, markup, annotated - select for diffs
Fri Apr 14 13:09:07 2006 UTC (19 years ago) by blymn
Branches: MAIN
CVS tags: yamt-pdpolicy-base6,
yamt-pdpolicy-base5,
simonb-timecounters-base,
gdamore-uart-base,
gdamore-uart,
elad-kernelauth-base,
chap-midi-nbase,
chap-midi-base,
chap-midi
Diff to: previous 1.153: preferred, colored
Changes since revision 1.153: +6 -9
lines
Make i/o statistics collection more generic, include tape drives and
nfs mounts in the set of devices that statistics will be reported on.
Revision 1.152.2.1: download - view: text, markup, annotated - select for diffs
Sat Apr 1 12:07:51 2006 UTC (19 years ago) by yamt
Branches: yamt-pdpolicy
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +13 -2
lines
sync with head.
Revision 1.152.6.1: download - view: text, markup, annotated - select for diffs
Tue Mar 28 09:42:29 2006 UTC (19 years, 1 month ago) by tron
Branches: peter-altq
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +13 -2
lines
Merge 2006-03-28 NetBSD-current into the "peter-altq" branch.
Revision 1.153: download - view: text, markup, annotated - select for diffs
Fri Mar 17 08:50:36 2006 UTC (19 years, 1 month ago) by kleink
Branches: MAIN
CVS tags: yamt-pdpolicy-base4,
yamt-pdpolicy-base3
Diff to: previous 1.152: preferred, colored
Changes since revision 1.152: +13 -2
lines
Move struct clockinfo (KERN_CLOCKRATE sysctl) from <sys/time.h> to
<sys/sysctl.h>.
Revision 1.145.2.3: download - view: text, markup, annotated - select for diffs
Wed Mar 1 09:28:51 2006 UTC (19 years, 1 month ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.145.2.2: preferred, colored; next MAIN 1.146: preferred, colored
Changes since revision 1.145.2.2: +3 -3
lines
sync with head.
Revision 1.152: download - view: text, markup, annotated - select for diffs
Sat Feb 25 00:58:36 2006 UTC (19 years, 2 months ago) by wiz
Branches: MAIN
CVS tags: yamt-uio_vmspace-base5,
yamt-pdpolicy-base2,
yamt-pdpolicy-base,
peter-altq-base
Branch point for: yamt-pdpolicy,
peter-altq,
elad-kernelauth
Diff to: previous 1.151: preferred, colored
Changes since revision 1.151: +2 -2
lines
Fix typos, reported by Alexey Dobriyan ("Gathered from Linux"),
forwarded by jmc@openbsd.
Revision 1.151: download - view: text, markup, annotated - select for diffs
Fri Feb 24 19:33:09 2006 UTC (19 years, 2 months ago) by drochner
Branches: MAIN
Diff to: previous 1.150: preferred, colored
Changes since revision 1.150: +2 -2
lines
complete constification of the sysctl() user side
Revision 1.145.2.2: download - view: text, markup, annotated - select for diffs
Sat Feb 18 15:39:23 2006 UTC (19 years, 2 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.145.2.1: preferred, colored
Changes since revision 1.145.2.1: +4 -2
lines
sync with head.
Revision 1.150: download - view: text, markup, annotated - select for diffs
Thu Feb 9 19:18:57 2006 UTC (19 years, 2 months ago) by manu
Branches: MAIN
Diff to: previous 1.149: preferred, colored
Changes since revision 1.149: +4 -2
lines
Add initial (but unfinished) COMPAT_LINUX32 for amd64. This is good enough so
that the i386 license manager part of amd64 version of Fluent works.
While I'm here, add SysV IPC to COMPAT_LINUX/amd64
Revision 1.149: download - view: text, markup, annotated - select for diffs
Sat Feb 4 16:11:36 2006 UTC (19 years, 2 months ago) by elad
Branches: MAIN
Diff to: previous 1.148: preferred, colored
Changes since revision 1.148: +1 -6
lines
move setid core externs near defcorename, as requested by yamt@.
Revision 1.148: download - view: text, markup, annotated - select for diffs
Thu Feb 2 17:48:51 2006 UTC (19 years, 2 months ago) by elad
Branches: MAIN
Branch point for: simonb-timecounters
Diff to: previous 1.147: preferred, colored
Changes since revision 1.147: +6 -1
lines
implement a security.setid_core node as discussed on tech-kern@ and
tech-security@.
Revision 1.145.2.1: download - view: text, markup, annotated - select for diffs
Wed Feb 1 14:52:48 2006 UTC (19 years, 2 months ago) by yamt
Branches: yamt-uio_vmspace
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +10 -21
lines
sync with head.
Revision 1.147: download - view: text, markup, annotated - select for diffs
Fri Jan 27 03:14:56 2006 UTC (19 years, 3 months ago) by elad
Branches: MAIN
Branch point for: rpaulo-netinet-merge-pcb
Diff to: previous 1.146: preferred, colored
Changes since revision 1.146: +4 -15
lines
remove security node sysctl objects; they are now created using CTL_CREATE.
Revision 1.146: download - view: text, markup, annotated - select for diffs
Fri Jan 20 23:36:44 2006 UTC (19 years, 3 months ago) by uwe
Branches: MAIN
Diff to: previous 1.145: preferred, colored
Changes since revision 1.145: +7 -7
lines
Fix the sense of #else/#endif comments.
Revision 1.145: download - view: text, markup, annotated - select for diffs
Wed Dec 28 19:09:30 2005 UTC (19 years, 3 months ago) by perry
Branches: MAIN
Branch point for: yamt-uio_vmspace
Diff to: previous 1.144: preferred, colored
Changes since revision 1.144: +2 -2
lines
inline -> __inline
Revision 1.144: download - view: text, markup, annotated - select for diffs
Mon Dec 26 18:41:36 2005 UTC (19 years, 4 months ago) by perry
Branches: MAIN
Diff to: previous 1.143: preferred, colored
Changes since revision 1.143: +81 -81
lines
u_intN_t -> uintN_t
Revision 1.143: download - view: text, markup, annotated - select for diffs
Sat Dec 24 19:01:28 2005 UTC (19 years, 4 months ago) by perry
Branches: MAIN
Diff to: previous 1.142: preferred, colored
Changes since revision 1.142: +2 -2
lines
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
Revision 1.142: download - view: text, markup, annotated - select for diffs
Sun Dec 11 12:25:21 2005 UTC (19 years, 4 months ago) by christos
Branches: MAIN
Diff to: previous 1.141: preferred, colored
Changes since revision 1.141: +1 -1
lines
merge ktrace-lwp.
Revision 1.95.2.9: download - view: text, markup, annotated - select for diffs
Thu Nov 10 14:12:13 2005 UTC (19 years, 5 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.95.2.8: preferred, colored; next MAIN 1.96: preferred, colored
Changes since revision 1.95.2.8: +43 -23
lines
Sync with HEAD. Here we go again...
Revision 1.141: download - view: text, markup, annotated - select for diffs
Wed Sep 7 16:26:16 2005 UTC (19 years, 7 months ago) by elad
Branches: MAIN
CVS tags: yamt-vop-base3,
yamt-vop-base2,
yamt-vop-base,
yamt-vop,
yamt-readahead-pervnode,
yamt-readahead-perfile,
yamt-readahead-base3,
yamt-readahead-base2,
yamt-readahead-base,
yamt-readahead,
thorpej-vnode-attr-base,
thorpej-vnode-attr,
ktrace-lwp-base
Diff to: previous 1.140: preferred, colored
Changes since revision 1.140: +18 -2
lines
Introduce ``security.curtain'', new node for security features and
settings, and new variable for controlling access to objects based
on user-id.
Revision 1.140: download - view: text, markup, annotated - select for diffs
Tue Sep 6 02:36:17 2005 UTC (19 years, 7 months ago) by rpaulo
Branches: MAIN
Diff to: previous 1.139: preferred, colored
Changes since revision 1.139: +4 -2
lines
Implement kern.hardclock_ticks.
Revision 1.139: download - view: text, markup, annotated - select for diffs
Sun Aug 7 12:30:01 2005 UTC (19 years, 8 months ago) by blymn
Branches: MAIN
Diff to: previous 1.138: preferred, colored
Changes since revision 1.138: +6 -2
lines
Add in tape statistics gathering definitions, add tape.h as a file
to be installed.
Revision 1.138: download - view: text, markup, annotated - select for diffs
Mon Jun 20 02:49:19 2005 UTC (19 years, 10 months ago) by atatat
Branches: MAIN
Branch point for: yamt-lazymbuf
Diff to: previous 1.137: preferred, colored
Changes since revision 1.137: +11 -17
lines
Change the rest of the sysctl subsystem to use const consistently.
The __UNCONST macro is now used only where necessary and the RW macros
are gone. Most of the changes here are consumers of the
sysctl_createv(9) interface that now takes a pair of const pointers
which used not to be.
Revision 1.137: download - view: text, markup, annotated - select for diffs
Thu Jun 16 14:55:58 2005 UTC (19 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.136: preferred, colored
Changes since revision 1.136: +4 -2
lines
Add a new sysctl 'cp_id' that returns the array of cpu id values. Requested by
me, implemented by atatat.
Revision 1.133.2.1: download - view: text, markup, annotated - select for diffs
Fri Jun 10 15:10:51 2005 UTC (19 years, 10 months ago) by tron
Branches: netbsd-3
CVS tags: netbsd-3-1-RELEASE,
netbsd-3-1-RC4,
netbsd-3-1-RC3,
netbsd-3-1-RC2,
netbsd-3-1-RC1,
netbsd-3-1-1-RELEASE,
netbsd-3-1,
netbsd-3-0-RELEASE,
netbsd-3-0-RC6,
netbsd-3-0-RC5,
netbsd-3-0-RC4,
netbsd-3-0-RC3,
netbsd-3-0-RC2,
netbsd-3-0-RC1,
netbsd-3-0-3-RELEASE,
netbsd-3-0-2-RELEASE,
netbsd-3-0-1-RELEASE,
netbsd-3-0
Diff to: previous 1.133: preferred, colored; next MAIN 1.134: preferred, colored
Changes since revision 1.133: +4 -2
lines
Pull up revision 1.134 (requested by elad in ticket #389):
Some changes in veriexec.
New features:
- Add a veriexec_report() routine to make most reporting consistent and
remove some common code.
- Add 'strict' mode that controls how veriexec behaves.
- Add sysctl knobs:
o kern.veriexec.verbose controls verbosity levels. Value: 0, 1.
o kern.veriexec.strict controls strict level. Values: 0, 1, 2. See
documentation in sysctl(3) for details.
o kern.veriexec.algorithms returns a string with a space separated
list of supported hashing algorithms in veriexec.
- Updated documentation in man pages for sysctl(3) and sysctl(8).
Bug fixes:
- veriexec_removechk(): Code cleanup + handle FINGERPRINT_NOTEVAL
correctly.
- exec_script(): Don't pass 0 as flag when executing a script; use the
defined VERIEXEC_INDIRECT - which is 1. Makes indirect execution
enforcement work.
- Fix some printing formats and types..
Revision 1.136: download - view: text, markup, annotated - select for diffs
Thu Jun 9 02:19:59 2005 UTC (19 years, 10 months ago) by atatat
Branches: MAIN
Diff to: previous 1.135: preferred, colored
Changes since revision 1.135: +2 -2
lines
Properly fix the constipated lossage wrt -Wcast-qual and the sysctl
code. I know it's not the prettiest code, but it seems to work rather
well in spite of itself.
Revision 1.135: download - view: text, markup, annotated - select for diffs
Sun May 29 21:19:41 2005 UTC (19 years, 10 months ago) by christos
Branches: MAIN
Diff to: previous 1.134: preferred, colored
Changes since revision 1.134: +4 -4
lines
Sprinkle const.
Revision 1.134: download - view: text, markup, annotated - select for diffs
Thu May 19 20:16:19 2005 UTC (19 years, 11 months ago) by elad
Branches: MAIN
Diff to: previous 1.133: preferred, colored
Changes since revision 1.133: +4 -2
lines
Some changes in veriexec.
New features:
- Add a veriexec_report() routine to make most reporting consistent and
remove some common code.
- Add 'strict' mode that controls how veriexec behaves.
- Add sysctl knobs:
o kern.veriexec.verbose controls verbosity levels. Value: 0, 1.
o kern.veriexec.strict controls strict level. Values: 0, 1, 2. See
documentation in sysctl(3) for details.
o kern.veriexec.algorithms returns a string with a space separated
list of supported hashing algorithms in veriexec.
- Updated documentation in man pages for sysctl(3) and sysctl(8).
Bug fixes:
- veriexec_removechk(): Code cleanup + handle FINGERPRINT_NOTEVAL
correctly.
- exec_script(): Don't pass 0 as flag when executing a script; use the
defined VERIEXEC_INDIRECT - which is 1. Makes indirect execution
enforcement work.
- Fix some printing formats and types..
Revision 1.127.4.1: download - view: text, markup, annotated - select for diffs
Fri Apr 29 11:29:38 2005 UTC (19 years, 11 months ago) by kent
Branches: kent-audio2
Diff to: previous 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127: +54 -7
lines
sync with -current
Revision 1.95.2.8: download - view: text, markup, annotated - select for diffs
Fri Apr 1 14:32:11 2005 UTC (20 years ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.95.2.7: preferred, colored
Changes since revision 1.95.2.7: +46 -2
lines
Sync with HEAD.
Revision 1.127.6.2: download - view: text, markup, annotated - select for diffs
Sat Mar 19 08:36:52 2005 UTC (20 years, 1 month ago) by yamt
Branches: yamt-km
Diff to: previous 1.127.6.1: preferred, colored; branchpoint 1.127: preferred, colored; next MAIN 1.128: preferred, colored
Changes since revision 1.127.6.1: +49 -2
lines
sync with head. xen and whitespace. xen part is not finished.
Revision 1.133: download - view: text, markup, annotated - select for diffs
Fri Mar 11 06:16:16 2005 UTC (20 years, 1 month ago) by atatat
Branches: MAIN
CVS tags: yamt-km-base4,
yamt-km-base3,
netbsd-3-base,
kent-audio2-base
Branch point for: netbsd-3
Diff to: previous 1.132: preferred, colored
Changes since revision 1.132: +2 -2
lines
Revert the change that made kern.file2 and net.*.*.pcblist into nodes
instead of structs. It had other deleterious side-effects that are
rather nasty. Another solution must be found.
Revision 1.132: download - view: text, markup, annotated - select for diffs
Thu Mar 10 05:43:33 2005 UTC (20 years, 1 month ago) by atatat
Branches: MAIN
Diff to: previous 1.131: preferred, colored
Changes since revision 1.131: +2 -2
lines
Change types of kern.file2 and net.*.*.pcblist to NODE
Revision 1.131: download - view: text, markup, annotated - select for diffs
Thu Mar 10 05:41:19 2005 UTC (20 years, 1 month ago) by atatat
Branches: MAIN
Diff to: previous 1.130: preferred, colored
Changes since revision 1.130: +1 -2
lines
Forgot to remove ki_ocomm from kinfo_file2 before adding it. Sorry.
Revision 1.130: download - view: text, markup, annotated - select for diffs
Wed Mar 9 05:02:17 2005 UTC (20 years, 1 month ago) by atatat
Branches: MAIN
Diff to: previous 1.129: preferred, colored
Changes since revision 1.129: +47 -2
lines
Add kern.file2. As kern.proc2 is to kern.proc, so is kern.file2 to
kern.file, namely a 32/64 bit clean sysctl interface to the same data.
It also borrows a few things from struct vnode (if applicable) and
from struct proc, just to tie things together a bit more.
You can walk this list "by file" or "by pid". The former method is
similar to kern.file but omits the filehead, and the latter can give
you duplicates if multiple processes have the same struct file open,
but tells you which process it is.
Revision 1.95.2.7: download - view: text, markup, annotated - select for diffs
Fri Mar 4 16:54:23 2005 UTC (20 years, 1 month ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.95.2.6: preferred, colored
Changes since revision 1.95.2.6: +4 -1
lines
Sync with HEAD.
Hi Perry!
Revision 1.129: download - view: text, markup, annotated - select for diffs
Sun Feb 20 19:43:46 2005 UTC (20 years, 2 months ago) by heas
Branches: MAIN
Diff to: previous 1.128: preferred, colored
Changes since revision 1.128: +4 -1
lines
Expose sysctl_root node to kernel sources. It will be used by FreeBSD sysctl
emulation.
Revision 1.127.6.1: download - view: text, markup, annotated - select for diffs
Sat Feb 12 18:17:56 2005 UTC (20 years, 2 months ago) by yamt
Branches: yamt-km
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +6 -6
lines
sync with head.
Revision 1.95.2.6: download - view: text, markup, annotated - select for diffs
Fri Feb 4 11:48:06 2005 UTC (20 years, 2 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.95.2.5: preferred, colored
Changes since revision 1.95.2.5: +6 -6
lines
Sync with HEAD.
Revision 1.128: download - view: text, markup, annotated - select for diffs
Thu Feb 3 19:20:02 2005 UTC (20 years, 2 months ago) by perry
Branches: MAIN
CVS tags: yamt-km-base2
Diff to: previous 1.127: preferred, colored
Changes since revision 1.127: +6 -6
lines
de-__P
Revision 1.95.2.5: download - view: text, markup, annotated - select for diffs
Tue Sep 21 13:38:50 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.95.2.4: preferred, colored
Changes since revision 1.95.2.4: +1 -1
lines
Fix the sync with head I botched.
Revision 1.95.2.4: download - view: text, markup, annotated - select for diffs
Sat Sep 18 14:56:31 2004 UTC (20 years, 7 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.95.2.3: preferred, colored
Changes since revision 1.95.2.3: +1 -1
lines
Sync with HEAD.
Revision 1.95.2.3: download - view: text, markup, annotated - select for diffs
Thu Aug 12 11:42:23 2004 UTC (20 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.95.2.2: preferred, colored
Changes since revision 1.95.2.2: +2 -2
lines
Sync with HEAD.
Revision 1.127: download - view: text, markup, annotated - select for diffs
Mon Aug 9 08:35:23 2004 UTC (20 years, 8 months ago) by yamt
Branches: MAIN
CVS tags: yamt-km-base,
kent-audio1-beforemerge,
kent-audio1-base,
kent-audio1
Branch point for: yamt-km,
kent-audio2
Diff to: previous 1.126: preferred, colored
Changes since revision 1.126: +2 -2
lines
#if SYSCTL_INCLUDE_DESCR -> #ifdef SYSCTL_INCLUDE_DESCR
Revision 1.95.2.2: download - view: text, markup, annotated - select for diffs
Tue Aug 3 10:56:31 2004 UTC (20 years, 8 months ago) by skrll
Branches: ktrace-lwp
Diff to: previous 1.95.2.1: preferred, colored
Changes since revision 1.95.2.1: +413 -54
lines
Sync with HEAD
Revision 1.126: download - view: text, markup, annotated - select for diffs
Tue Jul 27 22:01:56 2004 UTC (20 years, 9 months ago) by manu
Branches: MAIN
Diff to: previous 1.125: preferred, colored
Changes since revision 1.125: +4 -2
lines
Add the emul.mach.exception.hang sysctl, which helps catching programs
that die before they disapear. This is usefull because we cannot start
Mach-O binaries under gdb. We attach the hung process instead.
Revision 1.116.2.8: download - view: text, markup, annotated - select for diffs
Sun May 23 10:45:52 2004 UTC (20 years, 11 months ago) by tron
Branches: netbsd-2-0
CVS tags: netbsd-2-base,
netbsd-2-1-RELEASE,
netbsd-2-1-RC6,
netbsd-2-1-RC5,
netbsd-2-1-RC4,
netbsd-2-1-RC3,
netbsd-2-1-RC2,
netbsd-2-1-RC1,
netbsd-2-1,
netbsd-2-0-RELEASE,
netbsd-2-0-RC5,
netbsd-2-0-RC4,
netbsd-2-0-RC3,
netbsd-2-0-RC2,
netbsd-2-0-RC1,
netbsd-2-0-3-RELEASE,
netbsd-2-0-2-RELEASE,
netbsd-2-0-1-RELEASE,
netbsd-2
Diff to: previous 1.116.2.7: preferred, colored; branchpoint 1.116: preferred, colored; next MAIN 1.117: preferred, colored
Changes since revision 1.116.2.7: +24 -1
lines
Pull up revision 1.125 (requested by atatat in ticket #374):
Tweak sysctl setup functions (the macros, actually) for use in lkms,
and tweak lkminit_*.c (where applicable) to call them, and to call
sysctl_teardown() when being unloaded.
This consists of (1) making setup functions not be static when being
compiled as lkms (change to sys/sysctl.h), (2) making prototypes
visible for the various setup functions in header files (changes to
various header files), and (3) making simple "load" and "unload"
functions in the actual lkminit stuff.
linux_sysctl.c also needs its root exposed (ie, made not static) for
this (when built as an lkm).
Revision 1.125: download - view: text, markup, annotated - select for diffs
Thu May 20 06:34:32 2004 UTC (20 years, 11 months ago) by atatat
Branches: MAIN
Diff to: previous 1.124: preferred, colored
Changes since revision 1.124: +24 -1
lines
Tweak sysctl setup functions (the macros, actually) for use in lkms,
and tweak lkminit_*.c (where applicable) to call them, and to call
sysctl_teardown() when being unloaded.
This consists of (1) making setup functions not be static when being
compiled as lkms (change to sys/sysctl.h), (2) making prototypes
visible for the various setup functions in header files (changes to
various header files), and (3) making simple "load" and "unload"
functions in the actual lkminit stuff.
linux_sysctl.c also needs its root exposed (ie, made not static) for
this (when built as an lkm).
Revision 1.116.2.7: download - view: text, markup, annotated - select for diffs
Wed Apr 28 05:32:19 2004 UTC (21 years ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.116.2.6: preferred, colored; branchpoint 1.116: preferred, colored
Changes since revision 1.116.2.6: +2 -31
lines
Pullup rev 1.124 (requested by atatat in ticket #193)
Remove dynamic sysctl node version 0 from the tree.
Revision 1.116.2.6: download - view: text, markup, annotated - select for diffs
Mon Apr 26 19:46:10 2004 UTC (21 years ago) by jdc
Branches: netbsd-2-0
Diff to: previous 1.116.2.5: preferred, colored; branchpoint 1.116: preferred, colored
Changes since revision 1.116.2.5: +3 -3
lines
Pull up revision 1.123 (requested by atatat in ticket #180)
Missing parens get cast wrong. Grr.
Revision 1.124: download - view: text, markup, annotated - select for diffs
Sun Apr 25 05:47:53 2004 UTC (21 years ago) by atatat
Branches: MAIN
Diff to: previous 1.123: preferred, colored
Changes since revision 1.123: +2 -31
lines
Remove dynamic sysctl node version 0 from the tree. It seemed okay at
first, but quickly showed its shortcomings. The version 1 node we're
now using should be good for a while.
Revision 1.123: download - view: text, markup, annotated - select for diffs
Fri Apr 23 12:02:43 2004 UTC (21 years ago) by atatat
Branches: MAIN
Diff to: previous 1.122: preferred, colored
Changes since revision 1.122: +3 -3
lines
Missing parens get cast wrong. Grr.
Revision 1.116.2.5: download - view: text, markup, annotated - select for diffs
Thu Apr 22 07:50:48 2004 UTC (21 years ago) by tron
Branches: netbsd-2-0
Diff to: previous 1.116.2.4: preferred, colored; branchpoint 1.116: preferred, colored
Changes since revision 1.116.2.4: +4 -4
lines
Pull up revision 1.122 (requested by atatat in ticket #173):
Move a type cast (wrt description handling) and do a little lint
cleaning.
Revision 1.122: download - view: text, markup, annotated - select for diffs
Thu Apr 22 03:32:11 2004 UTC (21 years ago) by atatat
Branches: MAIN
Diff to: previous 1.121: preferred, colored
Changes since revision 1.121: +4 -4
lines
Move a type cast (wrt description handling) and do a little lint
cleaning.
Revision 1.121: download - view: text, markup, annotated - select for diffs
Sat Apr 17 15:17:33 2004 UTC (21 years ago) by christos
Branches: MAIN
Diff to: previous 1.120: preferred, colored
Changes since revision 1.120: +4 -2
lines
PR/9347: Eric E. Fair: socket buffer pool exhaustion leads to system deadlock
and unkillable processes.
1. Introduce new SBSIZE resource limit from FreeBSD to limit socket buffer
size resource.
2. make sokvareserve interruptible, so processes ltsleeping on it can be
killed.
Revision 1.116.2.4: download - view: text, markup, annotated - select for diffs
Fri Apr 9 20:14:31 2004 UTC (21 years ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.116.2.3: preferred, colored; branchpoint 1.116: preferred, colored
Changes since revision 1.116.2.3: +4 -4
lines
Pullup rev 1.120 (requested by atatat in ticket #109)
s/SYSCTL_USE_DESCR/SYSCTL_INCLUDE_DESCR/g since the latter name seems
more popular. Or at least, less unpopular.
Revision 1.120: download - view: text, markup, annotated - select for diffs
Fri Apr 9 19:01:38 2004 UTC (21 years ago) by atatat
Branches: MAIN
Diff to: previous 1.119: preferred, colored
Changes since revision 1.119: +4 -4
lines
s/SYSCTL_USE_DESCR/SYSCTL_INCLUDE_DESCR/g since the latter name seems
more popular. Or at least, less unpopular.
Revision 1.116.2.3: download - view: text, markup, annotated - select for diffs
Fri Apr 9 18:34:08 2004 UTC (21 years ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.116.2.2: preferred, colored; branchpoint 1.116: preferred, colored
Changes since revision 1.116.2.2: +5 -5
lines
Pullup rev 1.119 (requested by atatat in ticket #107)
Invert the meaning of SYSCTL_NO_DESCR by calling it SYSCTL_USE_DESCR
instead. This makes it an option to include the descriptions, as
opposed to an option to *exclude* them.
Revision 1.119: download - view: text, markup, annotated - select for diffs
Fri Apr 9 18:13:36 2004 UTC (21 years ago) by atatat
Branches: MAIN
Diff to: previous 1.118: preferred, colored
Changes since revision 1.118: +5 -5
lines
Invert the meaning of SYSCTL_NO_DESCR by calling it SYSCTL_USE_DESCR
instead. This makes it an option to include the descriptions, as
opposed to an option to *exclude* them.
Revision 1.116.2.2: download - view: text, markup, annotated - select for diffs
Fri Apr 9 16:10:54 2004 UTC (21 years ago) by jmc
Branches: netbsd-2-0
Diff to: previous 1.116.2.1: preferred, colored; branchpoint 1.116: preferred, colored
Changes since revision 1.116.2.1: +2 -2
lines
Pullup rev 1.118 (requested by atatat in ticket #105)
Standalone programs should not use stddef.h. They are more like the
kernel, so they must use sys/systm.h instead.
Revision 1.118: download - view: text, markup, annotated - select for diffs
Fri Apr 9 15:43:19 2004 UTC (21 years ago) by atatat
Branches: MAIN
Diff to: previous 1.117: preferred, colored
Changes since revision 1.117: +2 -2
lines
Standalone programs should not use stddef.h. They are more like the
kernel, so they must use sys/systm.h instead.
Revision 1.116.2.1: download - view: text, markup, annotated - select for diffs
Thu Apr 8 19:32:47 2004 UTC (21 years ago) by jdc
Branches: netbsd-2-0
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +13 -2
lines
Pull up revision 1.117 (requested by atatat in ticket #87)
Include new opt_sysctl.h here, and use SYSCTL_NO_DESCR for eliminating
properly declared descriptions.
Revision 1.117: download - view: text, markup, annotated - select for diffs
Thu Apr 8 03:57:48 2004 UTC (21 years ago) by atatat
Branches: MAIN
Diff to: previous 1.116: preferred, colored
Changes since revision 1.116: +13 -2
lines
Include new opt_sysctl.h here, and use SYSCTL_NO_DESCR for eliminating
properly declared descriptions.
Revision 1.116: download - view: text, markup, annotated - select for diffs
Fri Mar 26 22:54:42 2004 UTC (21 years, 1 month ago) by he
Branches: MAIN
CVS tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Diff to: previous 1.115: preferred, colored
Changes since revision 1.115: +8 -1
lines
Introduce sysc_init_field() and use it to make the code a little less ugly.
Also, fix another gcc2-unfriendly initialization.
Revision 1.115: download - view: text, markup, annotated - select for diffs
Thu Mar 25 19:36:26 2004 UTC (21 years, 1 month ago) by atatat
Branches: MAIN
Diff to: previous 1.114: preferred, colored
Changes since revision 1.114: +5 -1
lines
Move sysctlbyname(), sysctlnametomib(), and sysctlgetmibinfo() from
sysctl(8) into libc, making the minor number jump. Add prototypes to
sys/sysctl.h, fix sets, modify man pages, etc. That oughta cover it.
Revision 1.114: download - view: text, markup, annotated - select for diffs
Thu Mar 25 00:23:49 2004 UTC (21 years, 1 month ago) by atatat
Branches: MAIN
Diff to: previous 1.113: preferred, colored
Changes since revision 1.113: +2 -2
lines
Argh. That should be "_LP64", not "LP64". Many, many thanks to martin
for helping with this and verifying the netbsd32 compat fix.
Revision 1.113: download - view: text, markup, annotated - select for diffs
Wed Mar 24 17:40:02 2004 UTC (21 years, 1 month ago) by atatat
Branches: MAIN
Diff to: previous 1.112: preferred, colored
Changes since revision 1.112: +34 -1
lines
Framework for sysctl descriptions. Implementation to follow shortly.
Revision 1.112: download - view: text, markup, annotated - select for diffs
Wed Mar 24 17:21:02 2004 UTC (21 years, 1 month ago) by atatat
Branches: MAIN
Diff to: previous 1.111: preferred, colored
Changes since revision 1.111: +89 -20
lines
New node version and layout. This should take care of the netbsd32
emulation problem, formalizes the versioning (should it ever be needed
again), and provides a slot for descriptions.
Revision 1.111: download - view: text, markup, annotated - select for diffs
Wed Mar 24 16:55:49 2004 UTC (21 years, 1 month ago) by atatat
Branches: MAIN
Diff to: previous 1.110: preferred, colored
Changes since revision 1.110: +2 -1
lines
Implement sysctllog and sysctl_teardown(), which unwinds the log.
Revision 1.110: download - view: text, markup, annotated - select for diffs
Wed Mar 24 15:34:55 2004 UTC (21 years, 1 month ago) by atatat
Branches: MAIN
Diff to: previous 1.109: preferred, colored
Changes since revision 1.109: +59 -40
lines
Tango on sysctl_createv() and flags. The flags have all been renamed,
and sysctl_createv() now uses more arguments.
Revision 1.109: download - view: text, markup, annotated - select for diffs
Thu Feb 19 03:56:30 2004 UTC (21 years, 2 months ago) by atatat
Branches: MAIN
Diff to: previous 1.108: preferred, colored
Changes since revision 1.108: +41 -2
lines
Add PTRTOUINT64() and UINT64TOPTR() macros to sys/sysctl.h for use by
kern.proc, kern.proc2, kern.lwp, and kern.buf.
Define more MIB for kern.buf so that specific buffers can be selected
(only all/all is supported right now), and use a 32/64 bit agnostic
structure for communcating buffer information to userland.
Convert systat to the new kern.buf method.
Clean up the vm.buf* handling a little. There's no actual need to
record the dynamically assigned OIDs, since sysctl_data can tell us
what we're looking at.
Oh, and fix a typo in a comment.
Revision 1.108: download - view: text, markup, annotated - select for diffs
Fri Feb 13 11:36:23 2004 UTC (21 years, 2 months ago) by wiz
Branches: MAIN
Diff to: previous 1.107: preferred, colored
Changes since revision 1.107: +6 -6
lines
Uppercase CPU, plural is CPUs.
Revision 1.107: download - view: text, markup, annotated - select for diffs
Sat Jan 10 01:58:48 2004 UTC (21 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.106: preferred, colored
Changes since revision 1.106: +1 -2
lines
don't include sys/param.h; the man page says that the application should
do that. per discussions in core.
Revision 1.106: download - view: text, markup, annotated - select for diffs
Wed Jan 7 21:17:01 2004 UTC (21 years, 3 months ago) by atatat
Branches: MAIN
Diff to: previous 1.105: preferred, colored
Changes since revision 1.105: +16 -16
lines
Add brief comments to the sysctlnode members that describe what they
are.
Cut SYSCTL_DEFSIZE in half, which results in roughly a 40% improvement
in memory usage by sysctlnodes (on my laptop), along with a dozen
extra calls to sysctl_realloc() during kernel bootstrap (which no one
should notice anyway).
Revision 1.105: download - view: text, markup, annotated - select for diffs
Sat Jan 3 23:29:42 2004 UTC (21 years, 3 months ago) by tron
Branches: MAIN
Diff to: previous 1.104: preferred, colored
Changes since revision 1.104: +2 -1
lines
Include "sys/param.h" to fix build problems in applications which include
this header file.
Revision 1.104: download - view: text, markup, annotated - select for diffs
Tue Dec 30 12:33:24 2003 UTC (21 years, 3 months ago) by pk
Branches: MAIN
Diff to: previous 1.103: preferred, colored
Changes since revision 1.103: +3 -2
lines
Replace the traditional buffer memory management -- based on fixed per buffer
virtual memory reservation and a private pool of memory pages -- by a scheme
based on memory pools.
This allows better utilization of memory because buffers can now be allocated
with a granularity finer than the system's native page size (useful for
filesystems with e.g. 1k or 2k fragment sizes). It also avoids fragmentation
of virtual to physical memory mappings (due to the former fixed virtual
address reservation) resulting in better utilization of MMU resources on some
platforms. Finally, the scheme is more flexible by allowing run-time decisions
on the amount of memory to be used for buffers.
On the other hand, the effectiveness of the LRU queue for buffer recycling
may be somewhat reduced compared to the traditional method since, due to the
nature of the pool based memory allocation, the actual least recently used
buffer may release its memory to a pool different from the one needed by a
newly allocated buffer. However, this effect will kick in only if the
system is under memory pressure.
Revision 1.103: download - view: text, markup, annotated - select for diffs
Fri Dec 26 11:43:24 2003 UTC (21 years, 4 months ago) by itohy
Branches: MAIN
Diff to: previous 1.102: preferred, colored
Changes since revision 1.102: +3 -3
lines
sysctl_funcs is a set of symbols in text segment (function pointers),
and we must use __link_set_add_text() instead of __link_set_add_data().
Revision 1.102: download - view: text, markup, annotated - select for diffs
Sat Dec 6 04:16:33 2003 UTC (21 years, 4 months ago) by atatat
Branches: MAIN
Diff to: previous 1.101: preferred, colored
Changes since revision 1.101: +4 -2
lines
The missing pieces of PROC_PID_STOPEXIT/P_STOPEXIT, a sysctl tweakable
flag that makes a process stop as it exits.
Revision 1.101: download - view: text, markup, annotated - select for diffs
Thu Dec 4 20:06:58 2003 UTC (21 years, 4 months ago) by atatat
Branches: MAIN
Diff to: previous 1.100: preferred, colored
Changes since revision 1.100: +1 -3
lines
Not a published interface...yet
Revision 1.100: download - view: text, markup, annotated - select for diffs
Thu Dec 4 19:38:25 2003 UTC (21 years, 4 months ago) by atatat
Branches: MAIN
Diff to: previous 1.99: preferred, colored
Changes since revision 1.99: +204 -39
lines
Dynamic sysctl.
Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al. Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.
Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded. Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.
All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.
PS - I'm sorry, but there's a distinct lack of documentation at the
moment. I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.
Revision 1.99: download - view: text, markup, annotated - select for diffs
Sun Sep 28 13:02:19 2003 UTC (21 years, 7 months ago) by dsl
Branches: MAIN
Diff to: previous 1.98: preferred, colored
Changes since revision 1.98: +4 -4
lines
Simon has persuaded me to remove the 'sizeof kinfo_drivers' field.
Revision 1.98: download - view: text, markup, annotated - select for diffs
Sat Sep 27 07:52:34 2003 UTC (21 years, 7 months ago) by dsl
Branches: MAIN
Diff to: previous 1.97: preferred, colored
Changes since revision 1.97: +16 -2
lines
Add kern.root_partition (because sysinst needs to know it).
Add kern.drivers - reports installed driver names and major numbers.
Revision 1.97: download - view: text, markup, annotated - select for diffs
Thu Aug 7 16:34:15 2003 UTC (21 years, 8 months ago) by agc
Branches: MAIN
Diff to: previous 1.96: preferred, colored
Changes since revision 1.96: +2 -6
lines
Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22364, verified by myself.
Revision 1.96: download - view: text, markup, annotated - select for diffs
Wed Jul 2 20:07:47 2003 UTC (21 years, 9 months ago) by ragge
Branches: MAIN
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +4 -2
lines
Make somaxkva modifyable via sysctl (and compile-time) instead of
hardcoding its size.
Revision 1.95.2.1: download - view: text, markup, annotated - select for diffs
Wed Jul 2 15:27:17 2003 UTC (21 years, 9 months ago) by darrenr
Branches: ktrace-lwp
Diff to: previous 1.95: preferred, colored
Changes since revision 1.95: +9 -9
lines
Apply the aborted ktrace-lwp changes to a specific branch. This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it. This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.
Revision 1.95: download - view: text, markup, annotated - select for diffs
Sun Jun 29 22:32:28 2003 UTC (21 years, 10 months ago) by fvdl
Branches: MAIN
Branch point for: ktrace-lwp
Diff to: previous 1.94: preferred, colored
Changes since revision 1.94: +8 -8
lines
Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.
Revision 1.94: download - view: text, markup, annotated - select for diffs
Sat Jun 28 14:22:22 2003 UTC (21 years, 10 months ago) by darrenr
Branches: MAIN
Diff to: previous 1.93: preferred, colored
Changes since revision 1.93: +9 -9
lines
Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records. The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.
Bump the kernel rev up to 1.6V
Revision 1.93: download - view: text, markup, annotated - select for diffs
Thu Mar 6 20:32:59 2003 UTC (22 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.92: preferred, colored
Changes since revision 1.92: +5 -5
lines
Based on the feedback on wasabisystems.com!bsd-api-discuss (sure wish
people would read that list in a more timely fashion!), change the new
64-bit memory reporting sysctl nodes to report bytes. This should not
be a problem, since it's only a week old, and no applications use the
new nodes yet.
Revision 1.92: download - view: text, markup, annotated - select for diffs
Sat Mar 1 05:41:55 2003 UTC (22 years, 1 month ago) by atatat
Branches: MAIN
Diff to: previous 1.91: preferred, colored
Changes since revision 1.91: +3 -1
lines
Add p_svuid and p_svgid to kinfo_proc2. Populate them in the kernel
and in libkvm. Then teach ps how to show them to you.
Also, teach ps how to show the names for all the uids, the rest of the
group numbers, and the "group access list".
Revision 1.91: download - view: text, markup, annotated - select for diffs
Thu Feb 27 01:39:56 2003 UTC (22 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.90: preferred, colored
Changes since revision 1.90: +8 -4
lines
Add hw.physpages and hw.userpages, which return the physmem and usermem
values as a u_quad (page count). Necessary for reporting memory on systems
with >=4G. Per disussion on wasabisystems.com!bsd-api-discuss.
Revision 1.90: download - view: text, markup, annotated - select for diffs
Mon Feb 10 00:35:15 2003 UTC (22 years, 2 months ago) by atatat
Branches: MAIN
Diff to: previous 1.89: preferred, colored
Changes since revision 1.89: +4 -2
lines
Add a kern.dump_on_panic sysctl variable (and documentation, and a
kernel config option) that controls whether the kernel dumps to the
dump device on panic. Dumps can still be forced via the ``sync''
command from ddb. Defaults to ``on''.
Revision 1.89: download - view: text, markup, annotated - select for diffs
Sun Feb 2 20:33:08 2003 UTC (22 years, 2 months ago) by kleink
Branches: MAIN
Diff to: previous 1.88: preferred, colored
Changes since revision 1.88: +14 -2
lines
Add sysconf(3) knobs for recent additions.
Revision 1.88: download - view: text, markup, annotated - select for diffs
Sat Jan 18 09:53:21 2003 UTC (22 years, 3 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.87: preferred, colored
Changes since revision 1.87: +32 -2
lines
Merge the nathanw_sa branch.
Revision 1.60.2.18: download - view: text, markup, annotated - select for diffs
Sun Dec 29 20:56:56 2002 UTC (22 years, 3 months ago) by thorpej
Branches: nathanw_sa
CVS tags: nathanw_sa_end
Diff to: previous 1.60.2.17: preferred, colored; branchpoint 1.60: preferred, colored; next MAIN 1.61: preferred, colored
Changes since revision 1.60.2.17: +7 -3
lines
Sync with HEAD.
Revision 1.87: download - view: text, markup, annotated - select for diffs
Tue Dec 24 12:15:45 2002 UTC (22 years, 4 months ago) by manu
Branches: MAIN
CVS tags: nathanw_sa_before_merge,
nathanw_sa_base,
fvdl_fs64_base
Diff to: previous 1.86: preferred, colored
Changes since revision 1.86: +4 -2
lines
On Darwin, mach_init is the system bootstrap process. It is responsible
for forking the traditional UNIX init(8) and it does the Mach port naming
service. We need mach_init for the naming service, but unfortunately, it
will only act as such if its PID is 1. We introduce a sysctl
(emul.darwin.init_pid) to fool a given process into thinking its PID is 1.
That way we can get mach_init into behaving as the name server.
Typical use:
/sbin/sysctl -w emul.darwin.init_pid=$$ ; exec /emul/darwin/sbin/mach_init
Revision 1.86: download - view: text, markup, annotated - select for diffs
Thu Dec 19 23:31:56 2002 UTC (22 years, 4 months ago) by kleink
Branches: MAIN
Diff to: previous 1.85: preferred, colored
Changes since revision 1.85: +4 -2
lines
Add a sysconf(3) knob for {ATEXIT_MAX}.
Revision 1.60.2.17: download - view: text, markup, annotated - select for diffs
Thu Dec 19 00:59:47 2002 UTC (22 years, 4 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.60.2.16: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.16: +4 -2
lines
Sync with HEAD.
Revision 1.85.2.1: download - view: text, markup, annotated - select for diffs
Wed Dec 18 01:06:27 2002 UTC (22 years, 4 months ago) by gmcgarry
Branches: gmcgarry_ucred
Diff to: previous 1.85: preferred, colored; next MAIN 1.86: preferred, colored
Changes since revision 1.85: +1 -2
lines
Merge pcred and ucred, and poolify. TBD: check backward compatibility
and factor-out some higher-level functionality.
Revision 1.85: download - view: text, markup, annotated - select for diffs
Wed Dec 11 19:14:35 2002 UTC (22 years, 4 months ago) by jdolecek
Branches: MAIN
CVS tags: gmcgarry_ucred_base,
gmcgarry_ctxsw_base,
gmcgarry_ctxsw
Branch point for: gmcgarry_ucred
Diff to: previous 1.84: preferred, colored
Changes since revision 1.84: +4 -2
lines
Add kern.forkfsleep sysctl - set/get time (in miliseconds) for which
process would be forced to sleep in fork() if it hits either global
or user maxproc limit. Default is zero (no forced sleep).
Maximum is 20 seconds.
Revision 1.84: download - view: text, markup, annotated - select for diffs
Wed Dec 11 17:32:53 2002 UTC (22 years, 4 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.83: preferred, colored
Changes since revision 1.83: +4 -2
lines
reserve sysctl number for kern.lwp, which is used on nathanw_sa branch
Revision 1.60.2.16: download - view: text, markup, annotated - select for diffs
Wed Dec 11 15:44:46 2002 UTC (22 years, 4 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.60.2.15: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.15: +7 -3
lines
Sync with HEAD.
Revision 1.83: download - view: text, markup, annotated - select for diffs
Wed Dec 11 13:12:48 2002 UTC (22 years, 4 months ago) by scw
Branches: MAIN
Diff to: previous 1.82: preferred, colored
Changes since revision 1.82: +2 -2
lines
KERN_MAXID needs to be one more than the last sysctl. Spotted by simonb.
Revision 1.82: download - view: text, markup, annotated - select for diffs
Wed Dec 11 12:59:32 2002 UTC (22 years, 4 months ago) by scw
Branches: MAIN
Diff to: previous 1.81: preferred, colored
Changes since revision 1.81: +6 -2
lines
Add two sysctls: kern.labelsector and kern.labeloffset.
These are of use to userland code which previously depended on the
hard-coded values of LABELSECTOR and LABELOFFSET to figure out the
location of the disklabel for a particular platform.
With the introduction of umbrella ports such as evbarm, evbmips, etc,
the location of the disklabel may vary between kernels for the same
MACHINE. This sysctl will allow userland programs to remain independent
of the particular flavour of MACHINE in such cases.
Revision 1.60.2.15: download - view: text, markup, annotated - select for diffs
Wed Dec 11 06:50:08 2002 UTC (22 years, 4 months ago) by thorpej
Branches: nathanw_sa
Diff to: previous 1.60.2.14: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.14: +3 -3
lines
Sync with HEAD.
Revision 1.81: download - view: text, markup, annotated - select for diffs
Sun Nov 17 19:54:59 2002 UTC (22 years, 5 months ago) by manu
Branches: MAIN
Diff to: previous 1.80: preferred, colored
Changes since revision 1.80: +4 -4
lines
Introduction of IRIX sysctl broke binary compatibility because I changed the
offset of the Linux entry. Fix this.
Revision 1.60.2.14: download - view: text, markup, annotated - select for diffs
Mon Nov 11 22:16:40 2002 UTC (22 years, 5 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.60.2.13: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.13: +9 -3
lines
Catch up to -current
Revision 1.80: download - view: text, markup, annotated - select for diffs
Sat Nov 9 09:03:57 2002 UTC (22 years, 5 months ago) by manu
Branches: MAIN
Diff to: previous 1.79: preferred, colored
Changes since revision 1.79: +5 -3
lines
Added sysctl to change all IRIX kernel values reported by uname and systeminfo:
OS name, hw name, kernel version, and so forth.
Revision 1.79: download - view: text, markup, annotated - select for diffs
Thu Nov 7 00:22:28 2002 UTC (22 years, 5 months ago) by manu
Branches: MAIN
Diff to: previous 1.78: preferred, colored
Changes since revision 1.78: +6 -2
lines
Added two sysctl-able flags: proc.curproc.stopfork and proc.curproc.stopexec
that can be used to block a process after fork(2) or exec(2) calls. The
new process is created in the SSTOP state and is never scheduled for running.
This feature is designed so that it is esay to attach the process using gdb
before it has done anything.
It works also with sproc, kthread_create, clone...
Revision 1.65.2.4: download - view: text, markup, annotated - select for diffs
Fri Sep 6 08:50:05 2002 UTC (22 years, 7 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.65.2.3: preferred, colored; next MAIN 1.66: preferred, colored
Changes since revision 1.65.2.3: +11 -6
lines
sync kqueue branch with HEAD
Revision 1.74.4.2: download - view: text, markup, annotated - select for diffs
Thu Aug 29 00:57:01 2002 UTC (22 years, 8 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.74.4.1: preferred, colored; branchpoint 1.74: preferred, colored; next MAIN 1.75: preferred, colored
Changes since revision 1.74.4.1: +5 -5
lines
catch up with -current.
Revision 1.60.2.13: download - view: text, markup, annotated - select for diffs
Tue Aug 27 23:48:25 2002 UTC (22 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.60.2.12: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.12: +4 -4
lines
Catch up to -current.
Revision 1.78: download - view: text, markup, annotated - select for diffs
Mon Aug 26 13:09:39 2002 UTC (22 years, 8 months ago) by augustss
Branches: MAIN
CVS tags: kqueue-beforemerge,
kqueue-base,
kqueue-aftermerge,
gehenna-devsw-base
Diff to: previous 1.77: preferred, colored
Changes since revision 1.77: +2 -16
lines
Get rid of sysctl for setting BCM2033 firmware path. It doesn't work
for ports that don't include files.usb, and it's also not done quite
the way it should.
Revision 1.77: download - view: text, markup, annotated - select for diffs
Sun Aug 25 22:51:05 2002 UTC (22 years, 8 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.76: preferred, colored
Changes since revision 1.76: +5 -5
lines
Fix signed/unsigned comparison warnings from GCC 3.3.
Revision 1.76: download - view: text, markup, annotated - select for diffs
Sat Aug 24 17:27:01 2002 UTC (22 years, 8 months ago) by augustss
Branches: MAIN
Diff to: previous 1.75: preferred, colored
Changes since revision 1.75: +16 -2
lines
Add sysctl support for hw.dev.ubtbcmfw (so I can set the firmware
path for my BCM2033).
Revision 1.60.2.12: download - view: text, markup, annotated - select for diffs
Thu Aug 1 02:47:00 2002 UTC (22 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.60.2.11: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.11: +9 -3
lines
Catch up to -current.
Revision 1.74.4.1: download - view: text, markup, annotated - select for diffs
Mon Jul 15 10:37:18 2002 UTC (22 years, 9 months ago) by gehenna
Branches: gehenna-devsw
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +7 -2
lines
catch up with -current.
Revision 1.60.2.11: download - view: text, markup, annotated - select for diffs
Fri Jul 12 01:40:38 2002 UTC (22 years, 9 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.60.2.10: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.10: +1 -2
lines
No longer need to pull in lwp.h; proc.h pulls it in for us.
Revision 1.75: download - view: text, markup, annotated - select for diffs
Tue Jul 2 17:06:19 2002 UTC (22 years, 9 months ago) by itojun
Branches: MAIN
Diff to: previous 1.74: preferred, colored
Changes since revision 1.74: +7 -2
lines
provide KERN_URND, which extracts sizeof(int) random number from the kernel
(similar to /dev/urandom, for use within chroot jail).
Revision 1.65.2.3: download - view: text, markup, annotated - select for diffs
Sun Jun 23 17:52:02 2002 UTC (22 years, 10 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.65.2.2: preferred, colored
Changes since revision 1.65.2.2: +19 -2
lines
catch up with -current on kqueue branch
Revision 1.60.2.10: download - view: text, markup, annotated - select for diffs
Wed Apr 24 04:21:27 2002 UTC (23 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.60.2.9: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.9: +3 -3
lines
Add a field for the underlying process state, as distinct from the
state of the selected representative LWP.
Revision 1.60.2.9: download - view: text, markup, annotated - select for diffs
Tue Apr 23 21:52:51 2002 UTC (23 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.60.2.8: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.8: +2 -1
lines
Add a field to kinfo_lwp with the address of the LWP structure in kernel space.
Revision 1.60.2.8: download - view: text, markup, annotated - select for diffs
Tue Apr 23 04:05:16 2002 UTC (23 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.60.2.7: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.7: +4 -2
lines
Rearrange kinfo_lwp slightly to be more structure-alignment friendly.
Revision 1.60.2.7: download - view: text, markup, annotated - select for diffs
Tue Apr 23 03:30:47 2002 UTC (23 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.60.2.6: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.6: +29 -2
lines
Add a couple of LWP-related fields to the end of struct kinfo_proc2.
Define a new struct kinfo_lwp.
Revision 1.60.2.6: download - view: text, markup, annotated - select for diffs
Mon Apr 1 07:49:13 2002 UTC (23 years ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.60.2.5: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.5: +19 -2
lines
Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
Revision 1.74: download - view: text, markup, annotated - select for diffs
Wed Mar 20 00:23:46 2002 UTC (23 years, 1 month ago) by christos
Branches: MAIN
CVS tags: netbsd-1-6-base,
netbsd-1-6-RELEASE,
netbsd-1-6-RC3,
netbsd-1-6-RC2,
netbsd-1-6-RC1,
netbsd-1-6-PATCH002-RELEASE,
netbsd-1-6-PATCH002-RC4,
netbsd-1-6-PATCH002-RC3,
netbsd-1-6-PATCH002-RC2,
netbsd-1-6-PATCH002-RC1,
netbsd-1-6-PATCH002,
netbsd-1-6-PATCH001-RELEASE,
netbsd-1-6-PATCH001-RC3,
netbsd-1-6-PATCH001-RC2,
netbsd-1-6-PATCH001-RC1,
netbsd-1-6-PATCH001,
netbsd-1-6,
eeh-devprop-base,
eeh-devprop
Branch point for: gehenna-devsw
Diff to: previous 1.73: preferred, colored
Changes since revision 1.73: +19 -2
lines
new emulation specific sysctls.
Revision 1.73.4.1: download - view: text, markup, annotated - select for diffs
Mon Mar 11 18:28:54 2002 UTC (23 years, 1 month ago) by thorpej
Branches: newlock
Diff to: previous 1.73: preferred, colored; next MAIN 1.74: preferred, colored
Changes since revision 1.73: +2 -2
lines
Convert sysctl_memlock to an adaptive mutex.
Revision 1.60.2.5: download - view: text, markup, annotated - select for diffs
Thu Feb 28 04:15:25 2002 UTC (23 years, 2 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.60.2.4: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.4: +28 -4
lines
Catch up to -current.
Revision 1.65.2.2: download - view: text, markup, annotated - select for diffs
Mon Feb 11 20:10:45 2002 UTC (23 years, 2 months ago) by jdolecek
Branches: kqueue
Diff to: previous 1.65.2.1: preferred, colored
Changes since revision 1.65.2.1: +28 -4
lines
Sync w/ -current.
Revision 1.73: download - view: text, markup, annotated - select for diffs
Thu Jan 31 00:32:47 2002 UTC (23 years, 2 months ago) by kleink
Branches: MAIN
CVS tags: newlock-base,
ifpoll-base
Branch point for: newlock
Diff to: previous 1.72: preferred, colored
Changes since revision 1.72: +4 -2
lines
Add {POSIX_MONOTONIC_CLOCK} variables.
Revision 1.72: download - view: text, markup, annotated - select for diffs
Mon Jan 28 02:06:04 2002 UTC (23 years, 3 months ago) by simonb
Branches: MAIN
Diff to: previous 1.71: preferred, colored
Changes since revision 1.71: +22 -2
lines
Add sysctls to read tk_{nin,nout,cancc,rawcc} (under a kern.tkstat node).
"extern" those variables in <sys/dkstat.h>, and add declarations for them
in sys/tty.c
Revision 1.71: download - view: text, markup, annotated - select for diffs
Sun Jan 27 12:41:08 2002 UTC (23 years, 3 months ago) by simonb
Branches: MAIN
Diff to: previous 1.70: preferred, colored
Changes since revision 1.70: +5 -3
lines
Implement the hw.disknames and hw.diskstats sysctl's that have been listed
in <sys/sysctl.h> since day one but never implemented.
Revision 1.60.2.4: download - view: text, markup, annotated - select for diffs
Mon Oct 22 20:42:12 2001 UTC (23 years, 6 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.60.2.3: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.3: +1 -1
lines
Catch up to -current.
Revision 1.67.2.1: download - view: text, markup, annotated - select for diffs
Thu Oct 11 00:02:35 2001 UTC (23 years, 6 months ago) by fvdl
Branches: thorpej-devvp
Diff to: previous 1.67: preferred, colored; next MAIN 1.68: preferred, colored
Changes since revision 1.67: +1 -1
lines
Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
Revision 1.70: download - view: text, markup, annotated - select for diffs
Fri Oct 5 19:05:06 2001 UTC (23 years, 6 months ago) by eeh
Branches: MAIN
CVS tags: thorpej-mips-cache-base,
thorpej-mips-cache,
thorpej-devvp-base3
Diff to: previous 1.69: preferred, colored
Changes since revision 1.69: +2 -4
lines
Remove the property sysctl interface for now.
Revision 1.69: download - view: text, markup, annotated - select for diffs
Fri Oct 5 05:46:50 2001 UTC (23 years, 6 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.68: preferred, colored
Changes since revision 1.68: +2 -2
lines
Fix a typo so that /sbin/sysctl compiles again.
Revision 1.68: download - view: text, markup, annotated - select for diffs
Thu Oct 4 19:03:59 2001 UTC (23 years, 6 months ago) by eeh
Branches: MAIN
Diff to: previous 1.67: preferred, colored
Changes since revision 1.67: +4 -2
lines
Add sysctl for generic properties.
Revision 1.60.2.3: download - view: text, markup, annotated - select for diffs
Fri Aug 24 00:13:11 2001 UTC (23 years, 8 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.60.2.2: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.2: +28 -54
lines
Catch up with -current.
Revision 1.65.2.1: download - view: text, markup, annotated - select for diffs
Fri Aug 3 04:14:06 2001 UTC (23 years, 8 months ago) by lukem
Branches: kqueue
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +6 -2
lines
update to -current
Revision 1.67: download - view: text, markup, annotated - select for diffs
Fri Jul 27 21:19:09 2001 UTC (23 years, 9 months ago) by thorpej
Branches: MAIN
CVS tags: thorpej-devvp-base2,
thorpej-devvp-base,
pre-chs-ubcperf,
post-chs-ubcperf
Branch point for: thorpej-devvp
Diff to: previous 1.66: preferred, colored
Changes since revision 1.66: +4 -2
lines
Add a sysctl to frob sb_max.
Revision 1.66: download - view: text, markup, annotated - select for diffs
Sat Jul 14 06:36:02 2001 UTC (23 years, 9 months ago) by matt
Branches: MAIN
Diff to: previous 1.65: preferred, colored
Changes since revision 1.65: +4 -2
lines
Add support for kern.maxphys, vm.maxslp, vm.uspace (the later two for ps).
Revision 1.65: download - view: text, markup, annotated - select for diffs
Mon Jul 9 10:25:21 2001 UTC (23 years, 9 months ago) by simonb
Branches: MAIN
Branch point for: kqueue
Diff to: previous 1.64: preferred, colored
Changes since revision 1.64: +23 -31
lines
De-__P kernel prototypes.
Revision 1.64: download - view: text, markup, annotated - select for diffs
Mon Jul 2 20:48:31 2001 UTC (23 years, 9 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.63: preferred, colored
Changes since revision 1.63: +1 -20
lines
Move CTL_PIPE_NAMES and KERN_PIPE_* from <sys/sysctl.h> to <sys/pipe.h>
Revision 1.60.2.2: download - view: text, markup, annotated - select for diffs
Thu Jun 21 20:09:58 2001 UTC (23 years, 10 months ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.60.2.1: preferred, colored; branchpoint 1.60: preferred, colored
Changes since revision 1.60.2.1: +25 -1
lines
Catch up to -current.
Revision 1.63: download - view: text, markup, annotated - select for diffs
Thu Jun 21 19:08:36 2001 UTC (23 years, 10 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.62: preferred, colored
Changes since revision 1.62: +1 -4
lines
Move prototype of sysctl_dopipe() from <sys/sysctl.h> to <sys/pipe.h>
and adjust kern/kern_sysctl.c accordingly.
Revision 1.62: download - view: text, markup, annotated - select for diffs
Sat Jun 16 12:00:03 2001 UTC (23 years, 10 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.61: preferred, colored
Changes since revision 1.61: +26 -2
lines
Add port of high performance pipe implementation written by John S. Dyson
for FreeBSD project. Besides huge speed boost compared with socketpair-based
pipes, this implementation also uses pagable kernel memory instead of mbufs.
Significant differences to FreeBSD version:
* uses uvm_loan() facility for direct write
* async/SIGIO handling correct also for sync writer, async reader
* limits settable via sysctl, amountpipekva and nbigpipes available via sysctl
* pipes are unidirectional - this is enforced on file descriptor level
for now only, the code would be updated to take advantage of it
eventually
* uses lockmgr(9)-based locks instead of home brew variant
* scatter-gather write is handled correctly for direct write case, data
is transferred by PIPE_DIRECT_CHUNK bytes maximum, to avoid running out of kva
All FreeBSD/NetBSD specific code is within appropriate #ifdef, in preparation
to feed changes back to FreeBSD tree.
This pipe implementation is optional for now, add 'options NEW_PIPE'
to your kernel config to use it.
Revision 1.61: download - view: text, markup, annotated - select for diffs
Fri May 4 15:50:13 2001 UTC (23 years, 11 months ago) by simonb
Branches: MAIN
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +2 -2
lines
Fix current KERN_MAXID - it was one too many.
Revision 1.60.2.1: download - view: text, markup, annotated - select for diffs
Mon Mar 5 22:50:04 2001 UTC (24 years, 1 month ago) by nathanw
Branches: nathanw_sa
Diff to: previous 1.60: preferred, colored
Changes since revision 1.60: +3 -1
lines
Initial commit of scheduler activations and lightweight process support.
Revision 1.38.2.3: download - view: text, markup, annotated - select for diffs
Thu Jan 18 09:24:03 2001 UTC (24 years, 3 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.38.2.2: preferred, colored; branchpoint 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38.2.2: +9 -1
lines
Sync with head (for UBC+NFS fixes, mostly).
Revision 1.60: download - view: text, markup, annotated - select for diffs
Tue Jan 9 21:30:25 2001 UTC (24 years, 3 months ago) by fvdl
Branches: MAIN
CVS tags: thorpej_scsipi_nbase,
thorpej_scsipi_beforemerge,
thorpej_scsipi_base
Branch point for: nathanw_sa
Diff to: previous 1.59: preferred, colored
Changes since revision 1.59: +10 -2
lines
Add 'vendor' toplevel name. To be used as vendor.<vendorname>.* for
vendor-specific data.
Revision 1.38.2.2: download - view: text, markup, annotated - select for diffs
Wed Nov 22 16:06:41 2000 UTC (24 years, 5 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.38.2.1: preferred, colored; branchpoint 1.38: preferred, colored
Changes since revision 1.38.2.1: +9 -3
lines
Sync with HEAD.
Revision 1.38.2.1: download - view: text, markup, annotated - select for diffs
Mon Nov 20 18:11:37 2000 UTC (24 years, 5 months ago) by bouyer
Branches: thorpej_scsipi
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +215 -52
lines
Update thorpej_scsipi to -current as of a month ago
Revision 1.59: download - view: text, markup, annotated - select for diffs
Mon Nov 20 01:46:56 2000 UTC (24 years, 5 months ago) by simonb
Branches: MAIN
Diff to: previous 1.58: preferred, colored
Changes since revision 1.58: +2 -1
lines
Add a sysctl_rdminstruct() function - same as sysctl_rdstruct() but
can return short data if *oldlenp is less than len.
Revision 1.58: download - view: text, markup, annotated - select for diffs
Sun Nov 19 00:54:50 2000 UTC (24 years, 5 months ago) by sommerfeld
Branches: MAIN
Diff to: previous 1.57: preferred, colored
Changes since revision 1.57: +4 -1
lines
Extend kinfo_proc2 with CPU id
Revision 1.57: download - view: text, markup, annotated - select for diffs
Wed Nov 8 22:41:59 2000 UTC (24 years, 5 months ago) by eeh
Branches: MAIN
Diff to: previous 1.56: preferred, colored
Changes since revision 1.56: +5 -3
lines
Add console magic sequence framework.
Revision 1.56: download - view: text, markup, annotated - select for diffs
Sat Sep 9 16:42:06 2000 UTC (24 years, 7 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.55: preferred, colored
Changes since revision 1.55: +4 -2
lines
allocate pty kernel structures on demand at run-time - this allows
to support arbitrary number of ptys without need of kernel recompile
(the extra device special files in /dev/ still need to be created, of course)
upper limit of supported ptys is controlled via new sysctl variable
kern.maxptys (KERN_MAXPTYS), which is raise-only and defaults to 512.
Revision 1.51.2.3: download - view: text, markup, annotated - select for diffs
Mon Jul 24 20:39:50 2000 UTC (24 years, 9 months ago) by jdolecek
Branches: netbsd-1-5
CVS tags: netbsd-1-5-RELEASE,
netbsd-1-5-PATCH003,
netbsd-1-5-PATCH002,
netbsd-1-5-PATCH001,
netbsd-1-5-BETA2,
netbsd-1-5-BETA,
netbsd-1-5-ALPHA2
Diff to: previous 1.51.2.2: preferred, colored; branchpoint 1.51: preferred, colored; next MAIN 1.52: preferred, colored
Changes since revision 1.51.2.2: +1 -3
lines
pullup rev. 1.55 from trunk (approved by thorpej):
remove ifndef _KERNEL around vm includes & other stuff, needed for
definition of kinfo_proc
Revision 1.55: download - view: text, markup, annotated - select for diffs
Sat Jul 22 14:59:23 2000 UTC (24 years, 9 months ago) by jdolecek
Branches: MAIN
Diff to: previous 1.54: preferred, colored
Changes since revision 1.54: +1 -3
lines
ditch the ifndef _KERNEL around includes needed for some parts
of kinfo_struct - needing to include <uvm/uvm_extern> before <sys/sysctl.h>
is annoying, especially when porting external kernel stuff
Revision 1.51.2.2: download - view: text, markup, annotated - select for diffs
Sat Jul 22 04:36:19 2000 UTC (24 years, 9 months ago) by simonb
Branches: netbsd-1-5
Diff to: previous 1.51.2.1: preferred, colored; branchpoint 1.51: preferred, colored
Changes since revision 1.51.2.1: +4 -2
lines
Pull up rev 1.53:
Add a KERN_CONSDEV sysctl that returns cn_tab->cn_dev (if cn_tab is not
NULL).
Revision 1.51.2.1: download - view: text, markup, annotated - select for diffs
Fri Jul 14 18:10:51 2000 UTC (24 years, 9 months ago) by thorpej
Branches: netbsd-1-5
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +10 -4
lines
Update from trunk:
- Fix the likely cause of the "ps(1) hangs machine" problem. Always
vslock the user pages for the data being copied out to userspace,
so that we won't sleep while holding a lock in case we need to
fault the pages in.
- Sprinkle some const and ANSI'ify some things while here.
Revision 1.54: download - view: text, markup, annotated - select for diffs
Fri Jul 14 07:21:22 2000 UTC (24 years, 9 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.53: preferred, colored
Changes since revision 1.53: +10 -4
lines
- Fix the likely cause of the "ps(1) hangs machine" problem. Always
vslock the user pages for the data being copied out to userspace,
so that we won't sleep while holding a lock in case we need to
fault the pages in.
- Sprinkle some const and ANSI'ify some things while here.
Revision 1.53: download - view: text, markup, annotated - select for diffs
Thu Jul 13 14:26:44 2000 UTC (24 years, 9 months ago) by simonb
Branches: MAIN
Diff to: previous 1.52: preferred, colored
Changes since revision 1.52: +4 -2
lines
Add a KERN_CONSDEV sysctl that returns cn_tab->cn_dev (if cn_tab is not
NULL).
Revision 1.52: download - view: text, markup, annotated - select for diffs
Thu Jun 29 09:01:09 2000 UTC (24 years, 10 months ago) by mrg
Branches: MAIN
Diff to: previous 1.51: preferred, colored
Changes since revision 1.51: +2 -2
lines
use <uvm/uvm_extern.h> instead of <vm/vm.h>
Revision 1.47.2.1: download - view: text, markup, annotated - select for diffs
Thu Jun 22 17:10:28 2000 UTC (24 years, 10 months ago) by minoura
Branches: minoura-xpg4dl
Diff to: previous 1.47: preferred, colored; next MAIN 1.48: preferred, colored
Changes since revision 1.47: +56 -45
lines
Sync w/ netbsd-1-5-base.
Revision 1.51: download - view: text, markup, annotated - select for diffs
Fri Jun 16 00:18:10 2000 UTC (24 years, 10 months ago) by simonb
Branches: MAIN
CVS tags: netbsd-1-5-base
Branch point for: netbsd-1-5
Diff to: previous 1.50: preferred, colored
Changes since revision 1.50: +4 -2
lines
Add a KERN_MSGBUF sysctl to return the message buffer.
Revision 1.50: download - view: text, markup, annotated - select for diffs
Tue Jun 13 01:27:02 2000 UTC (24 years, 10 months ago) by simonb
Branches: MAIN
Diff to: previous 1.49: preferred, colored
Changes since revision 1.49: +33 -31
lines
In the KERN_GETPROC* handler:
* Handle KERN_PROC_SESSION that has been defined in <sys/sysctl.h> from
day one.
* Add handlers for KERN_PROC_GID and KERN_PROC_RGID.
* If "op" doesn't valid, return EINVAL.
Revision 1.49: download - view: text, markup, annotated - select for diffs
Sat Jun 3 04:15:43 2000 UTC (24 years, 10 months ago) by simonb
Branches: MAIN
Diff to: previous 1.48: preferred, colored
Changes since revision 1.48: +3 -3
lines
p_xstat and p_acflag should be u_int16_t, not int16_t.
Revision 1.48: download - view: text, markup, annotated - select for diffs
Fri Jun 2 15:53:05 2000 UTC (24 years, 10 months ago) by simonb
Branches: MAIN
Diff to: previous 1.47: preferred, colored
Changes since revision 1.47: +20 -13
lines
Add new sysctl node "KERN_SYSVIPC_INFO" with "KERN_SYSVIPC_MSG_INFO",
"KERN_SYSVIPC_SEM_INFO" and "KERN_SYSVIPC_SHM_INFO" to return the
info and data structures for the relevent SysV IPC types. The return
structures use fixed-size types and should be compat32 safe. All
user-visible changes are protected with
#if !defined(_POSIX_C_SOURCE) && !defined(_XOPEN_SOURCE)
Make all variable declarations extern in msg.h, sem.h and shm.h and
add relevent variable declarations to sysv_*.c and remove unneeded
header files from those .c files.
Make compat14 SysV IPC conversion functions and sysctl_file() static.
Change the data pointer to "void *" in sysctl_clockrate(),
sysctl_ntptime(), sysctl_file() and sysctl_doeproc().
Revision 1.47: download - view: text, markup, annotated - select for diffs
Sat May 27 15:28:58 2000 UTC (24 years, 11 months ago) by simonb
Branches: MAIN
CVS tags: minoura-xpg4dl-base
Branch point for: minoura-xpg4dl
Diff to: previous 1.46: preferred, colored
Changes since revision 1.46: +2 -2
lines
The name of the KERN_PROC_ARGS sysctl is proc_args, not proc_argv.
Revision 1.46: download - view: text, markup, annotated - select for diffs
Fri May 26 02:23:14 2000 UTC (24 years, 11 months ago) by simonb
Branches: MAIN
Diff to: previous 1.45: preferred, colored
Changes since revision 1.45: +146 -3
lines
Add some new sysctls to help abolish the dreaded "proc size mismatch"
errors from ps(1) and some other kernel grovellers, and return some
data that has previously only been accessable with /dev/kmem read
access. The sysctls are:
+ KERN_PROC2 - return an array of fixed sized "struct kinfo_proc2"
structures that contain most of the useful user-level data in
"struct proc" and "struct user". The sysctl also takes the size of
each element, so that if "struct kinfo_proc2" grows over time old
binaries will still be able to request a fixed size amount of data.
+ KERN_PROC_ARGS - return the argv or envv for a particular process id.
envv will only be returned if the process has the same user id as the
requestor or if the requestor is root.
+ KERN_FSCALE - return the current kernel fixpt scale factor.
+ KERN_CCPU - return the scheduler exponential decay value.
+ KERN_CP_TIME - return cpu time state counters.
With input and suggestions from many people on tech-kern.
Revision 1.45: download - view: text, markup, annotated - select for diffs
Sat Apr 15 17:51:27 2000 UTC (25 years ago) by simonb
Branches: MAIN
Diff to: previous 1.44: preferred, colored
Changes since revision 1.44: +1 -4
lines
Remove some routing specific sysctl function declarations from
<sys/sysctl.h> and make them static in net/rtsock.c.
Revision 1.44: download - view: text, markup, annotated - select for diffs
Sat Apr 15 17:43:53 2000 UTC (25 years ago) by simonb
Branches: MAIN
Diff to: previous 1.43: preferred, colored
Changes since revision 1.43: +1 -5
lines
There is no vm_sysctl() or fs_sysctl() - don't declare prototypes for
them.
Revision 1.43: download - view: text, markup, annotated - select for diffs
Sat Apr 15 04:38:08 2000 UTC (25 years ago) by simonb
Branches: MAIN
Diff to: previous 1.42: preferred, colored
Changes since revision 1.42: +7 -1
lines
For the KERN_PROC sysctl, when using KERN_PROC_TTY allow
KERN_PROC_TTY_NODEV to select processes with no controlling
tty and KERN_PROC_TTY_REVOKE to select processes with a
revoked controlling tty.
Revision 1.42: download - view: text, markup, annotated - select for diffs
Tue Mar 28 05:07:42 2000 UTC (25 years, 1 month ago) by simonb
Branches: MAIN
Diff to: previous 1.41: preferred, colored
Changes since revision 1.41: +2 -4
lines
Remove duplicate declarations of sysctl_rdstring() and sysctl_rdstruct().
Revision 1.41: download - view: text, markup, annotated - select for diffs
Sun Feb 27 06:13:40 2000 UTC (25 years, 2 months ago) by itojun
Branches: MAIN
Diff to: previous 1.40: preferred, colored
Changes since revision 1.40: +4 -2
lines
add hw.alignbytes sysctl mib. this gives you the value of ALIGNBYTES
at the kernel compilation time (ALIGNBYTES that the kernel uses).
Revision 1.40: download - view: text, markup, annotated - select for diffs
Sun Feb 6 07:29:59 2000 UTC (25 years, 2 months ago) by fair
Branches: MAIN
CVS tags: chs-ubc2-newbase
Diff to: previous 1.39: preferred, colored
Changes since revision 1.39: +4 -2
lines
Add kernel logging of processes which exit on signals which can
cause a core to drop, and whether the core dropped, or, if it did
not, why not (i.e. error number). Logs process ID, name, signal that
hit it, and whether the core dump was successful.
logging only happens if kern_logsigexit is non-zero, and it can be
changed by the new sysctl(3) value KERN_LOGSIGEXIT. The name of this
sysctl and its function are taken from FreeBSD, at the suggestion
of Greg Woods in PR 6224. Default behavior is zero for a normal
kernel, and one for a kernel compiled with DIAGNOSTIC.
Revision 1.38.8.1: download - view: text, markup, annotated - select for diffs
Mon Dec 27 18:36:35 1999 UTC (25 years, 4 months ago) by wrstuden
Branches: wrstuden-devbsize
Diff to: previous 1.38: preferred, colored; next MAIN 1.39: preferred, colored
Changes since revision 1.38: +2 -2
lines
Pull up to last week's -current.
Revision 1.39: download - view: text, markup, annotated - select for diffs
Fri Nov 19 10:41:41 1999 UTC (25 years, 5 months ago) by bouyer
Branches: MAIN
CVS tags: wrstuden-devbsize-base,
wrstuden-devbsize-19991221
Diff to: previous 1.38: preferred, colored
Changes since revision 1.38: +2 -2
lines
Update protocoles and interfaces stats counters to 64bit.
RTM_IFINFO is now 0xf, 0xe is RTM_OIFINFO which returns the old (if_msghdr14)
struct with 32bit counters (binary compat, conditioned on COMPAT_14).
Same for sysctl: node 3 is renamed NET_RT_OIFLIST, NET_RT_IFLIST is now node 4.
Change rt_msg1() to add an mbuf to the mbuf chain instead of just panic()
when the message is larger than MHLEN.
Revision 1.38: download - view: text, markup, annotated - select for diffs
Wed Sep 29 11:58:45 1999 UTC (25 years, 7 months ago) by bouyer
Branches: MAIN
CVS tags: fvdl-softdep-base,
fvdl-softdep,
comdex-fall-1999-base,
comdex-fall-1999
Branch point for: wrstuden-devbsize,
thorpej_scsipi
Diff to: previous 1.37: preferred, colored
Changes since revision 1.37: +6 -4
lines
keep KERN_SHORTCORENAME mid id for binary compat (the kernel will return
EOPNOTSUPP) and gives KERN_DEFCORENAME a new, unused id.
Suggested by cgd (thanks !:)
Revision 1.37: download - view: text, markup, annotated - select for diffs
Tue Sep 28 14:47:04 1999 UTC (25 years, 7 months ago) by bouyer
Branches: MAIN
Diff to: previous 1.36: preferred, colored
Changes since revision 1.36: +66 -5
lines
Remplace kern.shortcorename sysctl with a more flexible sheme,
core filename format, which allow to change the name of the core dump,
and to relocate it in a directory. Credits to Bill Sommerfeld for giving me
the idea :)
The default core filename format can be changed by options DEFCORENAME and/or
kern.defcorename
Create a new sysctl tree, proc, which holds per-process values (for now
the corename format, and resources limits). Process is designed by its pid
at the second level name. These values are inherited on fork, and the corename
fomat is reset to defcorename on suid/sgid exec.
Create a p_sugid() function, to take appropriate actions on suid/sgid
exec (for now set the P_SUGID flag and reset the per-proc corename).
Adjust dosetrlimit() to allow changing limits of one proc by another, with
credential controls.
Revision 1.36: download - view: text, markup, annotated - select for diffs
Mon Sep 27 16:24:40 1999 UTC (25 years, 7 months ago) by kleink
Branches: MAIN
Diff to: previous 1.35: preferred, colored
Changes since revision 1.35: +4 -2
lines
1003.1c: add {LOGIN_NAME_MAX}.
Revision 1.33.6.2: download - view: text, markup, annotated - select for diffs
Thu Jul 1 23:50:36 1999 UTC (25 years, 9 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.33.6.1: preferred, colored; branchpoint 1.33: preferred, colored; next MAIN 1.34: preferred, colored
Changes since revision 1.33.6.1: +10 -2
lines
Sync w/ -current.
Revision 1.35: download - view: text, markup, annotated - select for diffs
Thu Jun 24 14:18:12 1999 UTC (25 years, 10 months ago) by kleink
Branches: MAIN
CVS tags: chs-ubc2-base
Diff to: previous 1.34: preferred, colored
Changes since revision 1.34: +10 -2
lines
Add compile-time and run-time feature test knobs for the 1003.1 Mapped Files,
Process Memory Locking, Range Memory Locking and Memory Protection options.
Revision 1.33.6.1: download - view: text, markup, annotated - select for diffs
Mon Jun 21 01:30:23 1999 UTC (25 years, 10 months ago) by thorpej
Branches: chs-ubc2
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +5 -2
lines
Sync w/ -current.
Revision 1.34: download - view: text, markup, annotated - select for diffs
Mon Apr 26 21:54:46 1999 UTC (26 years ago) by thorpej
Branches: MAIN
Diff to: previous 1.33: preferred, colored
Changes since revision 1.33: +5 -2
lines
Add mbuf sysctl definitions.
Revision 1.33: download - view: text, markup, annotated - select for diffs
Fri Nov 13 12:07:51 1998 UTC (26 years, 5 months ago) by christos
Branches: MAIN
CVS tags: netbsd-1-4-base,
netbsd-1-4-RELEASE,
netbsd-1-4-PATCH003,
netbsd-1-4-PATCH002,
netbsd-1-4-PATCH001,
netbsd-1-4,
kenh-if-detach-base,
kenh-if-detach,
kame_14_19990705,
kame_14_19990628,
kame_141_19991130,
kame
Branch point for: chs-ubc2
Diff to: previous 1.32: preferred, colored
Changes since revision 1.32: +2 -2
lines
make sysctl newp argument const void * to avoid const castaway warnings in
many places in the source. Unfortunately I am not fixing right now the
second argument from u_int to size_t because it is going to break some
ports. In anycase, the sysctl interface will change shortly.
Revision 1.32: download - view: text, markup, annotated - select for diffs
Thu Oct 29 21:22:33 1998 UTC (26 years, 6 months ago) by jonathan
Branches: MAIN
CVS tags: chs-ubc-base,
chs-ubc
Diff to: previous 1.31: preferred, colored
Changes since revision 1.31: +4 -2
lines
Add options DDB_FROMCONSOLE and sysctl ddb.fromconsole, analagous to
DDB_ONPANIC. Lets user ignore breaks but enter DDB on panic. Intended
for machines where debug on panic is useful, but DDB entry is not,
(public-access console, or terminal-servers which send spurious breaks)
Add new ddb hook, console_debugger(), which decides whether or not to
ignore console ddb requests. Console drivers should be updated to call
console_debugger(), not Debugger(), in response to serial-console
break or ddb keyboard sequence.
Revision 1.31: download - view: text, markup, annotated - select for diffs
Mon Aug 3 14:38:21 1998 UTC (26 years, 8 months ago) by kleink
Branches: MAIN
Diff to: previous 1.30: preferred, colored
Changes since revision 1.30: +6 -2
lines
Add support to query the
* availability of POSIX Synchronized I/O (kern.synchronized_io),
* maximum number of iovec structures to be used in readv(2) etc. (kern.iov_max)
via sysctl().
Revision 1.30: download - view: text, markup, annotated - select for diffs
Sat Jul 4 22:18:52 1998 UTC (26 years, 9 months ago) by jonathan
Branches: MAIN
CVS tags: eeh-paddr_t-base,
eeh-paddr_t
Diff to: previous 1.29: preferred, colored
Changes since revision 1.29: +4 -5
lines
defopt DDB.
Revision 1.29: download - view: text, markup, annotated - select for diffs
Sun Jun 28 21:34:59 1998 UTC (26 years, 10 months ago) by nathanw
Branches: MAIN
Diff to: previous 1.28: preferred, colored
Changes since revision 1.28: +4 -2
lines
Implement short corefile name support, controlled by options SHORTCORENAME
and sysctl kern.shortcorename.
Closes PR kern/5191.
Revision 1.28: download - view: text, markup, annotated - select for diffs
Sun May 24 19:52:01 1998 UTC (26 years, 11 months ago) by kleink
Branches: MAIN
Diff to: previous 1.27: preferred, colored
Changes since revision 1.27: +10 -2
lines
Permit checking the availability of the POSIX File Synchronization Option
(a/k/a fsync(2)), System V style message queues, semaphores and shared memory
at runtime by adding a sysctl variable for each.
Revision 1.27: download - view: text, markup, annotated - select for diffs
Tue Mar 3 01:40:51 1998 UTC (27 years, 1 month ago) by thorpej
Branches: MAIN
Diff to: previous 1.26: preferred, colored
Changes since revision 1.26: +2 -2
lines
Always define the ctldebug structure.
Revision 1.26: download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:24:15 1998 UTC (27 years, 2 months ago) by fvdl
Branches: MAIN
Diff to: previous 1.25: preferred, colored
Changes since revision 1.25: +4 -4
lines
Merge with Lite2 + local changes
Revision 1.1.1.2 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:13:58 1998 UTC (27 years, 2 months ago) by fvdl
Branches: netbsd,
CSRG
CVS tags: lite-2
Diff to: previous 1.1.1.1: preferred, colored
Changes since revision 1.1.1.1: +3 -3
lines
Import 4.4BSD-Lite2
Revision 1.1.1.1 (vendor branch): download - view: text, markup, annotated - select for diffs
Sun Mar 1 02:11:10 1998 UTC (27 years, 2 months ago) by fvdl
Branches: netbsd,
CSRG
CVS tags: lite-1,
date-03-may-96
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +1 -3
lines
Import 4.4BSD-Lite for reference
Revision 1.25: download - view: text, markup, annotated - select for diffs
Sat Feb 14 00:37:28 1998 UTC (27 years, 2 months ago) by thorpej
Branches: MAIN
Diff to: previous 1.24: preferred, colored
Changes since revision 1.24: +3 -2
lines
Prevent the session ID from disappearing if the session leader exits
(thus causing s_leader to become NULL) by storing the session ID separately
in the session structure. Export the session ID to userspace in the
eproc structure.
Submitted by Tom Proett <proett@nas.nasa.gov>.
Revision 1.23.4.1: download - view: text, markup, annotated - select for diffs
Mon Sep 22 06:34:23 1997 UTC (27 years, 7 months ago) by thorpej
Branches: marc-pcmcia
Diff to: previous 1.23: preferred, colored; next MAIN 1.24: preferred, colored
Changes since revision 1.23: +4 -2
lines
Update marc-pcmcia branch from trunk.
Revision 1.24: download - view: text, markup, annotated - select for diffs
Fri Sep 19 14:05:53 1997 UTC (27 years, 7 months ago) by leo
Branches: MAIN
CVS tags: netbsd-1-3-base,
netbsd-1-3-RELEASE,
netbsd-1-3-PATCH003-CANDIDATE2,
netbsd-1-3-PATCH003-CANDIDATE1,
netbsd-1-3-PATCH003-CANDIDATE0,
netbsd-1-3-PATCH003,
netbsd-1-3-PATCH002,
netbsd-1-3-PATCH001,
netbsd-1-3-BETA,
netbsd-1-3,
marc-pcmcia-base
Diff to: previous 1.23: preferred, colored
Changes since revision 1.23: +4 -2
lines
Implement the kernel part of pr-1891. This allows for a more flexible sized
msgbuf. Note that old 'dmesg' and 'syslogd' binaries will continue running,
though old 'dmesg' binaries will output a few bytes of junk at the start of
the buffer, and will miss a few bytes at the end of the buffer.
Revision 1.23: download - view: text, markup, annotated - select for diffs
Fri Jun 6 23:14:38 1997 UTC (27 years, 10 months ago) by veego
Branches: MAIN
CVS tags: thorpej-signal-base,
thorpej-signal,
marc-pcmcia-bp,
bouyer-scsipi
Branch point for: marc-pcmcia
Diff to: previous 1.22: preferred, colored
Changes since revision 1.22: +4 -2
lines
Add HW_MACHINE_ARCH for the new sysctl hw.machine_arch which contains the
cpu class of a machine.
Revision 1.22: download - view: text, markup, annotated - select for diffs
Wed Mar 19 05:36:26 1997 UTC (28 years, 1 month ago) by mycroft
Branches: MAIN
Diff to: previous 1.21: preferred, colored
Changes since revision 1.21: +3 -3
lines
e_wmesg doesn't need to be NUL-terminated; give it an extra byte instead.
Revision 1.20.4.1: download - view: text, markup, annotated - select for diffs
Wed Mar 12 21:26:14 1997 UTC (28 years, 1 month ago) by is
Branches: is-newarp
Diff to: previous 1.20: preferred, colored; next MAIN 1.21: preferred, colored
Changes since revision 1.20: +3 -3
lines
Merge in changes from Trunk
Revision 1.21: download - view: text, markup, annotated - select for diffs
Thu Feb 27 06:25:27 1997 UTC (28 years, 2 months ago) by mikel
Branches: MAIN
CVS tags: is-newarp-before-merge
Diff to: previous 1.20: preferred, colored
Changes since revision 1.20: +3 -3
lines
fix reversal of strings for ddb.lines and ddb.tabstops; from Andrew
Wheadon in PR kern/3262.
fix a typo in a comment while I'm here.
Revision 1.20: download - view: text, markup, annotated - select for diffs
Fri Jan 31 03:03:29 1997 UTC (28 years, 2 months ago) by thorpej
Branches: MAIN
CVS tags: mrg-vm-swap,
is-newarp-base
Branch point for: is-newarp
Diff to: previous 1.19: preferred, colored
Changes since revision 1.19: +5 -3
lines
Define the kern.root_device sysctl node.
Revision 1.18.2.2: download - view: text, markup, annotated - select for diffs
Sat Jan 18 04:33:24 1997 UTC (28 years, 3 months ago) by thorpej
Branches: thorpej-setroot
Diff to: previous 1.18.2.1: preferred, colored; next MAIN 1.19: preferred, colored
Changes since revision 1.18.2.1: +2 -2
lines
Update from trunk.
Revision 1.19: download - view: text, markup, annotated - select for diffs
Wed Jan 15 01:37:56 1997 UTC (28 years, 3 months ago) by perry
Branches: MAIN
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +4 -2
lines
Eliminate obsolete TIMEZONE and DST options.
Eliminate obsolete global kernel variable "struct timezone tz"
Add RTC_OFFSET option
Add global kernel variable rtc_offset, which is initialized by
RTC_OFFSET at kernel compile time.
on i386, x68k, mac68k, pc532 and arm32, RTC_OFFSET indicates how many
minutes west (east) of GMT the hardware RTC runs. Defaults to 0.
Places where tz variable was used to indicate this in the past have
been replaced with rtc_offset.
Add sysctl interface to rtc_offset.
Kill obsolete DST_* macros in sys/time.h
gettimeofday now always returns zeroed timezone if zone is requested.
settimeofday now ignores and logs attempts to set non-existant kernel
timezone.
Revision 1.18.2.1: download - view: text, markup, annotated - select for diffs
Tue Jan 14 21:27:27 1997 UTC (28 years, 3 months ago) by thorpej
Branches: thorpej-setroot
Diff to: previous 1.18: preferred, colored
Changes since revision 1.18: +6 -2
lines
Snapshot of work-in-progress, committed to private branch.
These changes implement machine-independent root device and file system
selection. Notable features:
- All ports behave in a consistent manner regarding root
device selection.
- No more "options GENERIC"; all kernels have the ability
to boot with RB_ASKNAME to select root device and file system
type.
- Root file system type can be wildcarded; a machine-independent
function will try all possible file systems for the selected
root device until one succeeds.
- If the root file system fails to mount, the operator will
be given the chance to select a new root device and file
system type, rather than having the machine simply panic.
- nfs_mountroot() no longer panics if any part of the NFS
mount process fails; it now returns an error, giving the
operator a chance to recover.
- New, more consistent, config(8) grammar. The constructs:
config netbsd swap generic
config netbsd root on nfs
have been replaced with:
config netbsd root on ? type ?
config netbsd root on ? type nfs
Additionally, the operator may select or wildcard root file
system type in the kernel configuration file:
config netbsd root on cd0a type cd9660
config(8) now requires that a "root" specification be
made. "root" may be wired down or wildcarded. "swap" and
"dump" specifications are optional, and follow previous
semantics.
- config(8) has a new "file-system" keyword, used to configure
file systems into the kernel. Eventually, this will be used
to generate the default vfssw[].
- "options NFSCLIENT" is obsolete, and is replaced by
"file-system NFS". "options NFSSERVER" still exists, since
NFS server support is independent of the NFS file system
client.
- sys/arch/<foo>/<foo>/swapgeneric.c is no longer used, and
will be removed; all information is now generated by config(8).
As of this commit, all ports except arm32 have been updated to use
the new setroot(). Only SPARC, i386, and Alpha ports have been
tested at this time. Port masters should test these changes on their
ports, and report any problems back to me.
More changes are on their way, including RB_ASKNAME support in
nfs_mountroot() (to prompt for server address and path) and, potentially,
the ability to select rarp/bootparam or bootp in nfs_mountroot().
Revision 1.18: download - view: text, markup, annotated - select for diffs
Thu Jan 9 05:33:42 1997 UTC (28 years, 3 months ago) by thorpej
Branches: MAIN
Branch point for: thorpej-setroot
Diff to: previous 1.17: preferred, colored
Changes since revision 1.17: +29 -2
lines
Define top-level MIB node for DDB (CTL_DDB) and DDB MIB identifiers.
Revision 1.17: download - view: text, markup, annotated - select for diffs
Wed Jul 17 21:43:22 1996 UTC (28 years, 9 months ago) by explorer
Branches: MAIN
Diff to: previous 1.16: preferred, colored
Changes since revision 1.16: +6 -2
lines
Add compile-time and run-time control over automatic niceing
Revision 1.16: download - view: text, markup, annotated - select for diffs
Tue Apr 9 20:55:36 1996 UTC (29 years ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-2-base,
netbsd-1-2-RELEASE,
netbsd-1-2-PATCH001,
netbsd-1-2-BETA,
netbsd-1-2
Diff to: previous 1.15: preferred, colored
Changes since revision 1.15: +4 -4
lines
fix extra spaces at ends of lines, etc. (all spacing nits.)
Revision 1.15: download - view: text, markup, annotated - select for diffs
Sun Mar 17 02:42:48 1996 UTC (29 years, 1 month ago) by pk
Branches: MAIN
Diff to: previous 1.14: preferred, colored
Changes since revision 1.14: +4 -2
lines
Prototype sysctl_doprof()
Revision 1.14: download - view: text, markup, annotated - select for diffs
Tue Mar 12 00:22:43 1996 UTC (29 years, 1 month ago) by jonathan
Branches: MAIN
Diff to: previous 1.13: preferred, colored
Changes since revision 1.13: +2 -1
lines
Add missing CTL_KERN_NAMES entry for "timex", the kernel NTP state.
Revision 1.13: download - view: text, markup, annotated - select for diffs
Thu Mar 7 14:29:46 1996 UTC (29 years, 1 month ago) by christos
Branches: MAIN
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +2 -1
lines
exec_ecoff.h: add missing prototype for cpu_exec_ecoff_hook
sysctl.h: added missing prototype for sysctl_ntptime
systm.h: added missing prototypes for setjmp, longjmp.
Revision 1.12: download - view: text, markup, annotated - select for diffs
Tue Feb 27 04:20:33 1996 UTC (29 years, 2 months ago) by jonathan
Branches: MAIN
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +5 -2
lines
Add NTP kernel precision timekeeping from Dave Mill's xntp distribution
and the "kernel.tar.Z" distribution on louie.udel.edu, which is older than
xntp 3.4y or 3.5a, but contains newer kernel source fragments.
This commit adds support for a new kernel configuration option, NTP.
If NTP is selected, then the system clock should be run at "HZ", which
must be defined at compile time to be one value from:
60, 64, 100, 128, 256, 512, 1024.
Powers of 2 are ideal; 60 and 100 are supported but are marginally less
accurate.
If NTP is not configured, there should be no change in behavior relative
to pre-NTP kernels.
These changes have been tested extensively with xntpd 3.4y on a decstation;
almost identical kernel mods work on an i386. No pulse-per-second (PPS)
line discipline support is included, due to unavailability of hardware
to test it.
With this in-kernel PLL support for NetBSD, both xntp 3.4y and xntp
3.5a user-level code need minor changes. xntp's prototype for
syscall() is correct for FreeBSD, but not for NetBSD.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Fri Feb 9 18:25:39 1996 UTC (29 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +5 -1
lines
Filesystem prototype changes
Revision 1.10: download - view: text, markup, annotated - select for diffs
Sun Feb 4 02:12:42 1996 UTC (29 years, 2 months ago) by christos
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +27 -1
lines
Fix some missing/wrong prototypes so that kern/* compiles again
Revision 1.9: download - view: text, markup, annotated - select for diffs
Fri Aug 4 18:36:08 1995 UTC (29 years, 8 months ago) by thorpej
Branches: MAIN
CVS tags: netbsd-1-1-base,
netbsd-1-1-RELEASE,
netbsd-1-1-PATCH001,
netbsd-1-1
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +4 -2
lines
Add and document a `kern.rawpartition' sysctl.
Revision 1.8: download - view: text, markup, annotated - select for diffs
Wed Mar 29 22:10:15 1995 UTC (30 years, 1 month ago) by briggs
Branches: MAIN
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +2 -2
lines
KERNEL -> _KERNEL
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Mar 26 20:24:49 1995 UTC (30 years, 1 month ago) by jtc
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +4 -4
lines
KERNEL -> _KERNEL
Revision 1.6: download - view: text, markup, annotated - select for diffs
Wed Jan 25 06:08:12 1995 UTC (30 years, 3 months ago) by cgd
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +4 -2
lines
implement sysctl variable kern.maxpartitions
Revision 1.5: download - view: text, markup, annotated - select for diffs
Fri Sep 16 23:57:31 1994 UTC (30 years, 7 months ago) by deraadt
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +1 -10
lines
sparc is not special anymore
Revision 1.4: download - view: text, markup, annotated - select for diffs
Wed Jun 29 06:45:35 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
CVS tags: netbsd-1-0-base,
netbsd-1-0-RELEASE,
netbsd-1-0-PATCH1,
netbsd-1-0-PATCH06,
netbsd-1-0-PATCH05,
netbsd-1-0-PATCH04,
netbsd-1-0-PATCH03,
netbsd-1-0-PATCH02,
netbsd-1-0-PATCH0,
netbsd-1-0
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +2 -1
lines
New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD'
Revision 1.3: download - view: text, markup, annotated - select for diffs
Mon Jun 27 19:32:10 1994 UTC (30 years, 10 months ago) by cgd
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +2 -2
lines
new standard, minimally intrusive ID format
Revision 1.2: download - view: text, markup, annotated - select for diffs
Fri May 6 22:43:52 1994 UTC (30 years, 11 months ago) by cgd
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +2 -1
lines
don't forget that id!
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri May 6 22:42:07 1994 UTC (30 years, 11 months ago) by cgd
Branches: MAIN
latent support for general sysctl-ish stuff
CVSweb <webmaster@jp.NetBSD.org>