usr/src/cmd/svc/startd/startd.h
changeset 11482 7315713fb22c
parent 11466 d60272412fb0
child 11996 91b62f7b8186
equal deleted inserted replaced
11481:f3d007acb905 11482:7315713fb22c
   392 #define	RINST_RETAKE_RUNNING	0x01000000	/* pending running snapshot */
   392 #define	RINST_RETAKE_RUNNING	0x01000000	/* pending running snapshot */
   393 #define	RINST_RETAKE_START	0x02000000	/* pending start snapshot */
   393 #define	RINST_RETAKE_START	0x02000000	/* pending start snapshot */
   394 
   394 
   395 #define	RINST_RETAKE_MASK	0x0f000000
   395 #define	RINST_RETAKE_MASK	0x0f000000
   396 
   396 
   397 #define	RINST_START_TIMES	10		/* failures to consider */
   397 #define	RINST_START_TIMES	5		/* failures to consider */
   398 #define	RINST_FAILURE_RATE_NS	1000000000LL	/* 1 failure/second */
   398 #define	RINST_FAILURE_RATE_NS	600000000000LL	/* 1 failure/10 minutes */
   399 
   399 
   400 /* Number of events in the queue when we start dropping ADMIN events. */
   400 /* Number of events in the queue when we start dropping ADMIN events. */
   401 #define	RINST_QUEUE_THRESHOLD	100
   401 #define	RINST_QUEUE_THRESHOLD	100
   402 
   402 
   403 typedef struct restarter_inst {
   403 typedef struct restarter_inst {
   651 
   651 
   652 typedef int (*callback_t)(void *, void *);
   652 typedef int (*callback_t)(void *, void *);
   653 
   653 
   654 int walk_dependency_pgs(scf_instance_t *, callback_t, void *);
   654 int walk_dependency_pgs(scf_instance_t *, callback_t, void *);
   655 int walk_property_astrings(scf_property_t *, callback_t, void *);
   655 int walk_property_astrings(scf_property_t *, callback_t, void *);
       
   656 void libscf_reset_start_times(restarter_inst_t *, int);
   656 
   657 
   657 /* libscf.c - used by restarter.c/method.c/expand.c */
   658 /* libscf.c - used by restarter.c/method.c/expand.c */
   658 char *libscf_get_method(scf_handle_t *, int, restarter_inst_t *,
   659 char *libscf_get_method(scf_handle_t *, int, restarter_inst_t *,
   659     scf_snapshot_t *, method_restart_t *, uint_t *, uint8_t *, uint64_t *,
   660     scf_snapshot_t *, method_restart_t *, uint_t *, uint8_t *, uint64_t *,
   660     uint8_t *);
   661     uint8_t *);