ppc64-diag
Data Structures | Macros | Functions | Variables
config.h File Reference

Header for ppc64-diag config file. More...

Go to the source code of this file.

Data Structures

struct  ppc64_diag_config
 structure to store ppc64-diag configuration variables More...
 

Macros

#define RE_CFG_RECEIVED_SIGHUP   0x00000001
 
#define RE_CFG_RECFG_SAFE   0x00000002
 

Functions

int diag_cfg (int, void(*log_msg)(char *,...))
 read config components from ppc64-diag config file More...
 

Variables

char * config_file
 default ppc64-diag configuration file More...
 
struct ppc64_diag_config d_cfg
 ppc64-diag configuration structure More...
 

Detailed Description

Copyright (C) 2004 IBM Corporation.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Macro Definition Documentation

#define RE_CFG_RECEIVED_SIGHUP   0x00000001

Referenced by read_rtas_events(), and sighup_handler().

#define RE_CFG_RECFG_SAFE   0x00000002

Referenced by read_rtas_events(), and sighup_handler().

Function Documentation

int diag_cfg ( int  update_sysconfig,
void(*)(char *,...)  log_msg 
)

diag_cfg The config file is in the format of variable=data. Comments in the file are lines beginning with '#' or everything after a '#' character in a line.

Parameters
update_sysconfigif 0, NVRAM will not be updated

References config_file, d_cfg, init_d_cfg(), ppc64_diag_config::log_msg, log_msg(), and parse_config_entries().

Referenced by main(), read_rtas_events(), and sighup_handler().

Variable Documentation

char* config_file
struct ppc64_diag_config d_cfg