Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

picld_plugin_register(3picltre) [linux man page]

picld_plugin_register(3PICLTREE)			  PICL Plug-In Library Functions			  picld_plugin_register(3PICLTREE)

NAME
picld_plugin_register - register plug-in with the daemon SYNOPSIS
cc [ flag... ] file... -lpicltree [ library... ] #include <picltree.h> int picld_plugin_register(picld_plugin_reg_t *regp); DESCRIPTION
The picld_plugin_register() function is the function used by a plug-in module to register itself with the PICL daemon upon initialization. The plug-in provides its name and the entry points of the initialization and cleanup routines in the regp argument. typedef struct { int version; /* PICLD_PLUGIN_VERSION */ int critical; /* is plug-in critical? */ char *name; /* name of the plugin module */ void (*plugin_init)(void); /* init/reinit function */ void (*plugin_fini)(void); /* fini/cleanup function */ } picld_plugin_reg_t; The plug-in module also specifies whether it is a critical module for the proper system operation. The critical field in the registration information is set to PICLD_PLUGIN_NON_CRITICAL by plug-in modules that are not critical to system operation, and is set to PICLD_PLUG- IN_CRITICAL by plug-in modules that are critical to the system operation. An environment control plug-in module is an example for a PICLD_PLUGIN_CRITICAL type of plug-in module. The PICL daemon saves the information passed during registration in regp in the order in which the plug-ins registered. Upon initialization, the PICL daemon invokes the plugin_init() routine of each of the registered plug-in modules in the order in which they registered. In their plugin_init() routines, the plug-in modules collect the platform configuration data and add it to the PICL tree using PICLTREE interfaces(3PICLTREE). On reinitialization, the PICL daemon invokes the plugin_fini() routines of the registered plug-in modules in the reverse order of registra- tion. Then, the plugin_init() entry points are invoked again in the order in which the plug-ins registered. RETURN VALUES
Upon successful completion, 0 is returned. On failure, a negative value is returned. ERRORS
PICL_NOTSUPPORTED Version not supported PICL_FAILURE General system failure ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
libpicltree(3PICLTREE), attributes(5) SunOS 5.10 19 Sep 2001 picld_plugin_register(3PICLTREE)

Check Out this Related Man Page

libpicltree(3LIB)						Interface Libraries						 libpicltree(3LIB)

NAME
libpicltree - PICL plug-in library SYNOPSIS
cc [ flag... ] file... -lpicltree [ library... ] #include <picltree.h> DESCRIPTION
Functions in this library are used to by PICL plug-in modules to register with the PICL daemon and to publish information in the PICL tree. INTERFACES
The shared object libpicltree.so.1 provides the public interfaces defined below. See intro(3) for additional information on shared object interfaces. picld_plugin_register ptree_add_node ptree_add_prop ptree_add_row_to_table ptree_create_and_add_node ptree_create_and_add_prop ptree_create_node ptree_create_prop ptree_create_table ptree_delete_node ptree_delete_prop ptree_destroy_node ptree_destroy_prop ptree_find_node ptree_get_first_prop ptree_get_frutree_parent ptree_get_next_by_col ptree_get_next_by_row ptree_get_next_prop ptree_get_node_by_path ptree_get_prop_by_name ptree_get_propinfo ptree_get_propval ptree_get_propval_by_name ptree_get_root ptree_init_propinfo ptree_post_event ptree_register_handler ptree_unregister_handler ptree_update_propval ptree_update_propval_by_name ptree_walk_tree_by_class FILES
/usr/lib/libpicltree.so.1 shared object ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWpiclu | +-----------------------------+-----------------------------+ |Interface Stability |Evolving | +-----------------------------+-----------------------------+ |MT-Level |MT-Safe | +-----------------------------+-----------------------------+ SEE ALSO
pvs(1), intro(3), libpicltree(3PICLTREE), attributes(5) SunOS 5.10 18 Dec 2003 libpicltree(3LIB)
Man Page