VirtualBox

source: vbox/trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs_vnode.h@ 25877

Last change on this file since 25877 was 25877, checked in by vboxsync, 15 years ago

Solaris/SharedFolders: missing files to OSE.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1/** @file
2 * VirtualBox File System for Solaris Guests, vnode header.
3 */
4
5/*
6 * Copyright (C) 2009 Sun Microsystems, Inc.
7 *
8 * Sun Microsystems, Inc. confidential
9 * All rights reserved
10 */
11
12#ifndef __VBoxFS_node_Solaris_h
13#define __VBoxFS_node_Solaris_h
14
15#include <sys/t_lock.h>
16#include <sys/avl.h>
17#include <vm/seg.h>
18#include <vm/seg_vn.h>
19
20#ifdef __cplusplus
21extern "C" {
22#endif
23
24/*
25 * sfnode is the file system dependent vnode data for vboxsf.
26 * sfnode's also track all files ever accessed, both open and closed.
27 * It duplicates some of the information in vnode, since it holds
28 * information for files that may have been completely closed.
29 *
30 * The sfnode_t's are stored in an AVL tree sorted by:
31 * sf_sffs, sf_path
32 */
33typedef struct sfnode {
34 avl_node_t sf_linkage; /* AVL tree linkage */
35 struct sffs_data *sf_sffs; /* containing mounted file system */
36 char *sf_path; /* full pathname to file or dir */
37 uint64_t sf_ino; /* assigned unique ID number */
38 vnode_t *sf_vnode; /* vnode if active */
39 sfp_file_t *sf_file; /* non NULL if open */
40 struct sfnode *sf_parent; /* parent sfnode of this one */
41 uint16_t sf_children; /* number of children sfnodes */
42 uint8_t sf_type; /* VDIR or VREG */
43 uint8_t sf_is_stale; /* this is stale and should be purged */
44} sfnode_t;
45
46#define VN2SFN(vp) ((sfnode_t *)(vp)->v_data)
47
48#ifdef _KERNEL
49extern int sffs_vnode_init(void);
50extern void sffs_vnode_fini(void);
51extern sfnode_t *sfnode_make(struct sffs_data *, char *, vtype_t, sfp_file_t *,
52 sfnode_t *parent);
53extern vnode_t *sfnode_get_vnode(sfnode_t *);
54
55/*
56 * Purge all cached information about a shared file system at unmount
57 */
58extern int sffs_purge(struct sffs_data *);
59
60extern kmutex_t sffs_lock;
61#endif /* _KERNEL */
62
63#ifdef __cplusplus
64}
65#endif
66
67#endif /* __VBoxFS_node_Solaris_h */
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette