Lines Matching refs:rsk_prot
3843 static void req_prot_cleanup(struct request_sock_ops *rsk_prot) in req_prot_cleanup() argument
3845 if (!rsk_prot) in req_prot_cleanup()
3847 kfree(rsk_prot->slab_name); in req_prot_cleanup()
3848 rsk_prot->slab_name = NULL; in req_prot_cleanup()
3849 kmem_cache_destroy(rsk_prot->slab); in req_prot_cleanup()
3850 rsk_prot->slab = NULL; in req_prot_cleanup()
3855 struct request_sock_ops *rsk_prot = prot->rsk_prot; in req_prot_init() local
3857 if (!rsk_prot) in req_prot_init()
3860 rsk_prot->slab_name = kasprintf(GFP_KERNEL, "request_sock_%s", in req_prot_init()
3862 if (!rsk_prot->slab_name) in req_prot_init()
3865 rsk_prot->slab = kmem_cache_create(rsk_prot->slab_name, in req_prot_init()
3866 rsk_prot->obj_size, 0, in req_prot_init()
3870 if (!rsk_prot->slab) { in req_prot_init()
3926 req_prot_cleanup(prot->rsk_prot); in proto_register()
3946 req_prot_cleanup(prot->rsk_prot); in proto_unregister()