freebsd-skq/sys
tanimura a09da29859 Lock struct pgrp, session and sigio.
New locks are:

- pgrpsess_lock which locks the whole pgrps and sessions,
- pg_mtx which protects the pgrp members, and
- s_mtx which protects the session members.

Please refer to sys/proc.h for the coverage of these locks.

Changes on the pgrp/session interface:

- pgfind() needs the pgrpsess_lock held.

- The caller of enterpgrp() is responsible to allocate a new pgrp and
  session.

- Call enterthispgrp() in order to enter an existing pgrp.

- pgsignal() requires a pgrp lock held.

Reviewed by:	jhb, alfred
Tested on:	cvsup.jp.FreeBSD.org
		(which is a quad-CPU machine running -current)
2002-02-23 11:12:57 +00:00
..
alpha Add some DIAGNOSTIC code. 2002-02-22 23:58:22 +00:00
amd64 Add some DIAGNOSTIC code. 2002-02-22 23:58:22 +00:00
arm We need machine/{signal,ucontext}.h to build a cross GCC compiler. 2001-12-09 19:39:49 +00:00
boot Keep track of the ttes used to map the kernel and pass them to it as loader 2002-02-23 11:06:37 +00:00
cam GC: BIO_ORDERED going away. 2002-02-22 09:18:46 +00:00
coda Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
compat Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
conf Don't echo a comment during make depend. 2002-02-23 01:49:13 +00:00
contrib Resolve conflicts arising from the ACPI CA 20020217 import. 2002-02-23 05:16:34 +00:00
crypto
ddb ^U kills an entire input line in most applications, 2002-02-12 23:38:40 +00:00
dev Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
fs Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
geom Reduce kernel stack usage of ccdinit() by MAXPATHLEN by using MALLOC(9). 2001-12-30 17:34:19 +00:00
gnu Update to C99, s/__FUNCTION__/__func__/, 2001-12-10 08:09:49 +00:00
i4b Make call_desc[] extern since it's also defined in layer4/i4b_l4mgmt.c 2002-01-13 19:16:52 +00:00
i386 Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
ia64 Add some DIAGNOSTIC code. 2002-02-22 23:58:22 +00:00
isa Disksort will not "munge" requests, BIO_ORDERED or not, so remove 2002-02-22 09:14:06 +00:00
isofs/cd9660
kern Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
libkern o Move NTOHL() and associated macros into <sys/param.h>. These are 2002-02-18 20:35:27 +00:00
modules (Belatedly) add the required EXPORT_SYMS. I'm not sure the list is complete, 2002-02-22 18:21:20 +00:00
net Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
netatalk Make `options NETATALK' compile after the -fno-common changes. 2002-01-16 11:26:50 +00:00
netatm Replace a few more lines of code orphaned by MFREE going away. 2002-02-07 22:08:32 +00:00
netgraph Send a NGM_PPPOE_ACNAME message to userland when a node is connected. 2002-02-20 15:51:11 +00:00
netinet BUGFIX: make use of the pointer to the target of skipto rules, 2002-02-20 17:15:57 +00:00
netinet6 o Move NTOHL() and associated macros into <sys/param.h>. These are 2002-02-18 20:35:27 +00:00
netipx Pre-KSE/M3 commit. 2002-02-07 20:58:47 +00:00
netkey Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
netnatm Initialise the intrq_present fields at runtime, not link time. This allows 2002-01-08 10:34:03 +00:00
netncp Update to C99, s/__FUNCTION__/__func__/, 2001-12-10 08:09:49 +00:00
netns Initialise the intrq_present fields at runtime, not link time. This allows 2002-01-08 10:34:03 +00:00
netsmb Remove redundant checks for iovcnt > 1. This should be handled properly 2002-02-21 16:18:39 +00:00
nfs When the old nfsm_adv() macro was moved to nfsm_adv_xx(), a '>=' 2001-12-31 06:56:31 +00:00
nfsclient Fix a long line touched in previous commit (but not caused by previous 2002-02-07 23:03:41 +00:00
nfsserver The vnode was not being vput()'d in the EEXIST mknod case on the nfs 2002-01-14 19:14:08 +00:00
pc98 Disksort will not "munge" requests, BIO_ORDERED or not, so remove 2002-02-22 09:14:06 +00:00
pccard Add some code which is compatible for NEWCARD. It makes manufacturer 2002-02-20 14:42:36 +00:00
pci Fix a formatting error. 2002-02-17 12:41:50 +00:00
posix4 In a threaded world, differnt priorirites become properties of 2002-02-11 20:37:54 +00:00
powerpc Don't call critical_enter()/critical_exit() around calls to pmap_pvo_enter() 2002-02-23 05:55:51 +00:00
rpc
security/lomac Part I: Update extended attribute API and ABI: 2002-02-10 04:43:22 +00:00
sparc64 Add some DIAGNOSTIC code. 2002-02-22 23:58:22 +00:00
svr4
sys Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
tools Throw the $FreeBSD$s back in, properly escaping them. 2002-01-04 05:27:47 +00:00
ufs Replace bowrite() with BUF_WRITE in ufs. 2002-02-22 09:03:00 +00:00
vm GC: BIO_ORDERED, various infrastructure dealing with BIO_ORDERED. 2002-02-22 09:26:35 +00:00
Makefile