cpu_get_current man page on Tru64

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
Tru64 logo
[printable version]

cpu_get_current(3)					    cpu_get_current(3)

NAME
       cpu_get_current - Return the caller's current CPU ID (libc library)

SYNOPSIS
       #include <cpuset.h>

       cpuid_t cpu_get_current(
	       void );

PARAMETERS
       The cpu_get_current() function has no parameters.

DESCRIPTION
       The  cpu_get_current()  function fetches the ID of the CPU on which the
       caller is executing.

NOTES
       This function is similar to the following call:

       getsysinfo(GSI_CPU_CURRENT, &cpuid, ...);

       However, cpu_get_current() returns the CPU identifier directly (as type
       cpuid_t),  whereas  the	getsysinfo() call stores the identifier into a
       buffer (as type long) whose address is passed to the function.

RESTRICTIONS
       As is true for many system information queries, the  data  returned  by
       cpu_get_current() may be stale by the time it is returned to or used by
       the caller. In other words, a context switch to	a  different  CPU  can
       occur after the “current CPU” has been fetched by the application.

RETURN VALUES
       The  cpu_get_current()  function	 returns  the  CPU ID of the processor
       where the caller is executing. This function always completes  success‐
       fully.

ERRORS
       None.

SEE ALSO
       Functions: getsysinfo(2), numa_intro(3)

       Files: numa_types(4)

							    cpu_get_current(3)
[top]
                             _         _         _ 
                            | |       | |       | |     
                            | |       | |       | |     
                         __ | | __ __ | | __ __ | | __  
                         \ \| |/ / \ \| |/ / \ \| |/ /  
                          \ \ / /   \ \ / /   \ \ / /   
                           \   /     \   /     \   /    
                            \_/       \_/       \_/ 
More information is available in HTML format for server Tru64

List of man pages available for Tru64

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net