D | idset.c | 26 struct idset *set; in idset_new() local 28 set = vmalloc(sizeof(struct idset) + bitmap_size(num_ssid, num_id)); in idset_new() 29 if (set) { in idset_new() 30 set->num_ssid = num_ssid; in idset_new() 31 set->num_id = num_id; in idset_new() 32 memset(set->bitmap, 0, bitmap_size(num_ssid, num_id)); in idset_new() 34 return set; in idset_new() 37 void idset_free(struct idset *set) in idset_free() argument 39 vfree(set); in idset_free() 42 void idset_clear(struct idset *set) in idset_clear() argument [all …]
|