Lines Matching defs:storage
67 static struct refuse_chan_storage storage;
115 /* Find the first empty slot in the storage. */
116 for (idx = 0; idx < (int)storage.n_alloc; idx++) {
117 if (storage.vec[idx] == NULL) {
118 storage.vec[idx] = chan;
124 storage.n_alloc = (storage.n_alloc + 8) * 2;
125 storage.vec = realloc(storage.vec, sizeof(struct fuse_chan*) * storage.n_alloc);
126 if (!storage.vec) {
132 storage.vec[idx] = chan;
133 memset(&storage.vec[idx+1], 0, sizeof(struct fuse_chan*) * (storage.n_alloc - (size_t)idx - 1));
153 if (idx >= 0 && idx < (int)storage.n_alloc) {
154 chan = storage.vec[idx];
165 * storage. */
175 if (idx >= 0 && idx < (int)storage.n_alloc) {
176 chan = storage.vec[idx];
177 storage.vec[idx] = NULL;
188 * storage, or NULL if no channels satisfy it. */
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];