freebsd-skq/sys/compat/linux
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
..
linux_file.c Lock struct pgrp, session and sigio. 2002-02-23 11:12:57 +00:00
linux_getcwd.c
linux_ioctl.c fix file descriptor leak. 2002-02-20 17:06:37 +00:00
linux_ioctl.h
linux_ipc.c
linux_ipc.h
linux_mib.c
linux_mib.h
linux_misc.c
linux_signal.c
linux_signal.h
linux_socket.c
linux_socket.h
linux_stats.c
linux_sysctl.c
linux_uid16.c
linux_util.c
linux_util.h Garbage collect options AVM_A1_PCI, AVM_A1_PCMCIA, DEBUG_LINUX, DEV_APM, 2002-02-15 10:19:39 +00:00