Lines Matching refs:label
64 zone_label = uma_zcreate("MAC labels", sizeof(struct label), in mac_labelzone_init()
75 mac_init_label(struct label *label) in mac_init_label() argument
78 bzero(label, sizeof(*label)); in mac_init_label()
79 label->l_flags = MAC_FLAG_INITIALIZED; in mac_init_label()
83 mac_destroy_label(struct label *label) in mac_destroy_label() argument
86 KASSERT(label->l_flags & MAC_FLAG_INITIALIZED, in mac_destroy_label()
90 bzero(label, sizeof(*label)); in mac_destroy_label()
92 label->l_flags &= ~MAC_FLAG_INITIALIZED; in mac_destroy_label()
99 struct label *label; in mac_labelzone_ctor() local
101 KASSERT(size == sizeof(*label), ("mac_labelzone_ctor: wrong size\n")); in mac_labelzone_ctor()
102 label = mem; in mac_labelzone_ctor()
103 mac_init_label(label); in mac_labelzone_ctor()
110 struct label *label; in mac_labelzone_dtor() local
112 KASSERT(size == sizeof(*label), ("mac_labelzone_dtor: wrong size\n")); in mac_labelzone_dtor()
113 label = mem; in mac_labelzone_dtor()
114 mac_destroy_label(label); in mac_labelzone_dtor()
117 struct label *
125 mac_labelzone_free(struct label *label) in mac_labelzone_free() argument
128 uma_zfree(zone_label, label); in mac_labelzone_free()
135 mac_label_get(struct label *l, int slot) in mac_label_get()
144 mac_label_set(struct label *l, int slot, intptr_t v) in mac_label_set()