summaryrefslogtreecommitdiff
path: root/usr/session_mgmt.h
blob: a28bfa4668cf42ce0e4bda4d29e91a77251d4908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#ifndef _SESSION_MGMT_H_
#define _SESSION_MGMT_H_

struct node_rec;
struct list_head;
struct session_info;

extern int iscsi_login_portal(void *data, struct list_head *list,
			      struct node_rec *rec);
extern int iscsi_login_portal_nowait(struct node_rec *rec);
extern int iscsi_login_portals(void *data, int *nr_found, int wait,
			       struct list_head *rec_list,
			       int (*login_fn)(void *, struct list_head *,
						struct node_rec *));
extern int iscsi_login_portals_safe(void *data, int *nr_found, int wait,
			       struct list_head *rec_list,
			       int (*login_fn)(void *, struct list_head *,
						struct node_rec *));
extern int iscsi_logout_portal(struct session_info *info,
			       struct list_head *list);
extern int iscsi_logout_portals(void *data, int *nr_found, int wait,
				int (*logout_fn)(void *, struct list_head *,
						 struct session_info *));
extern int iscsi_check_for_running_session(struct node_rec *rec);

#endif