Lines Matching refs:val
44 void *val;
111 h->val, NULL);
115 munmap(h->val, PAGE_SIZE);
131 return (h->val);
137 pshared_insert(void *key, void **val)
147 * val, and the other val should be unmapped to avoid
152 * the val already inserted by the first thread should
153 * be returned, and the second val freed (order is by
160 * address, the hash would return the old val. I
166 if (h->val != *val) {
167 munmap(*val, PAGE_SIZE);
168 *val = h->val;
178 h->val = *val;
188 void *val;
194 val = h->val;
196 return (val);
203 pshared_clean(void *key, void *val)
206 if (val != NULL)
207 munmap(val, PAGE_SIZE);
246 void *val;
250 val = pshared_remove(key);
252 pshared_clean(key, val);