freebsd-skq/sys/net
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
..
bpf_compat.h Small fix for bpf compat: 2000-12-27 22:20:13 +00:00
bpf_filter.c sparc64 needs the same alignment fixes that ia64 and alpha need. 2001-12-29 08:44:08 +00:00
bpf.c Make bpf's read timeout feature work more correctly with 2001-12-14 22:17:54 +00:00
bpf.h Update our bpf.h with tcpdump.org's new DLT_ types. 2001-07-31 23:27:06 +00:00
bpfdesc.h Make bpf's read timeout feature work more correctly with 2001-12-14 22:17:54 +00:00
bridge.c o Move NTOHL() and associated macros into <sys/param.h>. These are 2002-02-18 20:35:27 +00:00
bridge.h Lots of improvement to the bridging code. 2002-02-15 05:11:11 +00:00
bsd_comp.c Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
ethernet.h Don't pass an interface pointer to VLAN_INPUT{,_TAG}. Get it from the 2001-12-03 17:28:27 +00:00
fddi.h Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
if_arc.h remove superflous empty line (in preparation to MFC) 2002-02-13 19:36:14 +00:00
if_arcsubr.c - generic Arcnet framework 2002-01-08 20:03:13 +00:00
if_arp.h bring in ARP support for variable length link level addresses 2001-10-14 20:17:53 +00:00
if_atm.h Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
if_atmsubr.c Fix warning; remove unused variable 2001-06-15 07:32:25 +00:00
if_disc.c minor style fix. 2001-12-14 19:28:06 +00:00
if_dl.h The "sdl_family" field in a "struct sockaddr_dl" will be equal 2000-03-01 02:46:25 +00:00
if_ef.c Update to C99, s/__FUNCTION__/__func__/, 2001-12-10 08:09:49 +00:00
if_ethersubr.c Remove useless initialization to 0 of a couple of global variables. 2002-02-15 04:57:18 +00:00
if_faith.c Staticise private interface lists. 2002-01-08 10:30:09 +00:00
if_fddisubr.c bring in ARP support for variable length link level addresses 2001-10-14 20:17:53 +00:00
if_gif.c Staticise private interface lists. 2002-01-08 10:30:09 +00:00
if_gif.h /home/brooks/ng_gif.message 2001-09-26 23:50:17 +00:00
if_ieee80211.h Currently, each wireless networking driver has it's own control program 2001-05-26 09:27:08 +00:00
if_iso88025subr.c whitespace fixes. 2001-12-14 19:32:47 +00:00
if_llc.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
if_loop.c sparc64 needs the same alingment fixes that alpha and ia64 do. 2001-12-29 08:45:17 +00:00
if_media.c Currently, each wireless networking driver has it's own control program 2001-05-26 09:27:08 +00:00
if_media.h Currently, each wireless networking driver has it's own control program 2001-05-26 09:27:08 +00:00
if_mib.c The interface index space may be sparsely populated (e.g. when an 2001-10-17 04:12:29 +00:00
if_mib.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
if_ppp.c Get rid of the twisted MFREE() macro entirely. 2002-02-05 02:00:56 +00:00
if_ppp.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
if_pppvar.h Staticise private interface lists. 2002-01-08 10:30:09 +00:00
if_sl.c Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
if_slvar.h sc_lasttime and sc_starttime are time_t's, not long's. 2001-10-27 20:31:24 +00:00
if_sppp.h Implement an option to administratively disable the negotiation of 2001-12-30 20:42:29 +00:00
if_spppsubr.c Implement an option to administratively disable the negotiation of 2001-12-30 20:42:29 +00:00
if_stf.c Staticise private interface lists. 2002-01-08 10:30:09 +00:00
if_stf.h Patches from KAME to remove usage of Varargs in existing 2001-09-07 07:19:12 +00:00
if_tap.c Get rid of the twisted MFREE() macro entirely. 2002-02-05 02:00:56 +00:00
if_tap.h Add the tap driver. 2000-07-20 17:01:10 +00:00
if_tapvar.h Add cloning support for the tap(4) device similar to that in the tun(4) 2001-09-05 01:06:21 +00:00
if_tun.c Get rid of the twisted MFREE() macro entirely. 2002-02-05 02:00:56 +00:00
if_tun.h Implement TUN[GS]IFHEAD ioctls. Passing a non-zero int to TUNSIFHEAD 2000-01-23 01:47:12 +00:00
if_tunvar.h Support /dev/tun cloning. Ansify if_tun.c while I'm there. 2001-06-01 15:51:10 +00:00
if_types.h Add recently assigned interface types. 2001-04-04 14:18:57 +00:00
if_var.h whitespace fixes. 2001-12-14 19:32:47 +00:00
if_vlan_var.h Make vlan(4) loadable, unloadable, and clonable. As a side effect, 2001-09-05 21:10:28 +00:00
if_vlan.c - Utilize the great M_ZERO flag rather than allocating memory then do 2001-11-21 20:29:08 +00:00
if.c When the local link address is changed, send out gratuitous ARPs 2002-02-18 22:50:13 +00:00
if.h Introduce an interface announcement message for the routing 2002-01-18 14:33:04 +00:00
intrq.c Initialise the intrq_present fields at runtime, not link time. This allows 2002-01-08 10:34:03 +00:00
intrq.h Initialise the intrq_present fields at runtime, not link time. This allows 2002-01-08 10:34:03 +00:00
iso88025.h - Define payload length constants for 4Mbps and 16Mbps. 2001-03-18 05:41:07 +00:00
net_osdep.c incorrect bounds-check on snprintf. 2001-07-26 19:14:52 +00:00
net_osdep.h Sync with recent KAME. 2001-06-11 12:39:29 +00:00
netisr.h Device Polling code for -current. 2001-12-14 17:56:12 +00:00
pfil.c Mechanical change to use <sys/queue.h> macro API instead of 2001-02-04 13:13:25 +00:00
pfil.h Remove extra memory region kept by "struct pfil_head pfil_head_t;". 2001-10-22 08:46:23 +00:00
pfkeyv2.h printed current sequence number of the SA. accordingly, changed 2001-08-06 19:40:01 +00:00
ppp_comp.h Remove bogus undocumented macros used to control conditional assembly. 2000-10-27 08:39:41 +00:00
ppp_deflate.c Undo part of the tangle of having sys/lock.h and sys/mutex.h included in 2001-05-01 08:13:21 +00:00
ppp_defs.h Sync with recent KAME. 2001-06-11 12:39:29 +00:00
ppp_tty.c Get rid of the twisted MFREE() macro entirely. 2002-02-05 02:00:56 +00:00
radix.c Initialize rn_mklist in rn_newpair(). The undocumented assumption 2000-10-27 20:50:14 +00:00
radix.h A couple months ago, Kirk and I were doing a walkthrough of the radix-tree 2000-04-23 04:00:00 +00:00
raw_cb.c Give struct socket structures a ref counting interface similar to 2001-11-17 03:07:11 +00:00
raw_cb.h KSE Milestone 2 2001-09-12 08:38:13 +00:00
raw_usrreq.c Give struct socket structures a ref counting interface similar to 2001-11-17 03:07:11 +00:00
route.c Fix a typo in a comment 2001-11-28 16:15:52 +00:00
route.h Introduce an interface announcement message for the routing 2002-01-18 14:33:04 +00:00
rtsock.c Prevent the kernel from generating an unaligned sysctl data buffer on 2002-01-27 20:39:01 +00:00
slcompress.c Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00
slcompress.h Pass me the pointy hat. 2000-04-04 09:20:53 +00:00
slip.h $Id$ -> $FreeBSD$ 1999-08-28 01:08:13 +00:00
zlib.c Error handling fixes for inflate. 2002-02-17 17:35:18 +00:00
zlib.h Change #ifdef KERNEL to #ifdef _KERNEL in the public headers. "KERNEL" 1999-12-29 04:46:21 +00:00