xref: /titanic_41/usr/src/lib/smbsrv/libfksmbsrv/common/vncache.h (revision 7206bf49b1fe641544165ee97f63856da95e0868)
1*7206bf49SGordon Ross /*
2*7206bf49SGordon Ross  * This file and its contents are supplied under the terms of the
3*7206bf49SGordon Ross  * Common Development and Distribution License ("CDDL"), version 1.0.
4*7206bf49SGordon Ross  * You may only use this file in accordance with the terms of version
5*7206bf49SGordon Ross  * 1.0 of the CDDL.
6*7206bf49SGordon Ross  *
7*7206bf49SGordon Ross  * A full copy of the text of the CDDL should have accompanied this
8*7206bf49SGordon Ross  * source.  A copy of the CDDL is also available via the Internet at
9*7206bf49SGordon Ross  * http://www.illumos.org/license/CDDL.
10*7206bf49SGordon Ross  */
11*7206bf49SGordon Ross 
12*7206bf49SGordon Ross /*
13*7206bf49SGordon Ross  * Copyright 2014 Nexenta Systems, Inc.  All rights reserved.
14*7206bf49SGordon Ross  */
15*7206bf49SGordon Ross 
16*7206bf49SGordon Ross #ifndef _VNCACHE_H
17*7206bf49SGordon Ross #define	_VNCACHE_H
18*7206bf49SGordon Ross 
19*7206bf49SGordon Ross #ifdef __cplusplus
20*7206bf49SGordon Ross extern "C" {
21*7206bf49SGordon Ross #endif
22*7206bf49SGordon Ross 
23*7206bf49SGordon Ross struct stat;
24*7206bf49SGordon Ross vnode_t *vncache_lookup(struct stat *);
25*7206bf49SGordon Ross vnode_t *vncache_enter(struct stat *, vnode_t *, char *, int);
26*7206bf49SGordon Ross void	vncache_renamed(vnode_t *, vnode_t *, char *);
27*7206bf49SGordon Ross void 	vncache_inactive(vnode_t *);
28*7206bf49SGordon Ross int 	vncache_cmp(const void *, const void *);
29*7206bf49SGordon Ross 
30*7206bf49SGordon Ross int vncache_init(void);
31*7206bf49SGordon Ross void vncache_fini(void);
32*7206bf49SGordon Ross 
33*7206bf49SGordon Ross #ifdef __cplusplus
34*7206bf49SGordon Ross }
35*7206bf49SGordon Ross #endif
36*7206bf49SGordon Ross 
37*7206bf49SGordon Ross #endif /* _VNCACHE_H */
38