Proc refcnting wrappers
[akaros.git] / kern / include / env.h
index d36ed41..9510853 100644 (file)
@@ -23,6 +23,7 @@
 // TODO: clean this up.
 struct proc {
        TAILQ_ENTRY(proc) proc_link NOINIT;     // Free list link pointers
+       TAILQ_ENTRY(proc) proc_arsc_link NOINIT; // Free list link pointers for the arsc list
        spinlock_t proc_lock;
        trapframe_t env_tf;                                             // Saved registers
        ancillary_state_t env_ancillary_state;  // State saved when descheduled
@@ -30,7 +31,7 @@ struct proc {
        pid_t ppid;                 // Parent's PID
        pid_t exitcode;                         // exit() param or main() return value
        uint32_t state;                         // Status of the process
-       struct kref kref;               /* Refcnt */
+       struct kref p_kref;             /* Refcnt */
        uint32_t env_flags;
        uint32_t env_entry;