Lines Matching refs:new

179 	 * We assert rhc_invalid here to make sure that no new thread could
322 * Load a remote host entry into kernel cache. Create a new one if a matching
333 tnrh_hash_add(tsol_tnrhc_t *new, short prefix)
342 if (new->rhc_host.ta_family == AF_INET) {
351 TSOL_ADDR_HASH(new->rhc_host.ta_addr_v4.s_addr &
358 new->rhc_host.ta_addr_v4.s_addr) & tmpmask) ==
362 } else if (new->rhc_host.ta_family == AF_INET6) {
371 TSOL_ADDR_MASK_HASH_V6(new->rhc_host.ta_addr_v6,
378 new->rhc_host.ta_addr_v6))
396 TNRHC_HOLD(new);
397 new->rhc_next = tnrhc_hash->tnrh_list;
398 tnrhc_hash->tnrh_list = new;
399 DTRACE_PROBE1(tx__tndb__l2__tnrhhashadd__addedrh, tsol_tnrhc_t *, new);
413 tsol_tnrhc_t *new;
424 if ((new = kmem_zalloc(sizeof (*new), KM_NOSLEEP)) == NULL) {
429 /* Initialize the new entry. */
430 mutex_init(&new->rhc_lock, NULL, MUTEX_DEFAULT, NULL);
431 new->rhc_host = rhent->rh_address;
434 new->rhc_tpc = tpc;
439 * here to trigger deletion of the new hash table entry in the
442 TNRHC_HOLD(new);
443 status = tnrh_hash_add(new, rhent->rh_prefix);
444 TNRHC_RELE(new);
573 * We intentionally allocate a new entry before taking the lock on the
738 * either logically follows the new entry to be inserted, or is the entry that
739 * precedes and overlaps the new entry, or is NULL to mean end-of-list. This
741 * on the front or back of this new entry.
765 * has a starting port number that's greater than the end point of the new
1044 tsol_tnrhc_t *new;
1132 * to it. Try to find a new version of the template.
1150 if ((new = kmem_zalloc(sizeof (*new),
1158 mutex_init(&new->rhc_lock, NULL, MUTEX_DEFAULT, NULL);
1159 new->rhc_host = rh->rhc_host;
1160 new->rhc_tpc = tpc;
1161 new->rhc_isbcast = rh->rhc_isbcast;
1162 new->rhc_local = rh->rhc_local;
1164 rh = new;
1173 if (tnrh_hash_add(new, prefix) != 0) {
1233 tsol_tnrhc_t *rh, *new;
1236 /* Allocate a new entry before taking the lock */
1237 new = kmem_zalloc(sizeof (*new), KM_SLEEP);
1246 /* We're keeping the new entry. */
1247 rh = new;
1248 new = NULL;
1265 if (new != NULL)
1266 kmem_free(new, sizeof (*new));