Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Jan 2001 01:41:03 -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:  <200101240941.f0O9f3i99835@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
jhb         2001/01/24 01:41:03 PST

  Modified files:
    sys/sys              proc.h 
  Log:
  - Split p_flag up into two fields.  p_flag keeps most of the previous flags
    and is protected by the proc lock.  p_sflag is protected by sched_lock
    and holds the following flags: PS_INMEM, PS_OWEUPC, PS_PROFIL, PS_SINTR,
    PS_TIMEOUT, PS_ALRMPEND, PS_PROFPEND, PS_CVWAITQ, PS_SWAPINREQ, and
    PS_SWAPPING.
  - p_klist is definitely locked now by the proc lock.
  - p_runtime, p_[usi]u are locked by sched_lock.
  - Add a new P_KTHREAD flag set for kernel threads created via
    kthread_create(9).
  - STOPEVENT() only needs the proc lock, it does not need Giant.
  - faultin() already checks PS_INMEM, so simplify the check in PHOLD() so
    that we only need to grab the proc lock and let faultin() perform the
    PS_INMEM check.
  - Add a prototype for zpfind().
  - Add prototypes for the new fork_exit() and fork_return() MI functions
    that manage the fork return path.
  - Add a prototype for the MD function userret() so that it can be called
    from fork_return().
  - Add needed include of <machine/frame.h> in the kernel.
  
  Revision  Changes    Path
  1.141     +34 -25    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?200101240941.f0O9f3i99835>