/dports/net-mgmt/hastmon/hastmon-0.3.4/hastmon/ |
H A D | hastmon.h | 46 void descriptors_cleanup(struct hast_resource *res, struct hast_remote *remote); 47 void descriptors_assert(const struct hast_resource *res, const struct hast_remote *remote, 50 void hastmon_primary(struct hast_resource *res); 51 void hastmon_watchdog(struct hast_resource *res); 54 void terminate_worker(struct hast_resource *res, int sig);
|
H A D | subr.c | 85 complaints_expire(struct hast_resource *res) in complaints_expire() 111 complaints_register(struct hast_resource *res, time_t cmpl_time) in complaints_register() 128 complaints_add(struct hast_resource *res) in complaints_add() 134 complaints_cnt(struct hast_resource *res) in complaints_cnt() 146 complaints_clear(struct hast_resource *res) in complaints_clear()
|
H A D | control.h | 42 struct hast_resource; 46 void child_cleanup(struct hast_resource *res); 48 void control_set_role(struct hast_resource *res, uint8_t role); 54 void control_send_event_status(struct hast_resource *res, int event,
|
H A D | hast.h | 120 TAILQ_HEAD(, hast_resource) hc_resources; 126 struct hast_resource { struct 190 TAILQ_ENTRY(hast_resource) hr_next; argument 208 struct hast_resource *r_res; 226 void yy_resource_free(struct hast_resource *res);
|
H A D | event.h | 43 struct hast_resource; 45 void event_send(struct hast_resource *res, int event); 46 int event_recv(struct hast_resource *res);
|
H A D | subr.h | 52 int complaints_add(struct hast_resource *res); 53 int complaints_cnt(struct hast_resource *res); 54 void complaints_clear(struct hast_resource *res);
|
H A D | hooks.h | 48 struct hast_resource *hc_res; 53 struct hook_caller* hook_caller_alloc(struct hast_resource *res, int event); 55 void hook_invalidate_callers(struct hast_resource *res);
|
H A D | hast_proto.h | 40 int hast_proto_send(const struct hast_resource *res, struct proto_conn *conn, 42 int hast_proto_recv(const struct hast_resource *res, struct proto_conn *conn, 45 int hast_proto_recv_data(const struct hast_resource *res,
|
H A D | hastmon.c | 83 struct hast_resource *tres; in descriptors_cleanup() 276 struct hast_resource *res; in child_exit() 325 remotecmp(const struct hast_resource *res0, const struct hast_resource *res1) in remotecmp() 348 friendscmp(const struct hast_resource *res0, const struct hast_resource *res1) in friendscmp() 372 const struct hast_resource *res1) in resource_needs_restart() 397 const struct hast_resource *res1) in resource_needs_reload() 424 struct hast_resource *res; in hastmon_reload() 585 struct hast_resource *res; in terminate_workers() 677 struct hast_resource *res; in listen_accept() 974 struct hast_resource *res; in set_initial_roles() [all …]
|
H A D | control.c | 59 child_cleanup(struct hast_resource *res) in child_cleanup() 76 uint8_t role, struct hast_resource *res, const char *name, unsigned int no) in control_set_role_common() 133 control_set_role(struct hast_resource *res, uint8_t role) in control_set_role() 140 control_status_worker(struct hast_resource *res, struct nv *nvout, in control_status_worker() 216 struct hast_resource *res, const char *name, unsigned int no, bool watchdog) in control_status() 309 struct hast_resource *res; in control_auth_confirm() 405 struct hast_resource *res; in control_handle_common() 469 control_send_event_status(struct hast_resource *res, int event, int status) in control_send_event_status() 511 struct hast_resource *res = arg; in ctrl_thread()
|
H A D | secondary.c | 64 static struct hast_resource *gres; 78 struct hast_resource *res; in init_remote() 104 struct hast_resource *res; in hastmon_secondary() 246 struct hast_resource *res; in respond_thread() 308 struct hast_resource *res = arg; in local_check_thread()
|
H A D | watchdog.c | 180 static struct hast_resource *gres; 188 cleanup(struct hast_resource *res) in cleanup() 229 init_environment(struct hast_resource *res) in init_environment() 322 hastmon_watchdog(struct hast_resource *res) in hastmon_watchdog() 413 struct hast_resource *res = arg; in heartbeat_start_thread() 479 struct hast_resource *res; in remote_send_thread() 597 struct hast_resource *res = arg; in heartbeat_end_thread() 637 struct hast_resource *res = arg; in guard_thread()
|
H A D | hast_proto.c | 67 hast_proto_send(const struct hast_resource *res, struct proto_conn *conn, in hast_proto_send() 154 hast_proto_recv_data(const struct hast_resource *res, struct proto_conn *conn, in hast_proto_recv_data() 187 hast_proto_recv(const struct hast_resource *res, struct proto_conn *conn, in hast_proto_recv()
|
H A D | primary.c | 180 static struct hast_resource *gres; 190 cleanup(struct hast_resource *res) in cleanup() 238 init_environment(struct hast_resource *res) in init_environment() 350 init_local(struct hast_resource *res) in init_local() 360 struct hast_resource *res; in init_remote() 513 hastmon_primary(struct hast_resource *res) in hastmon_primary() 662 struct hast_resource *res = arg; in heartbeat_start_thread() 704 struct hast_resource *res; in remote_send_thread() 803 struct hast_resource *res; in remote_recv_thread() 908 struct hast_resource *res = arg; in heartbeat_end_thread() [all …]
|
H A D | event.c | 43 event_send(struct hast_resource *res, int event) in event_send() 84 event_recv(struct hast_resource *res) in event_recv()
|
H A D | parse.y | 64 static struct hast_resource *curres; 289 yy_resource_free(struct hast_resource *res) in yy_resource_free() 308 struct hast_resource *res; in yy_config_free()
|
H A D | hooks.c | 101 hook_caller_alloc(struct hast_resource *res, int event) in hook_caller_alloc() 246 hook_invalidate_callers(struct hast_resource *res) in hook_invalidate_callers()
|