OpenDNSSEC-signer  1.4.10
Data Structures | Typedefs | Functions
engine.h File Reference
#include "config.h"
#include "daemon/cfg.h"
#include "daemon/cmdhandler.h"
#include "daemon/dnshandler.h"
#include "daemon/xfrhandler.h"
#include "daemon/worker.h"
#include "scheduler/fifoq.h"
#include "scheduler/schedule.h"
#include "shared/allocator.h"
#include "shared/locks.h"
#include "signer/zonelist.h"
#include "wire/edns.h"
#include <signal.h>
Include dependency graph for engine.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  engine_struct
 

Typedefs

typedef struct engine_struct engine_type
 

Functions

void engine_start (const char *cfgfile, int cmdline_verbosity, int daemonize, int info, int single_run)
 
void engine_start_drudgers (engine_type *engine)
 
void engine_stop_drudgers (engine_type *engine)
 
void engine_wakeup_workers (engine_type *engine)
 
void engine_update_zones (engine_type *engine, ods_status zl_changed)
 
void engine_cleanup (engine_type *engine)
 

Typedef Documentation

typedef struct engine_struct engine_type

The engine. Engine stuff.

Definition at line 54 of file engine.h.

Function Documentation

void engine_cleanup ( engine_type engine)
void engine_start ( const char *  cfgfile,
int  cmdline_verbosity,
int  daemonize,
int  info,
int  single_run 
)
void engine_start_drudgers ( engine_type engine)
void engine_stop_drudgers ( engine_type engine)
void engine_update_zones ( engine_type engine,
ods_status  zl_changed 
)
void engine_wakeup_workers ( engine_type engine)

Wake up workers.

Parameters
[in]engineengine

Wake up all workers.

Definition at line 444 of file engine.c.

References ADAPTER_DNS, ADAPTER_FILE, zone_struct::adinbound, zone_struct::adoutbound, engine_struct::allocator, engineconfig_struct::clisock_filename, engine_struct::cmdhandler, cmdhandler_create(), engine_struct::config, adapter_struct::configstr, engine_struct::daemonize, zone_struct::db, engine_struct::dnshandler, xfrhandler_struct::dnshandler, dnshandler_create(), dnshandler_listen(), engine_struct::edns, edns_init(), EDNS_MAX_MESSAGE_LEN, engine_cleanup(), engine_start_drudgers(), engine_stop_drudgers(), netio_handler_struct::fd, engine_struct::gid, engineconfig_struct::group, notify_struct::handler, xfrd_struct::handler, engineconfig_struct::interfaces, namedb_struct::is_processed, lock_basic_lock, lock_basic_sleep, lock_basic_unlock, engineconfig_struct::log_filename, zone_struct::name, engine_struct::need_to_exit, engine_struct::need_to_reload, xfrhandler_struct::netio, netio_add_handler(), netio_remove_handler(), zone_struct::notify, zone_struct::notify_args, notify_cleanup(), zone_struct::notify_command, notify_create(), zone_struct::notify_ns, engineconfig_struct::num_worker_threads, ods_chown(), ods_log_assert, ods_log_debug(), ods_log_error(), ods_log_verbose(), ods_log_warning(), ods_replace(), ods_status2str(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_CHDIR_ERR, ODS_STATUS_CMDHANDLER_ERR, ODS_STATUS_FORK_ERR, ODS_STATUS_OK, ODS_STATUS_PRIVDROP_ERR, ODS_STATUS_SETSID_ERR, ODS_STATUS_WRITE_PIDFILE_ERR, ODS_STATUS_XFRHANDLER_ERR, ods_str_list_add(), ods_str_trim(), engine_struct::pid, engineconfig_struct::pid_filename, privgid(), privuid(), xfrd_struct::serial_disk_acquired, engine_struct::signal, signal_capture(), engine_struct::signal_cond, signal_handler(), engine_struct::signal_lock, SIGNAL_RELOAD, SIGNAL_RUN, signal_set_engine(), SIGNAL_SHUTDOWN, tsig_handler_init(), adapter_struct::type, engine_struct::uid, engineconfig_struct::use_syslog, engineconfig_struct::username, util_write_pidfile(), worker_wakeup(), engine_struct::workers, engineconfig_struct::working_dir, zone_struct::xfrd, xfrd_cleanup(), xfrd_create(), xfrd_set_timer_now(), dnshandler_struct::xfrhandler, engine_struct::xfrhandler, xfrhandler_create(), engine_struct::zonelist, and zonelist_struct::zones.

Referenced by engine_update_zones(), and xfrd_acl_sockaddr_to().