Lines Matching defs:udata
352 bucket_alloc(uma_zone_t zone, void *udata, int flags)
376 udata = (void *)(uintptr_t)zone->uz_flags;
378 if ((uintptr_t)udata & UMA_ZFLAG_BUCKET)
380 udata = (void *)((uintptr_t)udata | UMA_ZFLAG_BUCKET);
382 if ((uintptr_t)udata & UMA_ZFLAG_CACHEONLY)
387 bucket = uma_zalloc_arg(ubz->ubz_zone, udata, flags);
400 bucket_free(uma_zone_t zone, uma_bucket_t bucket, void *udata)
407 udata = (void *)(uintptr_t)zone->uz_flags;
409 uma_zfree_arg(ubz->ubz_zone, bucket, udata);
1397 * udata Actually uma_kctor_args
1400 keg_ctor(void *mem, int size, void *udata, int flags)
1402 struct uma_kctor_args *arg = udata;
1531 * udata Actually uma_zctor_args
1534 zone_ctor(void *mem, int size, void *udata, int flags)
1536 struct uma_zctor_args *arg = udata;
1658 * udata unused
1661 keg_dtor(void *arg, int size, void *udata)
1684 * udata unused
1687 zone_dtor(void *arg, int size, void *udata)
2086 uma_zalloc_arg(uma_zone_t zone, void *udata, int flags)
2119 zone->uz_ctor(item, zone->uz_size, udata,
2156 zone->uz_ctor(item, zone->uz_size, udata, flags) != 0) {
2158 zone_free_item(zone, item, udata, SKIP_DTOR);
2190 bucket_free(zone, bucket, udata);
2257 bucket = zone_alloc_bucket(zone, udata, flags);
2284 item = zone_alloc_item(zone, udata, flags);
2520 zone_alloc_bucket(uma_zone_t zone, void *udata, int flags)
2526 bucket = bucket_alloc(zone, udata, M_NOWAIT | (flags & M_NOVM));
2560 bucket_free(zone, bucket, udata);
2573 * udata The data to be passed to the constructor.
2582 zone_alloc_item(uma_zone_t zone, void *udata, int flags)
2603 zone_free_item(zone, item, udata, SKIP_FINI);
2608 if (zone->uz_ctor(item, zone->uz_size, udata, flags) != 0) {
2609 zone_free_item(zone, item, udata, SKIP_DTOR);
2628 uma_zfree_arg(uma_zone_t zone, void *item, void *udata)
2653 zone->uz_dtor(item, zone->uz_size, udata);
2662 uma_dbg_free(zone, udata, item);
2667 zone->uz_dtor(item, zone->uz_size, udata);
2772 bucket = bucket_alloc(zone, udata, M_NOWAIT);
2786 bucket_free(zone, bucket, udata);
2794 zone_free_item(zone, item, udata, SKIP_DTOR);
2889 * udata User supplied data for the dtor
2893 zone_free_item(uma_zone_t zone, void *item, void *udata, enum zfreeskip skip)
2899 uma_dbg_free(zone, udata, item);
2905 zone->uz_dtor(item, zone->uz_size, udata);