Searched refs:smcsock (Results 1 – 1 of 1) sorted by relevance
3386 struct socket *smcsock; in smc_ulp_init() local3402 smcsock = sock_alloc(); in smc_ulp_init()3403 if (!smcsock) in smc_ulp_init()3406 smcsock->type = SOCK_STREAM; in smc_ulp_init()3408 ret = __smc_create(net, smcsock, protocol, 1, tcp); in smc_ulp_init()3410 sock_release(smcsock); /* module_put() which ops won't be NULL */ in smc_ulp_init()3415 smcsock->file = tcp->file; in smc_ulp_init()3416 smcsock->file->private_data = smcsock; in smc_ulp_init()3417 smcsock->file->f_inode = SOCK_INODE(smcsock); /* replace inode when sock_close */ in smc_ulp_init()3418 smcsock->file->f_path.dentry->d_inode = SOCK_INODE(smcsock); /* dput() in __fput */ in smc_ulp_init()