git: kernel - Add p_ppid

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Oct 19 23:33:58 PDT 2017


commit 39b9b6cde2b362dfa7d8a21b1f6f5e2246a825a9
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Oct 19 12:09:56 2017 -0700

    kernel - Add p_ppid
    
    * We have proc->p_pptr, but still needed a shared p->p_token to access
      the ppid.  Buckle under and add proc->p_ppid as well so getppid() can
      run lockless.
    
    * Adjust the vmtotal proc scan to use a shared proc->p_token instead
      of an exclusive one.

Summary of changes:
 sys/kern/kern_exit.c | 2 ++
 sys/kern/kern_fork.c | 1 +
 sys/kern/kern_proc.c | 1 +
 sys/kern/kern_prot.c | 4 +---
 sys/sys/proc.h       | 1 +
 sys/vm/vm_meter.c    | 2 +-
 6 files changed, 7 insertions(+), 4 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/39b9b6cde2b362dfa7d8a21b1f6f5e2246a825a9


-- 
DragonFly BSD source repository



More information about the Commits mailing list