Contained WithinFind More DocumentationFeatured Support Resources | PDF로 이 문서 다운로드 (1785 KB)
processor_info(2)Name | Synopsis | Description | Return Values | Errors | See Also Name
Synopsis#include <sys/types.h> #include <sys/processor.h> int processor_info(processorid_t processorid, processor_info_t *infop); DescriptionThe processor_info() function returns the status of the processor specified by processorid in the processor_info_t structure pointed to by infop. The structure processor_info_t contains the following members: int pi_state; char pi_processor_type[PI_TYPELEN]; char pi_fputypes[PI_FPUTYPE]; int pi_clock; The pi_state member is the current state of the processor, either P_ONLINE, P_OFFLINE, P_NOINTR, P_FAULTED, P_SPARE, or P_POWEROFF. The pi_processor_type member is a null-terminated ASCII string specifying the type of the processor. The pi_fputypes member is a null-terminated ASCII string containing the comma-separated types of floating-point units (FPUs) attached to the processor. This string will be empty if no FPU is attached. The pi_clock member is the processor clock frequency rounded to the nearest megahertz. It may be 0 if not known. Return ValuesUpon successful completion, 0 is returned. Otherwise, -1 is returned and errno is set to indicate the error. Errors
The processor_info() function will fail if: See AlsoSunOS 5.11 Last Revised 28 Jun 2004Name | Synopsis | Description | Return Values | Errors | See Also |