lx_autofs_impl.h revision 9acbbeaf2a1ffe5c14b244867d427714fab43c5c
/*
* CDDL HEADER START
*
* The contents of this file are subject to the terms of the
* Common Development and Distribution License (the "License").
* You may not use this file except in compliance with the License.
*
* You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
* See the License for the specific language governing permissions
* and limitations under the License.
*
* When distributing Covered Code, include this CDDL HEADER in each
* file and include the License file at usr/src/OPENSOLARIS.LICENSE.
* If applicable, add the following below this CDDL HEADER, with the
* fields enclosed by brackets "[]" replaced with your own identifying
* information: Portions Copyright [yyyy] [name of copyright owner]
*
* CDDL HEADER END
*/
/*
* Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
#ifndef _LX_AUTOFS_IMPL_H
#define _LX_AUTOFS_IMPL_H
#pragma ident "%Z%%M% %I% %E% SMI"
#ifdef __cplusplus
extern "C" {
#endif
#include <sys/id_space.h>
#include <sys/lx_autofs.h>
/*
* Space key.
* Used to persist data across lx_autofs filesystem module unloads.
*/
/*
* Name of the backing store directory.
*/
#define LX_AUTOFS_VFS_ID_HASH_SIZE 15
#define LX_AUTOFS_VFS_PATH_HASH_SIZE 15
#define LX_AUTOFS_VFS_VN_HASH_SIZE 15
/*
* VFS data object.
*/
typedef struct lx_autofs_vfs {
/* Info about the underlying filesystem and backing store. */
char *lav_bs_name;
/* Info about the automounter process managing this filesystem. */
int lav_fd;
/* Each automount requests needs a unique id. */
/* All remaining structure members are protected by lav_lock. */
/* Hashes to keep track of outstanding automounter requests. */
/* We need to keep track of all our vnodes. */
/*
* Structure to keep track of requests sent to the automounter.
*/
typedef struct lx_autofs_lookup_req {
/* Packet that gets sent to the automounter. */
/* Reference count. Always updated atomically. */
/*
* Fields to keep track and sync threads waiting on a lookup.
* Fields are protected by lalr_lock.
*/
int lalr_complete;
/*
* Generic stack structure.
*/
typedef struct stack_elem {
} stack_elem_t;
#ifdef __cplusplus
}
#endif
#endif /* _LX_AUTOFS_IMPL_H */