mpathpersist: Add new utility for managing persistent reservation on dm multipath...
[platform/upstream/multipath-tools.git] / multipathd / main.h
1 #ifndef MAIN_H
2 #define MAIN_H
3
4 #define MAPGCINT 5
5
6 enum daemon_status {
7     DAEMON_INIT,
8     DAEMON_START,
9     DAEMON_CONFIGURE,
10     DAEMON_RUNNING,
11     DAEMON_SHUTDOWN,
12 };
13
14 struct prout_param_descriptor;
15 struct prin_resp;
16
17 extern pid_t daemon_pid;
18
19 int exit_daemon(int);
20 const char * daemon_status(void);
21 int reconfigure (struct vectors *);
22 int ev_add_path (char *, struct vectors *);
23 int ev_remove_path (char *, struct vectors *);
24 int ev_add_map (char *, char *, struct vectors *);
25 int ev_remove_map (char *, char *, int, struct vectors *);
26 void sync_map_state (struct multipath *);
27 void * mpath_alloc_prin_response(int prin_sa);
28 int prin_do_scsi_ioctl(char *, int rq_servact, struct prin_resp * resp,
29        int noisy);
30 void dumpHex(const char * , int len, int no_ascii);
31 int prout_do_scsi_ioctl(char * , int rq_servact, int rq_scope,
32        unsigned int rq_type, struct prout_param_descriptor *param,
33        int noisy);
34 int mpath_pr_event_handle(struct path *pp);
35 void * mpath_pr_event_handler_fn (void * );
36 int update_map_pr(struct multipath *mpp);
37 void * mpath_pr_event_handler_fn (void * pathp );
38
39 #endif /* MAIN_H */