cfg_subsysop man page on Tru64

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

cfg_subsysop(9r)					      cfg_subsysop(9r)

NAME
       cfg_subsysop  - Kernel routine used to perform subsystem-defined opera‐
       tions

SYNOPSIS
       #include <sys/sysconfig.h> ); cfg_status_t cfg_subsysop(
	       char *subsys,
	       cfg_op_t op,
	       caddr_t indata,
	       size_t insize,
	       caddr_t outdata,
	       size_t outsize );

ARGUMENTS
       Name of the subsystem.  Value of the operation code defined by the sub‐
       system to be preformed. Subsystem codes are from 100 to 999.  The input
       data to the subsystem's configure routine. This buffer is allocated  by
       the  caller.  Its  contents are filled in by the caller.	 The length of
       the data in bytes in the indata argument.  The output data of the oper‐
       ation.  This  buffer  is	 allocated by the caller, but its contents are
       filled in by the system's configure routine.  The length	 in  bytes  of
       the output data in the output buffer.

DESCRIPTION
       The cfg_subsysop( ) routine performs a subsystem defined operation. The
       semantics of the operation are defined by the subsystem and implemented
       in the subsystem's configure routine.

RETURN VALUES
       This routine returns 32 bit status values of type cfg_status_t composed
       of  subsystem status and framework status segments. The upper  16  bits
       is  the	subsystem  status (CFG_STATUS_SUBSYS) and the lower 16 bits is
       the frame status (CFG_STATUS_FRAME). The return values are organized as
       follows:[Upper subsystem 16 bits][Lower framework 16 bits]

       The  subsystem  status is returned by the subsystem's configure routine
       and can be any error in errno.h. The framework status  is  returned  by
       the  configuration  framework  and  the	possible values are defined in
       <sys/sysconfig.h> as CFG_FRAME_Exxx. A completely successful  operation
       has ESUCCESS (0) returned in both status segments.

       See  the	 cfg_errno(9r)	and  errno(2) reference pages for more details
       about error numbers and status.

EXAMPLE
	      char		      indata[IN_SZ];
	      char		      outdata[OUT_SZ];
	      cfg_status_t	      retval;

	      /***************************************************/
	      /*   Call the cfg_subsysop routine		*/

	      retval = cfg_subsysop("lvm",  CLEAN_UP,  indata,IN_SZ,  outdata,
       OUT_SZ);

	      if (retval != CFG_SUCCESS)
		 print_error(retval);

SEE ALSO
       Kernel  Interfaces:  cfg_reconfigure(9r),  cfg_query(9r), cfg_unconfig‐
       ure(9r), cfg_configure(9r), cfg_errno(9r)

       Tru64 UNIX: errno(2), cfg_subsys_op(3)

							      cfg_subsysop(9r)
[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