Lines Matching defs:ctx
65 smbfs_newvc(struct smb_ctx *ctx, struct addrinfo *ai)
67 smbioc_ossn_t *ssn = &ctx->ct_ssn;
79 return (smbfs_iod_cl_newvc(ctx));
87 smbfs_ctx_newvc(struct smb_ctx *ctx)
93 if ((ctx->ct_flags & SMBCF_RESOLVED) == 0)
101 if (ctx->ct_door_fd < 0) {
102 err = smbfs_iod_cl_start(ctx);
108 for (ai = ctx->ct_addrinfo; ai; ai = ai->ai_next) {
115 err = smbfs_newvc(ctx, ai);
135 (void) close(ctx->ct_door_fd);
136 ctx->ct_door_fd = -1;
149 smbfs_findvc(struct smb_ctx *ctx, struct addrinfo *ai)
151 smbioc_ossn_t *ssn = &ctx->ct_ssn;
163 if (ioctl(ctx->ct_dev_fd, SMBIOC_SSN_FIND, ssn) == -1)
173 smbfs_ctx_findvc(struct smb_ctx *ctx)
179 if ((ctx->ct_flags & SMBCF_RESOLVED) == 0)
182 for (ai = ctx->ct_addrinfo; ai; ai = ai->ai_next) {
189 err = smbfs_findvc(ctx, ai);
200 ctx->ct_flags |= SMBCF_SSNACTIVE;
215 smbfs_ctx_kill(struct smb_ctx *ctx)
218 if (ioctl(ctx->ct_dev_fd, SMBIOC_SSN_KILL, NULL) == -1)