Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/iscsi/icl.h
Show First 20 Lines • Show All 138 Lines • ▼ Show 20 Lines | struct icl_conn *icl_new_conn(const char *offload, bool iser, const char *name, | ||||
struct mtx *lock); | struct mtx *lock); | ||||
int icl_limits(const char *offload, bool iser, | int icl_limits(const char *offload, bool iser, | ||||
struct icl_drv_limits *idl); | struct icl_drv_limits *idl); | ||||
int icl_register(const char *offload, bool iser, int priority, | int icl_register(const char *offload, bool iser, int priority, | ||||
int (*limits)(struct icl_drv_limits *), | int (*limits)(struct icl_drv_limits *), | ||||
struct icl_conn *(*new_conn)(const char *, struct mtx *)); | struct icl_conn *(*new_conn)(const char *, struct mtx *)); | ||||
int icl_unregister(const char *offload, bool rdma); | int icl_unregister(const char *offload, bool rdma); | ||||
#ifdef ICL_KERNEL_PROXY | |||||
struct sockaddr; | struct sockaddr; | ||||
#ifdef ICL_KERNEL_PROXY | |||||
struct icl_listen; | struct icl_listen; | ||||
/* | /* | ||||
* Target part. | * Target part. | ||||
*/ | */ | ||||
struct icl_listen *icl_listen_new(void (*accept_cb)(struct socket *, | struct icl_listen *icl_listen_new(void (*accept_cb)(struct socket *, | ||||
struct sockaddr *, int)); | struct sockaddr *, int)); | ||||
void icl_listen_free(struct icl_listen *il); | void icl_listen_free(struct icl_listen *il); | ||||
int icl_listen_add(struct icl_listen *il, bool rdma, | int icl_listen_add(struct icl_listen *il, bool rdma, | ||||
int domain, int socktype, int protocol, | int domain, int socktype, int protocol, | ||||
struct sockaddr *sa, int portal_id); | struct sockaddr *sa, int portal_id); | ||||
int icl_listen_remove(struct icl_listen *il, struct sockaddr *sa); | int icl_listen_remove(struct icl_listen *il, struct sockaddr *sa); | ||||
#endif /* ICL_KERNEL_PROXY */ | |||||
/* | /* | ||||
* Those two are not a public API; only to be used between icl_soft.c | * Those are not a public API; only to be used between icl_soft.c, iscsi.c | ||||
emaste: Now there's only one -- "This is not a public API"
| |||||
* and icl_soft_proxy.c. | * and icl_soft_proxy.c. | ||||
*/ | */ | ||||
int icl_soft_handoff_sock(struct icl_conn *ic, struct socket *so); | |||||
int icl_soft_proxy_connect(struct icl_conn *ic, int domain, | int icl_soft_proxy_connect(struct icl_conn *ic, int domain, | ||||
int socktype, int protocol, struct sockaddr *from_sa, | int socktype, int protocol, struct sockaddr *from_sa, | ||||
struct sockaddr *to_sa); | struct sockaddr *to_sa); | ||||
#endif /* ICL_KERNEL_PROXY */ | |||||
#endif /* !ICL_H */ | #endif /* !ICL_H */ |
Now there's only one -- "This is not a public API"