Lines Matching refs:rsk_prot
2803 static void req_prot_cleanup(struct request_sock_ops *rsk_prot) in req_prot_cleanup() argument
2805 if (!rsk_prot) in req_prot_cleanup()
2807 kfree(rsk_prot->slab_name); in req_prot_cleanup()
2808 rsk_prot->slab_name = NULL; in req_prot_cleanup()
2809 kmem_cache_destroy(rsk_prot->slab); in req_prot_cleanup()
2810 rsk_prot->slab = NULL; in req_prot_cleanup()
2815 struct request_sock_ops *rsk_prot = prot->rsk_prot; in req_prot_init() local
2817 if (!rsk_prot) in req_prot_init()
2820 rsk_prot->slab_name = kasprintf(GFP_KERNEL, "request_sock_%s", in req_prot_init()
2822 if (!rsk_prot->slab_name) in req_prot_init()
2825 rsk_prot->slab = kmem_cache_create(rsk_prot->slab_name, in req_prot_init()
2826 rsk_prot->obj_size, 0, in req_prot_init()
2829 if (!rsk_prot->slab) { in req_prot_init()
2879 req_prot_cleanup(prot->rsk_prot); in proto_register()
2898 req_prot_cleanup(prot->rsk_prot); in proto_unregister()