Deleted Added
full compact
proc.h (131473) proc.h (131481)
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 131473 2004-07-02 19:09:50Z jhb $
35 * $FreeBSD: head/sys/sys/proc.h 131481 2004-07-02 20:21:44Z jhb $
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#ifndef _KERNEL

--- 297 unchanged lines hidden (view full) ---

341/* Flags kept in td_flags: */
342#define TDF_INPANIC 0x000002 /* Caused a panic, let it drive crashdump. */
343#define TDF_CAN_UNBIND 0x000004 /* Only temporarily bound. */
344#define TDF_SINTR 0x000008 /* Sleep is interruptible. */
345#define TDF_TIMEOUT 0x000010 /* Timing out during sleep. */
346#define TDF_IDLETD 0x000020 /* This is one of the per-CPU idle threads. */
347#define TDF_SELECT 0x000040 /* Selecting; wakeup/waiting danger. */
348#define TDF_TSNOBLOCK 0x000100 /* Don't block on a turnstile due to race. */
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#ifndef _KERNEL

--- 297 unchanged lines hidden (view full) ---

341/* Flags kept in td_flags: */
342#define TDF_INPANIC 0x000002 /* Caused a panic, let it drive crashdump. */
343#define TDF_CAN_UNBIND 0x000004 /* Only temporarily bound. */
344#define TDF_SINTR 0x000008 /* Sleep is interruptible. */
345#define TDF_TIMEOUT 0x000010 /* Timing out during sleep. */
346#define TDF_IDLETD 0x000020 /* This is one of the per-CPU idle threads. */
347#define TDF_SELECT 0x000040 /* Selecting; wakeup/waiting danger. */
348#define TDF_TSNOBLOCK 0x000100 /* Don't block on a turnstile due to race. */
349#define TDF_OWEPREEMPT 0x000200 /* Thread has a pending preemption. */
349#define TDF_ASTPENDING 0x000800 /* Thread has some asynchronous events. */
350#define TDF_TIMOFAIL 0x001000 /* Timeout from sleep after we were awake. */
351#define TDF_INTERRUPT 0x002000 /* Thread is marked as interrupted. */
352#define TDF_USTATCLOCK 0x004000 /* Finish user statclock hit at next AST. */
353#define TDF_OWEUPC 0x008000 /* Owe thread an addupc() call at next AST. */
354#define TDF_NEEDRESCHED 0x010000 /* Thread needs to yield. */
355#define TDF_NEEDSIGCHK 0x020000 /* Thread may need signal delivery. */
356#define TDF_UMTXWAKEUP 0x080000 /* Libthr thread must not sleep on a umtx. */

--- 488 unchanged lines hidden (view full) ---

845void faultin(struct proc *p);
846void fixjobc(struct proc *p, struct pgrp *pgrp, int entering);
847int fork1(struct thread *, int, int, struct proc **);
848void fork_exit(void (*)(void *, struct trapframe *), void *,
849 struct trapframe *);
850void fork_return(struct thread *, struct trapframe *);
851int inferior(struct proc *p);
852int leavepgrp(struct proc *p);
350#define TDF_ASTPENDING 0x000800 /* Thread has some asynchronous events. */
351#define TDF_TIMOFAIL 0x001000 /* Timeout from sleep after we were awake. */
352#define TDF_INTERRUPT 0x002000 /* Thread is marked as interrupted. */
353#define TDF_USTATCLOCK 0x004000 /* Finish user statclock hit at next AST. */
354#define TDF_OWEUPC 0x008000 /* Owe thread an addupc() call at next AST. */
355#define TDF_NEEDRESCHED 0x010000 /* Thread needs to yield. */
356#define TDF_NEEDSIGCHK 0x020000 /* Thread may need signal delivery. */
357#define TDF_UMTXWAKEUP 0x080000 /* Libthr thread must not sleep on a umtx. */

--- 488 unchanged lines hidden (view full) ---

846void faultin(struct proc *p);
847void fixjobc(struct proc *p, struct pgrp *pgrp, int entering);
848int fork1(struct thread *, int, int, struct proc **);
849void fork_exit(void (*)(void *, struct trapframe *), void *,
850 struct trapframe *);
851void fork_return(struct thread *, struct trapframe *);
852int inferior(struct proc *p);
853int leavepgrp(struct proc *p);
854int maybe_preempt(struct thread *td);
853void mi_switch(int flags, struct thread *newtd);
854int p_candebug(struct thread *td, struct proc *p);
855int p_cansee(struct thread *td, struct proc *p);
856int p_cansched(struct thread *td, struct proc *p);
857int p_cansignal(struct thread *td, struct proc *p, int signum);
858struct pargs *pargs_alloc(int len);
859void pargs_drop(struct pargs *pa);
860void pargs_free(struct pargs *pa);

--- 80 unchanged lines hidden ---
855void mi_switch(int flags, struct thread *newtd);
856int p_candebug(struct thread *td, struct proc *p);
857int p_cansee(struct thread *td, struct proc *p);
858int p_cansched(struct thread *td, struct proc *p);
859int p_cansignal(struct thread *td, struct proc *p, int signum);
860struct pargs *pargs_alloc(int len);
861void pargs_drop(struct pargs *pa);
862void pargs_free(struct pargs *pa);

--- 80 unchanged lines hidden ---