VirtualBox

source: vbox/trunk/src/VBox/Additions/solaris/SharedFolders/vboxfs.h@ 29074

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

Automated rebranding to Oracle copyright/license strings via filemuncher

  • Property svn:eol-style set to native
  • Property svn:keyword set to Id
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1/* $Id: vboxfs.h 28800 2010-04-27 08:22:32Z vboxsync $ */
2/** @file
3 * VirtualBox File System Driver for Solaris Guests, Internal Header.
4 */
5
6/*
7 * Copyright (C) 2008 Oracle Corporation
8 *
9 * This file is part of VirtualBox Open Source Edition (OSE), as
10 * available from http://www.virtualbox.org. This file is free software;
11 * you can redistribute it and/or modify it under the terms of the GNU
12 * General Public License (GPL) as published by the Free Software
13 * Foundation, in version 2 as it comes in the "COPYING" file of the
14 * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15 * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16 */
17
18#ifndef ___VBoxVFS_Solaris_h
19#define ___VBoxVFS_Solaris_h
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#define MAX_HOST_NAME 256
26#define MAX_NLS_NAME 32
27
28/** The module name. */
29#define DEVICE_NAME "vboxfs"
30
31#ifdef _KERNEL
32
33#include "../../common/VBoxGuestLib/VBoxCalls.h"
34#include <sys/vfs.h>
35#include <sys/vfs_opreg.h>
36
37/** VNode for VBoxVFS */
38typedef struct vboxvfs_vnode
39{
40 vnode_t *pVNode;
41 vattr_t Attr;
42 SHFLSTRING *pPath;
43 kmutex_t MtxContents;
44} vboxvfs_vnode_t;
45
46
47/** Per-file system mount instance data. */
48typedef struct vboxvfs_globinfo
49{
50 VBSFMAP Map;
51 int Ttl;
52 int Uid;
53 int Gid;
54 vfs_t *pVFS;
55 vboxvfs_vnode_t *pVNodeRoot;
56 kmutex_t MtxFS;
57} vboxvfs_globinfo_t;
58
59extern struct vnodeops *g_pVBoxVFS_vnodeops;
60extern const fs_operation_def_t g_VBoxVFS_vnodeops_template[];
61extern VBSFCLIENT g_VBoxVFSClient;
62
63/** Helper functions */
64extern int vboxvfs_Stat(const char *pszCaller, vboxvfs_globinfo_t *pVBoxVFSGlobalInfo, SHFLSTRING *pPath,
65 RTFSOBJINFO *pResult, boolean_t fAllowFailure);
66extern void vboxvfs_InitVNode(vboxvfs_globinfo_t *pVBoxVFSGlobalInfo, vboxvfs_vnode_t *pVBoxVNode,
67 RTFSOBJINFO *pFSInfo);
68
69
70/** Helper macros */
71#define VFS_TO_VBOXVFS(vfs) ((vboxvfs_globinfo_t *)((vfs)->vfs_data))
72#define VBOXVFS_TO_VFS(vboxvfs) ((vboxvfs)->pVFS)
73#define VN_TO_VBOXVN(vnode) ((vboxvfs_vnode_t *)((vnode)->v_data))
74#define VBOXVN_TO_VN(vboxvnode) ((vboxvnode)->pVNode)
75
76#endif /* _KERNEL */
77
78#ifdef __cplusplus
79}
80#endif
81
82#endif /* !___VBoxVFS_Solaris_h */
83
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