1 /* 2 * This file and its contents are supplied under the terms of the 3 * Common Development and Distribution License ("CDDL"), version 1.0. 4 * You may only use this file in accordance with the terms of version 5 * 1.0 of the CDDL. 6 * 7 * A full copy of the text of the CDDL should have accompanied this 8 * source. A copy of the CDDL is also available via the Internet at 9 * http://www.illumos.org/license/CDDL. 10 */ 11 12 /* 13 * Copyright 2013 Damian Bogel. All rights reserved. 14 */ 15 16 /* 17 * This file includes all the necessary declarations for vfs.c and vnode.c. 18 */ 19 20 #ifndef _FSH_IMPL_H 21 #define _FSH_IMPL_H 22 23 #include <sys/fsh.h> 24 #include <sys/list.h> 25 #include <sys/pathname.h> 26 #include <sys/types.h> 27 #include <sys/vfs.h> 28 #include <sys/vnode.h> 29 30 #ifdef __cplusplus 31 extern "C" { 32 #endif 33 34 struct fsh_fshrecord; 35 typedef struct fsh_fsrecord fsh_fsrecord_t; 36 37 /* API for vnode.c and vfs.c only */ 38 /* vnode.c */ 39 extern int fsh_read(vnode_t *, uio_t *, int, cred_t *, caller_context_t *); 40 extern int fsh_write(vnode_t *, uio_t *, int, cred_t *, caller_context_t *); 41 42 /* vfs.c */ 43 extern void fsh_init(void); 44 extern void fsh_exec_mount_callbacks(vfs_t *); 45 extern void fsh_exec_free_callbacks(vfs_t *); 46 extern void fsh_fsrec_destroy(fsh_fsrecord_t *volatile); 47 48 extern int fsh_mount(vfs_t *, vnode_t *, struct mounta *, cred_t *); 49 extern int fsh_unmount(vfs_t *, int, cred_t *); 50 51 #ifdef __cplusplus 52 } 53 #endif 54 55 #endif /* _FSH_IMPL_H */