#include <stdio.h>
#include <windows.h>
#include "portpriv.h"
#include "hyportpg.h"
Functions | |
IDATA VMCALL | hysysinfo_get_executable_name (struct HyPortLibrary *portLibrary, char *argv0, char **result) |
Determines an absolute pathname for the executable. | |
const char *VMCALL | hysysinfo_get_OS_type (struct HyPortLibrary *portLibrary) |
Determine the OS type. | |
U_64 VMCALL | hysysinfo_get_physical_memory (struct HyPortLibrary *portLibrary) |
Determine the size of the total physical memory in the system, in bytes. | |
UDATA VMCALL | hysysinfo_DLPAR_max_CPUs (struct HyPortLibrary *portLibrary) |
Determine the maximum number of CPUs on this platform. | |
UDATA VMCALL | hysysinfo_get_number_CPUs (struct HyPortLibrary *portLibrary) |
Determine the number of CPUs on this platform. | |
const char *VMCALL | hysysinfo_get_CPU_architecture (struct HyPortLibrary *portLibrary) |
Determine the CPU architecture. | |
UDATA VMCALL | hysysinfo_get_processing_capacity (struct HyPortLibrary *portLibrary) |
Determine the collective processing capacity available to the VM in units of 1% of a physical processor. | |
const char *VMCALL | hysysinfo_get_OS_version (struct HyPortLibrary *portLibrary) |
Determine version information from the operating system. | |
I_32 VMCALL | hysysinfo_startup (struct HyPortLibrary *portLibrary) |
PortLibrary startup. | |
UDATA VMCALL | hysysinfo_DLPAR_enabled (struct HyPortLibrary *portLibrary) |
Determine if DLPAR (i.e. | |
void VMCALL | hysysinfo_shutdown (struct HyPortLibrary *portLibrary) |
PortLibrary shutdown. | |
UDATA VMCALL | hysysinfo_get_pid (struct HyPortLibrary *portLibrary) |
Determine the process ID of the calling process. | |
U_16 VMCALL | hysysinfo_get_classpathSeparator (struct HyPortLibrary *portLibrary) |
Determine the character used to separate entries on the classpath. | |
IDATA VMCALL | hysysinfo_get_username (struct HyPortLibrary *portLibrary, char *buffer, UDATA length) |
Query the operating system for the name of the user associate with the current thread. | |
UDATA VMCALL | hysysinfo_weak_memory_consistency (struct HyPortLibrary *portLibrary) |
Determine if the platform has weak memory consistency behaviour. | |
IDATA VMCALL | hysysinfo_get_env (struct HyPortLibrary *portLibrary, char *envVar, char *infoString, UDATA bufSize) |
Query the operating system for environment variables. |
|
Determine if DLPAR (i.e. the ability to change number of CPUs and amount of memory dynamically) is enabled on this platform.
|
|
Determine the maximum number of CPUs on this platform.
|
|
Determine the character used to separate entries on the classpath.
|
|
Determine the CPU architecture.
|
|
Query the operating system for environment variables. Obtain the value of the environment variable specified by envVar from the operating system and write out to supplied buffer.
|
|
Determines an absolute pathname for the executable.
|
|
Determine the number of CPUs on this platform.
|
|
Determine the OS type.
|
|
Determine version information from the operating system.
|
|
Determine the size of the total physical memory in the system, in bytes.
|
|
Determine the process ID of the calling process.
|
|
Determine the collective processing capacity available to the VM in units of 1% of a physical processor. In environments without some kind of virtual partitioning, this will simply be the number of CPUs * 100.
|
|
Query the operating system for the name of the user associate with the current thread. Obtain the value of the name of the user associated with the current thread, and then write it out into the buffer supplied by the user
|
|
PortLibrary shutdown. This function is called during shutdown of the portLibrary. Any resources that were created by hysysinfo_startup should be destroyed here.
|
|
PortLibrary startup. This function is called during startup of the portLibrary. Any resources that are required for the system information operations may be created here. All resources created here should be destroyed in hysysinfo_shutdown.
|
|
Determine if the platform has weak memory consistency behaviour.
|