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
@@ -19,15 +19,17 @@
* CDDL HEADER END
*/
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
/* All Rights Reserved */
-
/*
* Copyright 2010 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
+/*
+ * Copyright 2013 Nexenta Systems, Inc. All rights reserved.
+ */
#ifndef _SYS_STRSUBR_H
#define _SYS_STRSUBR_H
/*
@@ -37,10 +39,11 @@
* contents of this file is that if you include it, your
* code will not port to the next release.
*/
#include <sys/stream.h>
#include <sys/stropts.h>
+#include <sys/vnode.h>
#include <sys/kstat.h>
#include <sys/uio.h>
#include <sys/proc.h>
#include <sys/netstack.h>
#include <sys/modhash.h>
@@ -1074,11 +1077,11 @@
mutex_enter(&((X)->sd_lock)); \
}
#define STRUNLOCKMATES(X) mutex_exit(&((X)->sd_lock)); \
mutex_exit(&(((X)->sd_mate)->sd_lock))
-#ifdef _KERNEL
+#if defined(_KERNEL) || defined(_FAKE_KERNEL)
extern void strinit(void);
extern int strdoioctl(struct stdata *, struct strioctl *, int, int,
cred_t *, int *);
extern void strsendsig(struct strsig *, int, uchar_t, int);
@@ -1259,13 +1262,13 @@
extern mblk_t *mcopyinuio(struct stdata *, uio_t *, ssize_t, ssize_t, int *);
/*
* shared or externally configured data structures
*/
-extern ssize_t strmsgsz; /* maximum stream message size */
-extern ssize_t strctlsz; /* maximum size of ctl message */
-extern int nstrpush; /* maximum number of pushes allowed */
+extern volatile ssize_t strmsgsz; /* maximum stream message size */
+extern volatile ssize_t strctlsz; /* maximum size of ctl message */
+extern volatile int nstrpush; /* maximum number of pushes allowed */
/*
* Bufcalls related variables.
*/
extern struct bclist strbcalls; /* List of bufcalls */