Lines Matching refs:rsk_prot
3987 static void req_prot_cleanup(struct request_sock_ops *rsk_prot) in req_prot_cleanup() argument
3989 if (!rsk_prot) in req_prot_cleanup()
3991 kfree(rsk_prot->slab_name); in req_prot_cleanup()
3992 rsk_prot->slab_name = NULL; in req_prot_cleanup()
3993 kmem_cache_destroy(rsk_prot->slab); in req_prot_cleanup()
3994 rsk_prot->slab = NULL; in req_prot_cleanup()
3999 struct request_sock_ops *rsk_prot = prot->rsk_prot; in req_prot_init() local
4001 if (!rsk_prot) in req_prot_init()
4004 rsk_prot->slab_name = kasprintf(GFP_KERNEL, "request_sock_%s", in req_prot_init()
4006 if (!rsk_prot->slab_name) in req_prot_init()
4009 rsk_prot->slab = kmem_cache_create(rsk_prot->slab_name, in req_prot_init()
4010 rsk_prot->obj_size, 0, in req_prot_init()
4014 if (!rsk_prot->slab) { in req_prot_init()
4070 req_prot_cleanup(prot->rsk_prot); in proto_register()
4090 req_prot_cleanup(prot->rsk_prot); in proto_unregister()