freebsd-skq/sys/netkey
Seigo Tanimura f591779bb5 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
..
key_debug.c - net.inet.ipsec.esp_auth hasn't been there 2001-11-05 16:46:24 +00:00
key_debug.h - net.inet.ipsec.esp_auth hasn't been there 2001-11-05 16:46:24 +00:00
key_var.h Newer SA is prefered for a out-bound packet than old one 2001-12-05 05:40:49 +00:00
key.c Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
key.h Sync with recent KAME. 2001-06-11 12:39:29 +00:00
keydb.c
keydb.h Sync with recent KAME. 2001-06-11 12:39:29 +00:00
keysock.c - net.inet.ipsec.esp_auth hasn't been there 2001-11-05 16:46:24 +00:00
keysock.h