Searched refs:smcsock (Results 1 – 1 of 1) sorted by relevance
3279 struct socket *smcsock; in smc_ulp_init() local3295 smcsock = sock_alloc(); in smc_ulp_init()3296 if (!smcsock) in smc_ulp_init()3299 smcsock->type = SOCK_STREAM; in smc_ulp_init()3301 ret = __smc_create(net, smcsock, protocol, 1, tcp); in smc_ulp_init()3303 sock_release(smcsock); /* module_put() which ops won't be NULL */ in smc_ulp_init()3308 smcsock->file = tcp->file; in smc_ulp_init()3309 smcsock->file->private_data = smcsock; in smc_ulp_init()3310 smcsock->file->f_inode = SOCK_INODE(smcsock); /* replace inode when sock_close */ in smc_ulp_init()3311 smcsock->file->f_path.dentry->d_inode = SOCK_INODE(smcsock); /* dput() in __fput */ in smc_ulp_init()