return NULL;
}
+/**
+ * rmove - move a resource
+ * @res: resource
+ * @p: pool to move the resource to
+ *
+ * rmove() moves a resource from one pool to another.
+ */
+
+void rmove(void *res, pool *p)
+{
+ resource *r = res;
+
+ if (r)
+ {
+ if (r->n.next)
+ rem_node(&r->n);
+ add_tail(&p->inside, &r->n);
+ }
+}
+
/**
* rfree - free a resource
* @res: resource
void rfree(void *); /* Free single resource */
void rdump(void *); /* Dump to debug output */
void rlookup(unsigned long); /* Look up address (only for debugging) */
+void rmove(void *, pool *); /* Move to a different pool */
void *ralloc(pool *, struct resclass *);