]> Zhao Yanbai Git Server - minix.git/commit
New P_BLOCKEDON for kernel - a macro that encodes the "who is this
authorBen Gras <ben@minix3.org>
Wed, 3 Mar 2010 15:32:26 +0000 (15:32 +0000)
committerBen Gras <ben@minix3.org>
Wed, 3 Mar 2010 15:32:26 +0000 (15:32 +0000)
commit18924ea5633c3aef7f548ca056b962e360b6a32b
treeb5685f8dfb1c9368469ad33e0e0cc8216b0a833b
parentcbd276e4ce11c883d2b257a06888affdb7bb9e8e
New P_BLOCKEDON for kernel - a macro that encodes the "who is this
process waiting for" logic, which is duplicated a few times in the
kernel. (For a new feature for top.)

Introducing it and throwing out ESRCDIED and EDSTDIED (replaced by
EDEADSRCDST - so we don't have to care which part of the blocking is
failing in system.c) simplifies some code in the kernel and callers that
check for E{DEADSRCDST,ESRCDIED,EDSTDIED}, but don't care about the
difference, a fair bit, and more significantly doesn't duplicate the
'blocked-on' logic.
kernel/arch/i386/system.c
kernel/proc.c
kernel/proc.h
kernel/system.c