Print this page
Bring back LX zones.

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/os/pid.c
          +++ new/usr/src/uts/common/os/pid.c
↓ open down ↓ 104 lines elided ↑ open up ↑
 105  105  
 106  106          for (pidp = HASHPID(pid); pidp; pidp = pidp->pid_link) {
 107  107                  if (pidp->pid_id == pid) {
 108  108                          ASSERT(pidp->pid_ref > 0);
 109  109                          break;
 110  110                  }
 111  111          }
 112  112          return (pidp);
 113  113  }
 114  114  
      115 +struct pid *
      116 +pid_find(pid_t pid)
      117 +{
      118 +        struct pid *pidp;
      119 +
      120 +        mutex_enter(&pidlinklock);
      121 +        pidp = pid_lookup(pid);
      122 +        mutex_exit(&pidlinklock);
      123 +
      124 +        return (pidp);
      125 +}
      126 +
 115  127  void
 116  128  pid_setmin(void)
 117  129  {
 118  130          if (jump_pid && jump_pid > mpid)
 119  131                  minpid = mpid = jump_pid;
 120  132          else
 121  133                  minpid = mpid;
 122  134  }
 123  135  
 124  136  /*
↓ open down ↓ 668 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX