Lines Matching defs:key

165  *   zsd_key_lock: This is a global lock protecting the key state for ZSD.
289 * The next caller of zone_key_create() will be assigned a key of ++zsd_keyval.
567 * Helper function to find the zsd_entry associated with the key in the
571 zsd_find(list_t *l, zone_key_t key)
576 if (zsd->zsd_key == key) {
584 * Helper function to find the zsd_entry associated with the key in the
588 zsd_find_mru(list_t *l, zone_key_t key)
593 if (zsd->zsd_key == key) {
614 zone_key_t key;
627 key = zsdp->zsd_key = ++zsd_keyval;
651 t = zsd_find_mru(&zone->zone_zsd, key);
661 t->zsd_key = key;
668 zone_t *, zone, zone_key_t, key);
676 /* Now call the create callback for this key */
677 zsd_apply_all_zones(zsd_apply_create, key);
680 * It is safe for consumers to use the key now, make it
683 * with the key.
685 *keyp = key;
691 * to unregister its ZSD key and callbacks.
699 zone_key_delete(zone_key_t key)
705 zsdp = zsd_find_mru(&zsd_registered_keys, key);
719 del = zsd_find_mru(&zone->zone_zsd, key);
734 zone_t *, zone, zone_key_t, key);
740 zone_t *, zone, zone_key_t, key);
747 /* Now call the shutdown and destroy callback for this key */
748 zsd_apply_all_zones(zsd_apply_shutdown, key);
749 zsd_apply_all_zones(zsd_apply_destroy, key);
758 del = zsd_find(&zone->zone_zsd, key);
775 * have an entry in zone_zsd, if the key is registered it is part of
777 * Return an error if the key wasn't registerd.
780 zone_setspecific(zone_key_t key, zone_t *zone, const void *data)
785 t = zsd_find_mru(&zone->zone_zsd, key);
802 zone_getspecific(zone_key_t key, zone_t *zone)
808 t = zsd_find_mru(&zone->zone_zsd, key);
877 zone_key_t key = t->zsd_key;
886 zone_t *, zone, zone_key_t, key);
893 zone_t *, zone, zone_key_t, key);
899 /* Now call the shutdown and destroy callback for this key */
930 * Apply a function to all zones for particular key value.
946 zsd_apply_all_zones(zsd_applyfn_t *applyfn, zone_key_t key)
953 if ((applyfn)(&zonehash_lock, B_FALSE, zone, key)) {
998 * Call the create function for the zone and key if CREATE_NEEDED
1012 zone_t *zone, zone_key_t key)
1027 t = zsd_find(&zone->zone_zsd, key);
1045 zone_t *, zone, zone_key_t, key);
1053 zone_t *, zone, zone_key_t, key);
1069 zone_t *, zone, zone_key_t, key);
1077 * Call the shutdown function for the zone and key if SHUTDOWN_NEEDED
1091 zone_t *zone, zone_key_t key)
1106 t = zsd_find(&zone->zone_zsd, key);
1127 zone_t *, zone, zone_key_t, key);
1137 zone_t *, zone, zone_key_t, key);
1141 zone_t *, zone, zone_key_t, key);
1150 zone_t *, zone, zone_key_t, key);
1158 * Call the destroy function for the zone and key if DESTROY_NEEDED
1172 zone_t *zone, zone_key_t key)
1187 t = zsd_find(&zone->zone_zsd, key);
1208 zone_t *, zone, zone_key_t, key);
1217 zone_t *, zone, zone_key_t, key);
1221 zone_t *, zone, zone_key_t, key);
1231 zone_t *, zone, zone_key_t, key);
2136 hash_bylabel(void *hdata, mod_hash_key_t key)
2138 const ts_label_t *lab = (ts_label_t *)key;
3097 * Similar to zone_find_by_id, but using zone label as the key.
3125 * Similar to zone_find_by_id, but using zone name as the key.
3152 * Similar to zone_find_by_id(), using the path as a key. For instance,
4047 /* Now call the create callback for this key */