~ubuntu-branches/ubuntu/quantal/open-vm-tools/quantal-201210021442

« back to all changes in this revision

Viewing changes to lib/include/hostinfo.h

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2011-03-31 14:20:05 UTC
  • mfrom: (1.4.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20110331142005-3n9red91p7ogkweo
Tags: 2011.03.28-387002-0ubuntu1
* Merge latest upstream git tag.  This has the unlocked_ioctl change
  needed to fix dkms build failures (LP: #727342)
* Changes in debian/rules:
  - work around a bug in toolbox/Makefile, where install-exec-hook is
    not happening.  This needs to get fixed the right way.
  - don't install 'vmware-user' which seems to no longer exist
  - move /etc/xdg into open-vm-toolbox (which should be done using .install)
* debian/open-vm-tools.init: add 'modprobe [-r] vmblock'. (LP: #332323)
* debian/rules and debian/open-vm-toolbox.lintian-overrides:
  - Make vmware-user-suid-wrapper suid-root (LP: #332323)

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
extern Bool Hostinfo_GetSwapInfoInPages(unsigned int *totalSwap,
48
48
                                        unsigned int *freeSwap);
49
49
#endif
50
 
#ifdef VMX86_SERVER
51
 
extern Bool Hostinfo_GetCOSMemoryInfoInPages(unsigned int *minSize,
52
 
                                             unsigned int *maxSize,
53
 
                                             unsigned int *currentSize);
54
 
#endif
55
50
extern Bool Hostinfo_GetRatedCpuMhz(int32 cpuNumber,
56
51
                                    uint32 *mHz);
57
52
extern char *Hostinfo_GetCpuDescription(uint32 cpuNumber);
58
53
extern void Hostinfo_GetTimeOfDay(VmTimeType *time);
59
54
extern VmTimeType Hostinfo_SystemUpTime(void);
60
55
extern VmTimeType Hostinfo_SystemTimerNS(void);
61
 
extern VmTimeType Hostinfo_SystemTimerUS(void);
 
56
 
 
57
static INLINE VmTimeType
 
58
Hostinfo_SystemTimerUS(void)
 
59
{
 
60
   return Hostinfo_SystemTimerNS() / 1000ULL;
 
61
}
 
62
 
 
63
static INLINE VmTimeType
 
64
Hostinfo_SystemTimerMS(void)
 
65
{
 
66
   return Hostinfo_SystemTimerNS() / 1000000ULL;
 
67
}
 
68
 
62
69
extern int Hostinfo_OSVersion(unsigned int i);
63
70
extern int Hostinfo_GetSystemBitness(void);
64
71
extern const char *Hostinfo_OSVersionString(void);
72
79
#if defined(_WIN32)
73
80
extern Bool Hostinfo_OSIsWinNT(void);
74
81
extern Bool Hostinfo_OSIsWow64(void);
 
82
DWORD Hostinfo_OpenProcessBits(void);
75
83
#endif
76
84
extern Bool Hostinfo_NestingSupported(void);
 
85
extern Bool Hostinfo_VCPUInfoBackdoor(unsigned bit);
 
86
extern Bool Hostinfo_SLC64Supported(void);
 
87
extern Bool Hostinfo_SynchronizedVTSCs(void);
 
88
extern Bool Hostinfo_NestedHVReplaySupported(void);
77
89
extern Bool Hostinfo_TouchBackDoor(void);
78
90
extern Bool Hostinfo_TouchVirtualPC(void);
79
91
extern Bool Hostinfo_TouchXen(void);
82
94
#define HGMP_PRIVILEGE    0
83
95
#define HGMP_NO_PRIVILEGE 1
84
96
extern Unicode Hostinfo_GetModulePath(uint32 priv);
85
 
 
 
97
extern char *Hostinfo_GetLibraryPath(void *addr);
86
98
 
87
99
#if !defined(_WIN32)
88
100
extern void Hostinfo_ResetProcessState(const int *keepFds, size_t numKeepFds);
123
135
 
124
136
   uint32 features;
125
137
   uint32 extfeatures;
126
 
 
127
 
   uint32 numPhysCPUs;
128
 
   uint32 numCores;
129
 
   uint32 numLogCPUs;
130
138
} HostinfoCpuIdInfo;
131
139
 
132
140
 
134
142
extern char *Hostinfo_GetCpuidStr(void);
135
143
extern Bool Hostinfo_GetCpuid(HostinfoCpuIdInfo *info);
136
144
 
137
 
#if defined(VMX86_SERVER)
138
 
extern Bool Hostinfo_HTDisabled(void);
 
145
#if !defined(VMX86_SERVER)
 
146
extern Bool Hostinfo_CPUCounts(uint32 *logical, uint32 *cores, uint32 *pkgs);
139
147
#endif
140
148
 
141
149
#if defined(_WIN32)