2N/A/*
2N/A * CDDL HEADER START
2N/A *
2N/A * The contents of this file are subject to the terms of the
2N/A * Common Development and Distribution License (the "License").
2N/A * You may not use this file except in compliance with the License.
2N/A *
2N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A * or http://www.opensolaris.org/os/licensing.
2N/A * See the License for the specific language governing permissions
2N/A * and limitations under the License.
2N/A *
2N/A * When distributing Covered Code, include this CDDL HEADER in each
2N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A * If applicable, add the following below this CDDL HEADER, with the
2N/A * fields enclosed by brackets "[]" replaced with your own identifying
2N/A * information: Portions Copyright [yyyy] [name of copyright owner]
2N/A *
2N/A * CDDL HEADER END
2N/A */
2N/A
2N/A/*
2N/A * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
2N/A */
2N/A
2N/A#ifndef _SYS_LIBUVFS_IMPL_H
2N/A#define _SYS_LIBUVFS_IMPL_H
2N/A
2N/A#include <libuvfs.h>
2N/A
2N/A#include <sys/types.h>
2N/A#include <door.h>
2N/A#include <libscf.h>
2N/A#include <thread.h>
2N/A#include <synch.h>
2N/A#include <umem.h>
2N/A
2N/A#ifdef __cplusplus
2N/Aextern "C" {
2N/A#endif
2N/A
2N/Atypedef struct {
2N/A char fs_fid_seq[8];
2N/A char fs_fid_random[2];
2N/A} libuvfs_fh_t;
2N/A
2N/Atypedef struct {
2N/A uint32_t st_key;
2N/A void *st_value;
2N/A libuvfs_fid_t st_fid;
2N/A avl_node_t st_avl;
2N/A} libuvfs_stash_node_t;
2N/A
2N/Atypedef struct {
2N/A libuvfs_fid_t nm_fid;
2N/A rwlock_t nm_user_lock;
2N/A avl_tree_t nm_dir;
2N/A avl_node_t nm_fs_avl;
2N/A list_t nm_allnames;
2N/A} libuvfs_fid_info_t;
2N/Atypedef struct {
2N/A char *de_name;
2N/A libuvfs_fid_t de_fid;
2N/A libuvfs_fid_t de_dirfid;
2N/A libuvfs_fid_info_t *de_myinfo;
2N/A libuvfs_fid_info_t *de_dir;
2N/A avl_node_t de_dirnode;
2N/A list_node_t de_allnames;
2N/A} libuvfs_name_dirent_t;
2N/A
2N/Avoid libuvfs_stash_fs_construct(libuvfs_fs_t *);
2N/Avoid libuvfs_stash_fs_destroy(libuvfs_fs_t *);
2N/Avoid libuvfs_stash_fs_free(libuvfs_fs_t *);
2N/A
2N/Avoid libuvfs_name_fs_construct(libuvfs_fs_t *);
2N/Avoid libuvfs_name_fs_destroy(libuvfs_fs_t *);
2N/Avoid libuvfs_name_fs_free(libuvfs_fs_t *);
2N/A
2N/Avoid libuvfs_node_fs_construct(libuvfs_fs_t *);
2N/Avoid libuvfs_node_fs_destroy(libuvfs_fs_t *);
2N/A
2N/Avoid libuvfs_default_success(libuvfs_fs_t *, void *, size_t, ucred_t *);
2N/A
2N/Avoid libuvfs_fid_copy(const libuvfs_fid_t *, libuvfs_fid_t *);
2N/Aint libuvfs_fid_compare(const libuvfs_fid_t *, const libuvfs_fid_t *);
2N/A
2N/Achar *libuvfs_strdup(const char *);
2N/Achar *libuvfs_hexdump(const void *, int);
2N/Avoid libuvfs_strfree(char *);
2N/A
2N/Avoid libuvfs_get_daemon_fsid(libuvfs_fs_t *);
2N/A
2N/A#ifdef __cplusplus
2N/A}
2N/A#endif
2N/A
2N/A#endif /* _SYS_LIBUVFS_IMPL_H */