Home | History | Annotate | Download | only in refuse

Lines Matching refs:idx

107     int idx;
116 for (idx = 0; idx < (int)storage.n_alloc; idx++) {
117 if (storage.vec[idx] == NULL) {
118 storage.vec[idx] = chan;
128 idx = -1;
132 storage.vec[idx] = chan;
133 memset(&storage.vec[idx+1], 0, sizeof(struct fuse_chan*) * (storage.n_alloc - (size_t)idx - 1));
140 return idx;
144 struct fuse_chan* fuse_chan_peek(int idx) {
153 if (idx >= 0 && idx < (int)storage.n_alloc) {
154 chan = storage.vec[idx];
166 struct fuse_chan* fuse_chan_take(int idx) {
175 if (idx >= 0 && idx < (int)storage.n_alloc) {
176 chan = storage.vec[idx];
177 storage.vec[idx] = NULL;
192 int idx;
201 for (idx = 0; idx < (int)storage.n_alloc; idx++) {
202 if (storage.vec[idx] != NULL) {
203 if (pred(storage.vec[idx], priv)) {
204 chan = storage.vec[idx];
206 *found_idx = idx;