proc.h (302235) | proc.h (302328) |
---|---|
1/*- 2 * Copyright (c) 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)proc.h 8.15 (Berkeley) 5/19/95 | 1/*- 2 * Copyright (c) 1986, 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 18 unchanged lines hidden (view full) --- 27 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 28 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 29 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 30 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 31 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 32 * SUCH DAMAGE. 33 * 34 * @(#)proc.h 8.15 (Berkeley) 5/19/95 |
35 * $FreeBSD: head/sys/sys/proc.h 302235 2016-06-27 21:52:17Z kib $ | 35 * $FreeBSD: head/sys/sys/proc.h 302328 2016-07-03 18:19:48Z kib $ |
36 */ 37 38#ifndef _SYS_PROC_H_ 39#define _SYS_PROC_H_ 40 41#include <sys/callout.h> /* For struct callout. */ 42#include <sys/event.h> /* For struct klist. */ 43#include <sys/condvar.h> --- 462 unchanged lines hidden (view full) --- 506#define TD_CLR_LOCK(td) TD_CLR_INHIB((td), TDI_LOCK) 507#define TD_CLR_SUSPENDED(td) TD_CLR_INHIB((td), TDI_SUSPENDED) 508#define TD_CLR_IWAIT(td) TD_CLR_INHIB((td), TDI_IWAIT) 509 510#define TD_SET_RUNNING(td) (td)->td_state = TDS_RUNNING 511#define TD_SET_RUNQ(td) (td)->td_state = TDS_RUNQ 512#define TD_SET_CAN_RUN(td) (td)->td_state = TDS_CAN_RUN 513 | 36 */ 37 38#ifndef _SYS_PROC_H_ 39#define _SYS_PROC_H_ 40 41#include <sys/callout.h> /* For struct callout. */ 42#include <sys/event.h> /* For struct klist. */ 43#include <sys/condvar.h> --- 462 unchanged lines hidden (view full) --- 506#define TD_CLR_LOCK(td) TD_CLR_INHIB((td), TDI_LOCK) 507#define TD_CLR_SUSPENDED(td) TD_CLR_INHIB((td), TDI_SUSPENDED) 508#define TD_CLR_IWAIT(td) TD_CLR_INHIB((td), TDI_IWAIT) 509 510#define TD_SET_RUNNING(td) (td)->td_state = TDS_RUNNING 511#define TD_SET_RUNQ(td) (td)->td_state = TDS_RUNQ 512#define TD_SET_CAN_RUN(td) (td)->td_state = TDS_CAN_RUN 513 |
514#define TD_SBDRY_INTR(td) \ 515 (((td)->td_flags & (TDF_SEINTR | TDF_SERESTART)) != 0) 516#define TD_SBDRY_ERRNO(td) \ 517 (((td)->td_flags & TDF_SEINTR) != 0 ? EINTR : ERESTART) 518 |
|
514/* 515 * Process structure. 516 */ 517struct proc { 518 LIST_ENTRY(proc) p_list; /* (d) List of all processes. */ 519 TAILQ_HEAD(, thread) p_threads; /* (c) all threads. */ 520 struct mtx p_slock; /* process spin lock */ 521 struct ucred *p_ucred; /* (c) Process owner's identity. */ --- 579 unchanged lines hidden --- | 519/* 520 * Process structure. 521 */ 522struct proc { 523 LIST_ENTRY(proc) p_list; /* (d) List of all processes. */ 524 TAILQ_HEAD(, thread) p_threads; /* (c) all threads. */ 525 struct mtx p_slock; /* process spin lock */ 526 struct ucred *p_ucred; /* (c) Process owner's identity. */ --- 579 unchanged lines hidden --- |