p_online man page on DigitalUNIX

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

p_online(3)							   p_online(3)

       p_online - Turns a processor on line or off line

       #include <sys/types.h> #include <sys/processor.h>

       int p_online(
	       processorid_t processorid,
	       int flag );

       SVR4 Library (libsvr4)

       Type for processor name or CPU number.  Return type.

       The  p_online()	function  brings  a  processor on line or takes it off
       line. When a processor is online, it is performing  normal  operations,
       scheduling,  and	 executing processes, and servicing any I/O devices to
       which it has access.

       If the flag is P_ONLINE, the named processor is brought	on  line.   If
       the  processor was already on line, nothing is done. The previous state
       of the processor (P_ONLINE or P_OFFLINE) is returned.

       If the flag is P_OFFLINE, the named processor is taken  off  line.   If
       the processor was already off line, nothing is done. The previous state
       of the processor (P_ONLINE or P_OFFLINE) is returned.

       The calling process must have super user privileges to bring a  proces‐
       sor on line or take it off line.

       Some  of the files that are referenced by absolute path in the System V
       Environment for Tru64 UNIX reference pages actually may be located rel‐
       ative to /usr/opt/svr4.

       An  attempt  to take a processor off line may fail for several reasons.
       See the ERRORS section for codes.

       Success.	 Failure.

       Failure may result from: The calling process does not have  appropriate
       privileges.  The processorid does not refer to an existing processor or
       the processor for P_OFFLINE cannot be taken off line, or the  flag  has
       an  invalid value.  The processorid for P_OFFLINE refers to a processor
       with processes bound to it.

       Commands: psradm(8), online(8), offline(8)


List of man pages available for DigitalUNIX

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]
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