Lines Matching defs:cfg_p
60 struct isns_config_s *cfg_p;
65 if ((cfg_p = isns_new_config()) == NULL) {
70 cfg_p->is_server = is_server;
71 cfg_p->curtask_p = NULL;
73 if ((rval = pipe(cfg_p->pipe_fds)) != 0) {
75 isns_destroy_config(cfg_p);
79 if ((cfg_p->kq = kqueue()) == -1) {
81 isns_destroy_config(cfg_p);
85 rval = isns_change_kevent_list(cfg_p, (uintptr_t)cfg_p->pipe_fds[0],
91 isns_destroy_config(cfg_p);
99 isns_destroy_config(cfg_p);
105 isns_destroy_config(cfg_p);
110 if ((rval = isns_thread_create(cfg_p)) != 0) {
112 isns_destroy_config(cfg_p);
117 *isns_handle_p = (ISNS_HANDLE)cfg_p;
129 struct isns_config_s *cfg_p;
137 cfg_p = (struct isns_config_s *)isns_handle;
174 task_p = isns_new_task(cfg_p, ISNS_TASK_INIT_SOCKET_IO, 1);
178 isns_taskq_insert_head(cfg_p, task_p);
179 isns_issue_cmd(cfg_p, ISNS_CMD_PROCESS_TASKQ);
192 struct isns_config_s *cfg_p;
200 cfg_p = (struct isns_config_s *)isns_handle;
201 task_p = isns_new_task(cfg_p, ISNS_TASK_INIT_REFRESH, 0);
218 isns_taskq_insert_tail(cfg_p, task_p);
219 isns_issue_cmd(cfg_p, ISNS_CMD_PROCESS_TASKQ);
230 struct isns_config_s *cfg_p = (struct isns_config_s *)isns_handle;
234 isns_issue_cmd(cfg_p, ISNS_CMD_STOP);
236 isns_thread_destroy(cfg_p);
237 isns_destroy_config(cfg_p);