Lines Matching refs:ret
67 int ret; in iothread_start() local
86 ret = pthread_setaffinity_np(ioctx_x->tid, sizeof(cpuset_t), &(ioctx_x->cpuset)); in iothread_start()
87 if (ret != 0) { in iothread_start()
88 pr_err("pthread_setaffinity_np fails %d \n", ret); in iothread_start()
102 int ret; in iothread_add() local
112 ret = epoll_ctl(ioctx_x->epfd, EPOLL_CTL_ADD, fd, &ee); in iothread_add()
113 if (ret < 0) { in iothread_add()
116 return ret; in iothread_add()
120 ret = iothread_start(ioctx_x); in iothread_add()
121 if (ret < 0) { in iothread_add()
125 return ret; in iothread_add()
131 int ret = 0; in iothread_del() local
139 ret = epoll_ctl(ioctx_x->epfd, EPOLL_CTL_DEL, fd, NULL); in iothread_del()
140 if (ret < 0) in iothread_del()
144 return ret; in iothread_del()
193 int i, ret, base, end; in iothread_create() local
196 ret = 0; in iothread_create()
208 ret = -1; in iothread_create()
236 ret = -1; in iothread_create()
242 if (ret == 0) { in iothread_create()