Print this page
8115 parallel zfs mount

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/libfakekernel/common/sys/condvar.h
          +++ new/usr/src/lib/libfakekernel/common/sys/condvar.h
↓ open down ↓ 18 lines elided ↑ open up ↑
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22   22   * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26   26  /*
  27   27   * Copyright (c) 2012 by Delphix. All rights reserved.
  28   28   * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       29 + * Copyright 2017 RackTop Systems.
  29   30   */
  30   31  
  31   32  /*
  32   33   * condvar.h:
  33   34   *
  34   35   * definitions for thread synchronization primitives: condition variables
  35   36   * This is the public part of the interface to condition variables. The
  36   37   * private (implementation-specific) part is in <arch>/sys/condvar_impl.h.
  37   38   */
  38   39  
↓ open down ↓ 32 lines elided ↑ open up ↑
  71   72          TR_MILLISEC,
  72   73          TR_SEC,
  73   74          TR_CLOCK_TICK,
  74   75          TR_COUNT
  75   76  } time_res_t;
  76   77  
  77   78  extern time_res_t time_res[];
  78   79  
  79   80  #define TIME_RES_VALID(tr)      (tr >= TR_NANOSEC && tr < TR_COUNT)
  80   81  
       82 +#define CALLOUT_FLAG_ABSOLUTE   0x2
       83 +
  81   84  /*
  82   85   * condition variable function prototypes
  83   86   */
  84   87  
  85   88  extern  void    cv_init(kcondvar_t *, char *, kcv_type_t, void *);
  86   89  extern  void    cv_destroy(kcondvar_t *);
  87   90  extern  void    cv_wait(kcondvar_t *, kmutex_t *);
  88   91  extern  void    cv_wait_stop(kcondvar_t *, kmutex_t *, int);
  89   92  extern  clock_t cv_timedwait(kcondvar_t *, kmutex_t *, clock_t);
       93 +extern  clock_t cv_timedwait_hires(kcondvar_t *, kmutex_t *, hrtime_t, hrtime_t,
       94 +    int);
  90   95  extern  clock_t cv_reltimedwait(kcondvar_t *, kmutex_t *, clock_t, time_res_t);
  91   96  extern  int     cv_wait_sig(kcondvar_t *, kmutex_t *);
  92   97  extern  clock_t cv_timedwait_sig(kcondvar_t *, kmutex_t *, clock_t);
  93   98  extern  int     cv_timedwait_sig_hrtime(kcondvar_t *, kmutex_t *, hrtime_t);
  94   99  extern  clock_t cv_reltimedwait_sig(kcondvar_t *, kmutex_t *, clock_t,
  95  100      time_res_t);
  96  101  extern  int     cv_wait_sig_swap(kcondvar_t *, kmutex_t *);
  97  102  extern  int     cv_wait_sig_swap_core(kcondvar_t *, kmutex_t *, int *);
  98  103  extern  void    cv_signal(kcondvar_t *);
  99  104  extern  void    cv_broadcast(kcondvar_t *);
 100  105  extern  int     cv_waituntil_sig(kcondvar_t *, kmutex_t *, timestruc_t *, int);
 101  106  
 102  107  #ifdef  __cplusplus
 103  108  }
 104  109  #endif
 105  110  
 106  111  #endif  /* _SYS_CONDVAR_H */
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX