NetBSD/sys/sys
bouyer 629150f864 Add the sched_suspend/sched_resume functions, as discussed on tech-kern,
with the following modifications to the initial patch:
- rename SHOLD and P_HOST to SSUSPEND and P_SUSPEND to avoid confusion with
  PHOLD()
- don't deal with SSUSPEND/P_SUSPEND in fork1(), if we come here while
  scheduler is suspended we're forking proc0, which can't have P_SUSPEND set.

sched_suspend() suspends the scheduling of users process, by removing all
processes from the run queues and changing their state from SRUN to
SSUSPEND. Also mark all user process but curproc P_SUSPEND.
When a process has to be put in SRUN and is marked P_SUSPEND, it's placed in
the SSUSPEND state instead.
sched_resume() places all SSUSPEND processes back in SRUN, clear the P_SUSPEND
flag.
2000-08-31 14:36:19 +00:00
..
Makefile move socklen_t decl to sys/ansi.h. 2000-06-04 08:50:28 +00:00
acct.h Create new kernel thread to issue statfs(2) system call to check free 2000-03-10 01:13:18 +00:00
ansi.h Add brief descriptions to the types provided. 2000-06-26 17:11:32 +00:00
ataio.h Add a new flag: ATACMD_READREG 1998-11-23 22:58:23 +00:00
audioio.h change the value of audio_prinfo.seek from u_long to u_int before it causes 1998-08-13 06:28:41 +00:00
bswap.h tread _STANDALONE like _KERNEL: don't rename bswapNN functions 2000-02-03 02:03:12 +00:00
buf.h add ddb commands for printing vnodes and bufs. 2000-04-10 02:22:13 +00:00
callout.h Un-__P. 2000-08-01 04:58:55 +00:00
cdefs.h Remove the "kprintf" gcc attribute permanently. Use standard "printf" 2000-08-09 03:23:10 +00:00
cdefs_aout.h #ifdef __STDC__ -> #if __STDC__ 2000-08-07 16:35:33 +00:00
cdefs_elf.h #ifdef __STDC__ -> #if __STDC__ 2000-08-07 16:35:33 +00:00
cdio.h Multisession-CD-Support, by Torsten Duwe <duwe@ns.lst.de>. 1999-01-04 15:32:08 +00:00
chio.h Rework the changer driver a bit: 1999-09-09 23:24:11 +00:00
clist.h
conf.h Backout last iic change. Will work with cgd to get an i2c code we all 2000-07-21 19:41:57 +00:00
core.h Format for 32-bit core images. 1999-12-30 15:45:09 +00:00
device.h Make gcc-2.96 shutup about trigraph ignored. 2000-07-22 05:02:24 +00:00
dir.h
dirent.h
disk.h Nuke dk_establish() from orbit except from those ports which still use 2000-05-16 05:45:44 +00:00
disklabel.h fsck_lfs can now write to the filesystem, allowing it to correct most 2000-05-16 04:55:58 +00:00
disklabel_mbr.h Correct handling of extended partitions within extended partitions. 1999-09-23 15:21:12 +00:00
dkbad.h
dkio.h Implement the DIOCKLABEL ioctl. Through this ioctl it it possible keep the 1999-12-23 21:23:19 +00:00
dkstat.h Move schedticks and cp_time into schedstate_percpu. Also, allow 2000-06-03 20:42:42 +00:00
domain.h
dvdio.h Whitespace police. 2000-05-28 20:03:21 +00:00
endian.h Allow mips endian_machdep.h to see _LITTLE_ENDIAN and _BIG_ENDIAN. 2000-03-17 11:47:43 +00:00
envsys.h Pull in <sys/ioccom.h>, and define ENVSYS_NSENSORS (number of sensor 2000-06-24 19:50:28 +00:00
errno.h Remove ENOTSUP for the moment. This needs a unique number, as noted by 2000-07-14 21:39:56 +00:00
eventvar.h freebsd kqueue implementation 2000-07-18 22:11:54 +00:00
exec.h Extend the vmcmd stuff a bit. Add a flags field and define 2000-07-13 01:24:04 +00:00
exec_aout.h Merge in NetBSD/sh3 from cvs.kame.net repository. 1999-09-13 10:30:21 +00:00
exec_coff.h Move a bunch of the COFF definitions into exec_coff.h, so they can be used by 2000-06-04 16:23:59 +00:00
exec_ecoff.h * don't have the [onz]magic setup functions set up the stack. 1999-04-27 05:36:43 +00:00
exec_elf.h Introduce Elf64_Xword and Elf64_Sxword, and use them in various places instead 2000-07-26 02:04:53 +00:00
exec_script.h
extent.h Fix copyright typos... 1998-09-13 14:46:23 +00:00
fcntl.h Add a new flag, used by vn_open() which prevent symlinks from being followed 1999-08-31 12:30:35 +00:00
fdio.h Fix copyright typos... 1998-09-13 14:46:23 +00:00
featuretest.h Define _REENTRANT if appropriate. 1998-10-24 16:30:56 +00:00
file.h add declaration for `vnops' 2000-02-01 01:22:45 +00:00
filedesc.h Implement fdremove() which is used in place of all the code that 2000-03-23 05:16:12 +00:00
filio.h
gmon.h
inttypes.h Define intptr_t and uintptr_t via <machine/int_types.h>. 2000-06-27 05:51:54 +00:00
ioccom.h
ioctl.h add checks for COMPAT_OSF1 in the appropriate places 1999-04-30 05:29:20 +00:00
ioctl_compat.h
ipc.h Add new sysctl node "KERN_SYSVIPC_INFO" with "KERN_SYSVIPC_MSG_INFO", 2000-06-02 15:53:03 +00:00
kcore.h
kernel.h New callout mechanism with two major improvements over the old 2000-03-23 06:30:07 +00:00
kgdb.h Fix copyright typos... 1998-09-13 14:46:23 +00:00
kthread.h ANSI'ify. 2000-07-14 07:14:33 +00:00
ktrace.h Reduce use of curproc in several places: 2000-05-27 00:40:29 +00:00
lkm.h make lkm_name in struct lkm_* a const 2000-05-02 22:13:20 +00:00
localedef.h
lock.h Since the spinlock count is per-cpu, we don't need atomic operations 2000-08-26 19:26:43 +00:00
lockf.h guard prototypes for lf_* functions by ifdef _KERNEL 2000-08-04 09:20:21 +00:00
malloc.h Need opt_lockdebug.h for previous. 2000-06-24 23:52:24 +00:00
map.h
mbuf.h repair m_dup(). specifically, now it is safe against non-MCLBYTES cluster 2000-08-18 16:19:22 +00:00
md5.h
midiio.h Make the copyright header conform to the NetBSD template. 1998-11-25 22:17:06 +00:00
mman.h Rename VM_INHERIT_* to MAP_INHERIT_* and move them to sys/sys/mman.h as 2000-08-01 00:53:07 +00:00
mount.h add an MNT_IGNORE flag as a hint to df not to list the filesystem by default. 2000-06-26 21:10:34 +00:00
msg.h Add new sysctl node "KERN_SYSVIPC_INFO" with "KERN_SYSVIPC_MSG_INFO", 2000-06-02 15:53:03 +00:00
msgbuf.h
mtio.h Correct comment about mt_fileno and mt_blkno. 1999-09-07 13:55:27 +00:00
namei.h Convert namei pathname buffer allocation to use the pool allocator. 2000-08-03 20:41:05 +00:00
null.h Handle non-GNU C++ as well. Pointed out by Klaus Klein. 2000-05-19 18:57:48 +00:00
param.h Remove the "kprintf" gcc attribute permanently. Use standard "printf" 2000-08-09 03:23:10 +00:00
poll.h Fix copyright typos... 1998-09-13 14:46:23 +00:00
pool.h Change ratecap to its presumably intended type of struct timeval. 2000-02-14 21:17:04 +00:00
proc.h Add the sched_suspend/sched_resume functions, as discussed on tech-kern, 2000-08-31 14:36:19 +00:00
protosw.h Change the use of pfil hooks. There is no longer a single list of all 2000-02-17 10:59:32 +00:00
ptrace.h
queue.h Fix CIRCLEQ_FOREACH so that it actually works. I guess noone has used this 2000-07-26 12:19:40 +00:00
reboot.h g/c RB_DFLTROOT 2000-07-29 20:06:27 +00:00
resource.h Remplace kern.shortcorename sysctl with a more flexible sheme, 1999-09-28 14:47:00 +00:00
resourcevar.h Remplace kern.shortcorename sysctl with a more flexible sheme, 1999-09-28 14:47:00 +00:00
rnd.h /dev/random code cleanups: 2000-06-05 23:42:34 +00:00
scanio.h
sched.h Forward-declare struct cpu_info 2000-08-26 04:17:44 +00:00
scsiio.h add SCBUSACCEL ioctl 2000-08-08 22:45:03 +00:00
select.h
sem.h Add new sysctl node "KERN_SYSVIPC_INFO" with "KERN_SYSVIPC_MSG_INFO", 2000-06-02 15:53:03 +00:00
sha1.h Cosmetic changes. 1998-05-29 22:55:44 +00:00
shm.h Add new sysctl node "KERN_SYSVIPC_INFO" with "KERN_SYSVIPC_MSG_INFO", 2000-06-02 15:53:03 +00:00
signal.h g/c SA_USERTRAMP (ok'd by pk) 1998-12-21 10:34:59 +00:00
signalvar.h Add a lock around the scheduler, and use it as necessary, including 2000-08-20 21:50:06 +00:00
socket.h Avoid recursion with traditional cpp. 2000-07-28 09:33:28 +00:00
socketvar.h Remove duplicate declaration of sonewconn1() - there's another further 2000-03-28 05:06:20 +00:00
sockio.h Define SIOC[SG]IFGENERIC in <sys/sockio.h>, as FreeBSD and OpenBSD do. 2000-08-10 11:48:41 +00:00
stat.h implement lchflags(2), which does the chflags(2) dance without following 2000-04-17 14:31:21 +00:00
swap.h completely remove Mach VM support. all that is left is the all the 1999-03-24 05:50:49 +00:00
syscall.h update for changed makesyscalls.master 2000-08-18 19:35:15 +00:00
syscallargs.h update for changed makesyscalls.master 2000-08-18 19:35:15 +00:00
sysctl.h ditch the ifndef _KERNEL around includes needed for some parts 2000-07-22 14:59:23 +00:00
syslimits.h 1003.1c: add {LOGIN_NAME_MAX}. 1999-09-27 16:24:39 +00:00
syslog.h Remove the "kprintf" gcc attribute permanently. Use standard "printf" 2000-08-09 03:23:10 +00:00
systm.h Define the MI parts of the "big kernel lock" perimeter. From 2000-08-22 17:28:28 +00:00
tablet.h
termios.h ONOEOT isn't X/Open. 1999-08-22 13:12:41 +00:00
time.h add ppsratelimit(9), which does event-per-sec rate limitation. 2000-07-09 06:44:57 +00:00
timeb.h
timepps.h #if 0 a static declaration for a function that does not exist. 2000-07-23 22:56:14 +00:00
times.h
timex.h
tprintf.h Remove the "kprintf" gcc attribute permanently. Use standard "printf" 2000-08-09 03:23:10 +00:00
trace.h
tty.h Declarations of ctty{open,read,write,ioctl,poll} are covered by the 2000-03-28 05:52:15 +00:00
ttychars.h
ttycom.h preliminary support for HDLCDISC [from pppd-2.3.9] 1999-08-25 01:47:33 +00:00
ttydefaults.h set CSTATUS to CTRL('t') 2000-08-05 01:27:12 +00:00
ttydev.h
types.h Avoid recursion with traditional cpp. 2000-07-28 09:33:28 +00:00
ucred.h
uio.h * Also take into consideration _POSIX_C_SOURCE for name space protection. 1999-03-28 17:47:06 +00:00
un.h Avoid recursion with traditional cpp. 2000-07-28 09:33:28 +00:00
unistd.h 1003.1c: add {LOGIN_NAME_MAX}. 1999-09-27 16:24:39 +00:00
unpcb.h
user.h Pull signal actions out of struct user, make them a separate proc 1999-04-30 21:23:49 +00:00
utsname.h Need <sys/featuretest.h> for previous commit's use of _POSIX_C_SOURCE to work 1998-11-09 13:00:41 +00:00
vadvise.h
vmmeter.h completely remove Mach VM support. all that is left is the all the 1999-03-24 05:50:49 +00:00
vnode.h When unmounting, make sure to free the syncer vnode so that it can be reused. 2000-07-09 00:59:03 +00:00
vnode_if.h Change the sementics of the last parameter from a boolean ("waitfor") to 2000-05-13 23:43:06 +00:00
wait.h Allow an alternate exit signal (i.e. not SIGCHLD) to be delivered to the 1999-05-13 00:59:03 +00:00