Date: Tue, 6 Mar 2001 17:51:34 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys proc.h Message-ID: <200103070151.f271pYF61786@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
jhb 2001/03/06 17:51:34 PST Modified files: sys/sys proc.h Log: - In the locking key for struct proc, generalize the '+' symbol to mean that write access to a member requires both locks and read access only requires one of the given locks. Convert instances of '(c+)' to '(c + k)' as a result. - Change p_pptr from (e) to (c + e). - Change p_oppid from (c) to (c + e). - Change p_args from (b?) to (c + k). - Move the actual work of STOPEVENT, PHOLD, and PRELE to _STOPEVENT, _PHOLD, and _PRELE. The new macros do not acquire the proc lock and simply assert that it is held. The non _ prefixed macros acquire the proc lock and then call the _ prefixed macros. - Add a PROC_LOCK_NOSWITCH() macro to be used when releasing the proc lock while already holding a spin lock (usually sched_lock). - Add a PROC_LOCK_ASSERT() macro to be used to make assertions about the proc lock. It takes the usual mtx_assert() macro arguments as its second argument. Revision Changes Path 1.153 +28 -20 src/sys/sys/proc.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200103070151.f271pYF61786>