Enumerations | |
| enum | OS_HOST_CPU_ARCH_TYPE { OS_HOST_CPU_ARCH_TYPE_INVALID = 0, OS_HOST_CPU_ARCH_TYPE_IA32 = 1, OS_HOST_CPU_ARCH_TYPE_INTEL64 = 2 } |
Functions | |
| OS_RETURN_CODE | OS_GetHostName (CHAR *buf, USIZE buflen) |
| OS_RETURN_CODE | OS_GetHostCPUArch (OS_HOST_CPU_ARCH_TYPE *arch) |
| const char * | OS_CPUArchToString (OS_HOST_CPU_ARCH_TYPE arch) |
| OS_RETURN_CODE | OS_GetKernelRelease (CHAR *buf, USIZE bufsize) |
| OS_RETURN_CODE | OS_GetOSName (CHAR *buf, USIZE bufsize) |
| OS_RETURN_CODE | OS_GetOSVersion (CHAR *buf, USIZE bufsize) |
| OS_RETURN_CODE | OS_ReadProcessorFrequency (UINT32 *freq) |
CPU Architecture
| const char* OS_CPUArchToString | ( | OS_HOST_CPU_ARCH_TYPE | arch | ) |
Get a string representing a certain CPU arch.
| [in] | arch | The architecture to get a string for it |
| read-only | string representing the CPU arch |
| OS_RETURN_CODE OS_GetHostCPUArch | ( | OS_HOST_CPU_ARCH_TYPE * | arch | ) |
Query CPU architecture.
| [out] | arch | The architecture of this system's CPU |
| OS_RETURN_CODE_NO_ERROR | If the operation succeeded | |
| OS_RETURN_CODE_QUERY_FAILED | If the operation failed |
| OS_RETURN_CODE OS_GetHostName | ( | CHAR * | buf, | |
| USIZE | buflen | |||
| ) |
Retrieves the host name of the current host - as known by this host
| [out] | buf | Buffer to receive the host name |
| [in] | buflen | Size of buffer buf in bytes |
| OS_RETURN_CODE_NO_ERROR | If the operation succeeded | |
| OS_RETURN_CODE_BUFFER_TOO_SHORT | If the buffer buf is too short | |
| OS_RETURN_CODE_QUERY_FAILED | If the operation failed |
| OS_RETURN_CODE OS_GetKernelRelease | ( | CHAR * | buf, | |
| USIZE | bufsize | |||
| ) |
Get kernel release description string.
| [out] | buf | Buffer to receive the release string |
| [in] | bufsize | Size of buffer buf in bytes |
| OS_RETURN_CODE_NO_ERROR | If the operation succeeded | |
| OS_RETURN_CODE_QUERY_FAILED | If the operation failed |
| OS_RETURN_CODE OS_GetOSName | ( | CHAR * | buf, | |
| USIZE | bufsize | |||
| ) |
Get the name of the operating system we're running on.
| [out] | buf | Buffer to receive the OS name string |
| [in] | bufsize | Size of buffer buf in bytes |
| OS_RETURN_CODE_NO_ERROR | If the operation succeeded | |
| OS_RETURN_CODE_QUERY_FAILED | If the operation failed |
| OS_RETURN_CODE OS_GetOSVersion | ( | CHAR * | buf, | |
| USIZE | bufsize | |||
| ) |
Get the version of the operating system we're running on.
| [out] | buf | Buffer to receive the OS version string |
| [in] | bufsize | Size of buffer buf in bytes |
| OS_RETURN_CODE_NO_ERROR | If the operation succeeded | |
| OS_RETURN_CODE_QUERY_FAILED | If the operation failed |
| OS_RETURN_CODE OS_ReadProcessorFrequency | ( | UINT32 * | freq | ) |
Get CPU processor frequency in MHz.
| [out] | freq | Frequency of the CPU |
| OS_RETURN_CODE_NO_ERROR | If the operation succeeded | |
| OS_RETURN_CODE_QUERY_FAILED | If the operation failed |
1.5.1-p1