smb_kproto.h revision 5496c1178a1a48006226450b13c2df195831794c
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * CDDL HEADER START
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * The contents of this file are subject to the terms of the
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * Common Development and Distribution License (the "License").
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * You may not use this file except in compliance with the License.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * or http://www.opensolaris.org/os/licensing.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * See the License for the specific language governing permissions
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * and limitations under the License.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * When distributing Covered Code, include this CDDL HEADER in each
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * If applicable, add the following below this CDDL HEADER, with the
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * fields enclosed by brackets "[]" replaced with your own identifying
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * information: Portions Copyright [yyyy] [name of copyright owner]
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * CDDL HEADER END
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * Copyright 2014 Nexenta Systems, Inc. All rights reserved.
25c28e83beb90e7c80452a7c818c5e6f73a07dc8Piotr Jasiukajtis * Function prototypes for the SMB module.
extern int smb_maxbufsize;
extern int smb_flush_required;
extern int smb_dirsymlink_enable;
extern int smb_oplock_levelII;
extern int smb_oplock_timeout;
extern int smb_oplock_min_timeout;
extern int smb_shortnames;
extern int smb_sign_debug;
extern int smb_raw_mode;
extern int smb_ssetup_threshold;
extern int smb_tcon_threshold;
extern int smb_opipe_threshold;
extern int smb_ssetup_timeout;
extern int smb_tcon_timeout;
extern int smb_opipe_timeout;
/* Thread priorities - see smb_init.c */
extern int smbsrv_base_pri;
extern int smbsrv_listen_pri;
extern int smbsrv_receive_pri;
extern int smbsrv_worker_pri;
extern int smbsrv_notify_pri;
extern int smbsrv_timer_pri;
int fd_dealloc(int);
int clock_get_uptime(void);
void smb_log_flush(void);
void smb_close_all_connections(void);
int smb_oplock_init(void);
void smb_oplock_fini(void);
void smb_convert_wildcards(char *);
void smb_stream_parse_name(char *, char *, char *);
void sshow_distribution_info(char *);
smb_kstat_req_t *, int, int);
int clock_get_milli_uptime(void);
void smb_net_init(void);
void smb_net_fini(void);
* SMB server functions (file smb_server.c)
int smb_server_g_init(void);
int smb_server_g_fini(void);
int smb_server_create(void);
int smb_server_delete(void);
int smb_server_stop(void);
int smb_server_unshare(const char *);
* SMB node functions (file smb_node.c)
void smb_node_init(void);
void smb_node_fini(void);
int smb_fem_init(void);
void smb_fem_fini(void);
unsigned short smb_worker_getnum();
/* SMB signing routines smb_signing.c */
void smb_sign_g_init(void);
* session functions (file smb_session.c)
smb_request_t *);
smb_tree_t *);
smb_tree_t *);
* ofile functions (file smb_ofile.c)
void smb_ofile_delete(void *);
* odir functions (file smb_odir.c)
void smb_odir_delete(void *);
* SMB user functions (file smb_user.c)
void smb_user_delete(void *);
* SMB tree functions (file smb_tree.c)
void smb_tree_dealloc(void *);
void smb_check_status(void);
void smb_llist_init(void);
void smb_llist_fini(void);
void *, pri_t);
void smb_panic(char *, const char *, int);
void smb_mem_free(void *);
void smb_mem_zfree(void *);
char *smb_mem_strdup(const char *);
void smb_kshare_g_init(void);
void smb_kshare_g_fini(void);
#ifdef __cplusplus