Lines Matching refs:rsk_prot
3335 static void req_prot_cleanup(struct request_sock_ops *rsk_prot) in req_prot_cleanup() argument
3337 if (!rsk_prot) in req_prot_cleanup()
3339 kfree(rsk_prot->slab_name); in req_prot_cleanup()
3340 rsk_prot->slab_name = NULL; in req_prot_cleanup()
3341 kmem_cache_destroy(rsk_prot->slab); in req_prot_cleanup()
3342 rsk_prot->slab = NULL; in req_prot_cleanup()
3347 struct request_sock_ops *rsk_prot = prot->rsk_prot; in req_prot_init() local
3349 if (!rsk_prot) in req_prot_init()
3352 rsk_prot->slab_name = kasprintf(GFP_KERNEL, "request_sock_%s", in req_prot_init()
3354 if (!rsk_prot->slab_name) in req_prot_init()
3357 rsk_prot->slab = kmem_cache_create(rsk_prot->slab_name, in req_prot_init()
3358 rsk_prot->obj_size, 0, in req_prot_init()
3362 if (!rsk_prot->slab) { in req_prot_init()
3424 req_prot_cleanup(prot->rsk_prot); in proto_register()
3444 req_prot_cleanup(prot->rsk_prot); in proto_unregister()