Print this page
NEX-16818 Add fksmbcl development tool
NEX-17264 SMB client test tp_smbutil_013 fails after NEX-14666
Reviewed by: Evan Layton <evan.layton@nexenta.com>
Reviewed by: Matt Barden <matt.barden@nexenta.com>
and: (fix ref leaks)
re #13613 rb4516 Tunables needs volatile keyword

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/sys/strsubr.h
          +++ new/usr/src/uts/common/sys/strsubr.h
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  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  /*      Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
  22   22  /*        All Rights Reserved   */
  23   23  
  24      -
  25   24  /*
  26   25   * Copyright 2010 Sun Microsystems, Inc.  All rights reserved.
  27   26   * Use is subject to license terms.
  28   27   */
       28 +/*
       29 + * Copyright 2013 Nexenta Systems, Inc.  All rights reserved.
       30 + */
  29   31  
  30   32  #ifndef _SYS_STRSUBR_H
  31   33  #define _SYS_STRSUBR_H
  32   34  
  33   35  /*
  34   36   * WARNING:
  35   37   * Everything in this file is private, belonging to the
  36   38   * STREAMS subsystem.  The only guarantee made about the
  37   39   * contents of this file is that if you include it, your
  38   40   * code will not port to the next release.
  39   41   */
  40   42  #include <sys/stream.h>
  41   43  #include <sys/stropts.h>
       44 +#include <sys/vnode.h>
  42   45  #include <sys/kstat.h>
  43   46  #include <sys/uio.h>
  44   47  #include <sys/proc.h>
  45   48  #include <sys/netstack.h>
  46   49  #include <sys/modhash.h>
  47   50  
  48   51  #ifdef  __cplusplus
  49   52  extern "C" {
  50   53  #endif
  51   54  
↓ open down ↓ 1017 lines elided ↑ open up ↑
1069 1072  #define STRLOCKMATES(X) if (&((X)->sd_lock) > &(((X)->sd_mate)->sd_lock)) { \
1070 1073                                  mutex_enter(&((X)->sd_lock)); \
1071 1074                                  mutex_enter(&(((X)->sd_mate)->sd_lock));  \
1072 1075                          } else {  \
1073 1076                                  mutex_enter(&(((X)->sd_mate)->sd_lock)); \
1074 1077                                  mutex_enter(&((X)->sd_lock)); \
1075 1078                          }
1076 1079  #define STRUNLOCKMATES(X)       mutex_exit(&((X)->sd_lock)); \
1077 1080                          mutex_exit(&(((X)->sd_mate)->sd_lock))
1078 1081  
1079      -#ifdef _KERNEL
     1082 +#if defined(_KERNEL) || defined(_FAKE_KERNEL)
1080 1083  
1081 1084  extern void strinit(void);
1082 1085  extern int strdoioctl(struct stdata *, struct strioctl *, int, int,
1083 1086      cred_t *, int *);
1084 1087  extern void strsendsig(struct strsig *, int, uchar_t, int);
1085 1088  extern void str_sendsig(vnode_t *, int, uchar_t, int);
1086 1089  extern void strhup(struct stdata *);
1087 1090  extern int qattach(queue_t *, dev_t *, int, cred_t *, fmodsw_impl_t *,
1088 1091      boolean_t);
1089 1092  extern int qreopen(queue_t *, dev_t *, int, cred_t *);
↓ open down ↓ 164 lines elided ↑ open up ↑
1254 1257  extern void fmodsw_rele(fmodsw_impl_t *);
1255 1258  
1256 1259  extern void freemsgchain(mblk_t *);
1257 1260  extern mblk_t *copymsgchain(mblk_t *);
1258 1261  
1259 1262  extern mblk_t *mcopyinuio(struct stdata *, uio_t *, ssize_t, ssize_t, int *);
1260 1263  
1261 1264  /*
1262 1265   * shared or externally configured data structures
1263 1266   */
1264      -extern ssize_t strmsgsz;                /* maximum stream message size */
1265      -extern ssize_t strctlsz;                /* maximum size of ctl message */
1266      -extern int nstrpush;                    /* maximum number of pushes allowed */
     1267 +extern volatile ssize_t strmsgsz;       /* maximum stream message size */
     1268 +extern volatile ssize_t strctlsz;       /* maximum size of ctl message */
     1269 +extern volatile int nstrpush;           /* maximum number of pushes allowed */
1267 1270  
1268 1271  /*
1269 1272   * Bufcalls related variables.
1270 1273   */
1271 1274  extern struct bclist strbcalls;         /* List of bufcalls */
1272 1275  extern kmutex_t strbcall_lock;          /* Protects the list of bufcalls */
1273 1276  extern kcondvar_t strbcall_cv;          /* Signaling when a bufcall is added */
1274 1277  extern kcondvar_t bcall_cv;     /* wait of executing bufcall completes */
1275 1278  
1276 1279  extern frtn_t frnop;
↓ open down ↓ 71 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX