Print this page
8115 parallel zfs mount

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libfakekernel/common/sys/proc.h
          +++ new/usr/src/lib/libfakekernel/common/sys/proc.h
↓ open down ↓ 14 lines elided ↑ open up ↑
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  
  22   22  /*
  23   23   * Copyright (c) 1988, 2010, Oracle and/or its affiliates. All rights reserved.
  24   24   * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       25 + * Copyright 2017 RackTop Systems.
  25   26   */
  26   27  
  27   28  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  28   29  /*        All Rights Reserved   */
  29   30  
  30   31  #ifndef _SYS_PROC_H
  31   32  #define _SYS_PROC_H
  32   33  
  33   34  #include <sys/time.h>
  34   35  #include <sys/thread.h>
↓ open down ↓ 68 lines elided ↑ open up ↑
 103  104   */
 104  105  struct plock {
 105  106          kmutex_t pl_lock;
 106  107  };
 107  108  #define p_lock  p_lockp->pl_lock
 108  109  
 109  110  extern proc_t p0;               /* process 0 */
 110  111  extern struct plock p0lock;     /* p0's plock */
 111  112  extern struct pid pid0;         /* p0's pid */
 112  113  
      114 +extern int issig(int);
      115 +#define ISSIG(thr, why) issig(why)
 113  116  
      117 +/* Reasons for calling issig() */
      118 +
      119 +#define FORREAL         0       /* Usual side-effects */
      120 +#define JUSTLOOKING     1       /* Don't stop the process */
      121 +
      122 +extern  void    tsd_create(uint_t *, void (*)(void *));
      123 +extern  void    tsd_destroy(uint_t *);
      124 +extern  void    *tsd_get(uint_t);
      125 +extern  int     tsd_set(uint_t, void *);
      126 +
 114  127  /*
 115  128   * This is normally in sunddi.h but
 116  129   * I didn't want to drag that in here.
 117  130   */
 118  131  pid_t
 119  132  ddi_get_pid(void);
 120  133  
 121  134  #ifdef  __cplusplus
 122  135  }
 123  136  #endif
 124  137  
 125  138  #endif  /* _SYS_PROC_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX