Print this page
patch remove-as_swapout
@@ -127,14 +127,12 @@
struct brand;
struct corectl_path;
struct corectl_content;
/*
- * One structure allocated per active process. It contains all
- * data needed about the process while the process may be swapped
- * out. Other per-process data (user.h) is also inside the proc structure.
- * Lightweight-process data (lwp.h) and the kernel stack may be swapped out.
+ * One structure allocated per active process. Per-process data (user.h) is
+ * also inside the proc structure.
*/
typedef struct proc {
/*
* Fields requiring no explicit locking
*/
@@ -144,11 +142,10 @@
kmutex_t p_crlock; /* lock for p_cred */
struct cred *p_cred; /* process credentials */
/*
* Fields protected by pidlock
*/
- int p_swapcnt; /* number of swapped out lwps */
char p_stat; /* status of process */
char p_wcode; /* current wait code */
ushort_t p_pidflag; /* flags protected only by pidlock */
int p_wdata; /* current wait return value */
pid_t p_ppid; /* process id of parent */