Lines Matching refs:node
58 * memory for the node data stored in the cache when
59 * that node is removed.
61 * to provide a copy of the node data stored in the
154 smb_cache_node_t *node;
169 node = avl_find(&chandle->ch_cache, newnode, &where);
170 if (node != NULL) {
172 avl_remove(&chandle->ch_cache, node);
174 chandle->ch_free(node->cn_data);
175 free(node);
192 * and remove it. The memory allocated for the found node
199 smb_cache_node_t *node;
207 node = avl_find(&chandle->ch_cache, &keynode, NULL);
208 if (node) {
210 avl_remove(&chandle->ch_cache, node);
212 chandle->ch_free(node->cn_data);
213 free(node);
242 smb_cache_node_t *node;
255 node = avl_first(&chandle->ch_cache);
257 node = AVL_NEXT(&chandle->ch_cache, cursor->cc_next);
259 if (node != NULL)
260 chandle->ch_copy(node->cn_data, data, chandle->ch_datasz);
262 cursor->cc_next = node;
265 return (node != NULL);