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 Fix warning in debug printf. This is a long on alpha, and int on i386, 2001-11-17 01:16:10 +00:00
linux_ioctl.c fix file descriptor leak. 2002-02-20 17:06:37 +00:00
linux_ioctl.h Deal with a few issues that cropped up following the recent changes 2001-11-19 15:43:50 +00:00
linux_ipc.c Introduce [IPC|SHM]_[INFO|STAT] to shmctl to make 2001-10-28 09:29:10 +00:00
linux_ipc.h KSE Milestone 2 2001-09-12 08:38:13 +00:00
linux_mib.c o Introduce pr_mtx into struct prison, providing protection for the 2001-12-03 16:12:27 +00:00
linux_mib.h o Introduce pr_mtx into struct prison, providing protection for the 2001-12-03 16:12:27 +00:00
linux_misc.c Linux/alpha uses the same BSDish return mechanism we do for 2002-01-23 22:46:14 +00:00
linux_signal.c KSE Milestone 2 2001-09-12 08:38:13 +00:00
linux_signal.h KSE Milestone 2 2001-09-12 08:38:13 +00:00
linux_socket.c Fix missing holdsock()->fgetsock() 2001-11-17 18:43:13 +00:00
linux_socket.h translate the flags in recvfrom and recvmsg from linux to bsd ones 2000-12-19 00:24:25 +00:00
linux_stats.c Replace ffind_* with fget calls. 2002-01-14 00:13:45 +00:00
linux_sysctl.c KSE Milestone 2 2001-09-12 08:38:13 +00:00
linux_uid16.c When casting from uid16/gid16 to uid/gid respectively, make sure 2001-10-14 03:56:53 +00:00
linux_util.c Eliminate the prefix parameter to linux_emul_find(), which was always 2001-10-27 11:15:19 +00:00
linux_util.h Garbage collect options AVM_A1_PCI, AVM_A1_PCMCIA, DEBUG_LINUX, DEV_APM, 2002-02-15 10:19:39 +00:00