NetBSD/sys/kern
simonb 485b240b6f 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.
2000-05-26 02:23:12 +00:00
..
exec_aout.c add a new function vn_marktext() for exec code to let others know 2000-04-11 04:37:47 +00:00
exec_conf.c defopt COMPAT_VAX1K 2000-01-17 02:59:25 +00:00
exec_ecoff.c add a new function vn_marktext() for exec code to let others know 2000-04-11 04:37:47 +00:00
exec_elf32.c add a new function vn_marktext() for exec code to let others know 2000-04-11 04:37:47 +00:00
exec_elf64.c
exec_elf_common.c
exec_script.c (exec_script_makecmds): remove declaration of vnops, now in 2000-02-01 01:23:29 +00:00
exec_subr.c Handle misalignment in vmcmd_map_readvn and vmcmd_map_zero correctly. 1999-07-07 20:23:45 +00:00
genassym.awk
genassym.sh
init_main.c Introduce a new process state distinct from SRUN called SONPROC 2000-05-26 00:36:42 +00:00
init_sysent.c Regen. 2000-04-21 16:16:15 +00:00
kern_acct.c Don't reset file size limit to infinity on exit. Instead, temporarily 2000-05-08 19:06:36 +00:00
kern_allocsys.c Call the routine to calculate callwheelsize from allocsys() instead of 2000-03-24 11:57:14 +00:00
kern_clock.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
kern_descrip.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
kern_exec.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
kern_exit.c __predict_false() the test for init exiting. 2000-05-08 19:58:17 +00:00
kern_fork.c __predict_false() the test for full process table, user exceeding their 2000-05-08 19:59:21 +00:00
kern_kthread.c __predict_false() fork1() failing. 2000-05-08 19:59:48 +00:00
kern_ktrace.c ktrgenio(): __predict_false() ktrwrite() failing. 2000-05-08 20:01:05 +00:00
kern_lkm.c Don't need to declare nblkdev, nchrdev - these are in <sys/systm.h>. 2000-03-28 06:26:22 +00:00
kern_lock.c Fix a typo, and add some lint comments. 2000-05-23 05:17:11 +00:00
kern_malloc.c __predict_false() the check for bogus malloc type, running out of space 2000-05-08 20:02:21 +00:00
kern_ntptime.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
kern_physio.c __predict_false() uvm_useracc() failure. 2000-05-08 20:03:20 +00:00
kern_proc.c __predict_false() the DIAGNOSTIC error checks. 2000-05-08 20:07:37 +00:00
kern_prot.c Add native issetugid() call. 2000-04-21 16:15:39 +00:00
kern_resource.c Introduce a new process state distinct from SRUN called SONPROC 2000-05-26 00:36:42 +00:00
kern_sig.c Introduce a new process state distinct from SRUN called SONPROC 2000-05-26 00:36:42 +00:00
kern_subr.c Check malloc failure. 2000-05-10 02:16:15 +00:00
kern_synch.c Introduce a new process state distinct from SRUN called SONPROC 2000-05-26 00:36:42 +00:00
kern_sysctl.c Add some new sysctls to help abolish the dreaded "proc size mismatch" 2000-05-26 02:23:12 +00:00
kern_time.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
kern_xxx.c
kgdb_stub.c
Make.tags.inc
Makefile
makesyscalls.sh Clean up some whitespace issues in the generated syscallargs.h file. 1999-08-20 19:07:31 +00:00
subr_autoconf.c Get rid of a lot of register declarations. 2000-03-28 17:30:10 +00:00
subr_disk.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
subr_extent.c Kludge: 2000-05-24 02:22:36 +00:00
subr_log.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
subr_pool.c __predict_false() the DIAGNOSTIC and other error condition checks. 2000-05-08 20:09:44 +00:00
subr_prf.c Support ddb-specific nonstandard printf formats %r and %z in kprintf(), 2000-05-25 21:32:41 +00:00
subr_prof.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
subr_rmap.c
subr_xxx.c
sys_generic.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
sys_process.c
sys_socket.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
syscalls.c Regen. 2000-04-21 16:16:15 +00:00
syscalls.conf Add COMPAT_14. 1999-08-25 04:55:53 +00:00
syscalls.master Add native issetugid() call. 2000-04-21 16:15:39 +00:00
sysv_ipc.c
sysv_msg.c Remove bogus "#ifdef EIDRM" checks and warnings that BSD doesn't define 2000-04-12 13:08:26 +00:00
sysv_sem.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
sysv_shm.c Remove shmsegs declaration from conf/param.c - it doesn't belong here. 2000-04-15 16:49:35 +00:00
tty_conf.c
tty_pty.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
tty_subr.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
tty_tb.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
tty_tty.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
tty.c Introduce a new process state distinct from SRUN called SONPROC 2000-05-26 00:36:42 +00:00
uipc_domain.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
uipc_mbuf2.c introduce m->m_pkthdr.aux to hold random data which needs to be passed 2000-03-01 12:49:27 +00:00
uipc_mbuf.c introduce m->m_pkthdr.aux to hold random data which needs to be passed 2000-03-01 12:49:27 +00:00
uipc_proto.c add PR_LISTEN for UNIX domain socket, SOCK_STREAM case. 1999-07-01 07:59:57 +00:00
uipc_socket2.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
uipc_socket.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
uipc_syscalls.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
uipc_usrreq.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
vfs_bio.c Fix from Ethan Solomita <ethan@geocast.com> to avoid a livelock problem 2000-04-12 11:33:43 +00:00
vfs_cache.c change "nextvnodeid" from a global in namei.h to a static in 2000-04-16 21:41:49 +00:00
vfs_cluster.c First round of discarding the CL* macros. 1999-12-03 21:43:19 +00:00
vfs_getcwd.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
vfs_init.c Add Kirk McKusick's soft updates code to the trunk. Not enabled by 1999-11-15 18:49:07 +00:00
vfs_lockf.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
vfs_lookup.c Get rid of register declarations. 2000-03-30 09:27:11 +00:00
vfs_subr.c add ddb commands for printing vnodes and bufs. 2000-04-10 02:22:13 +00:00
vfs_syscalls.c implement lchflags(2), which does the chflags(2) dance without following 2000-04-17 14:31:21 +00:00
vfs_vnops.c add a new function vn_marktext() for exec code to let others know 2000-04-11 04:37:47 +00:00
vnode_if.c Change the sementics of the last parameter from a boolean ("waitfor") to 2000-05-13 23:43:06 +00:00
vnode_if.sh Update syntax to support WILLUNLOCK and WILLPUT syntax. Change calls which 1999-07-07 23:32:50 +00:00
vnode_if.src Change the sementics of the last parameter from a boolean ("waitfor") to 2000-05-13 23:43:06 +00:00