Lines Matching defs:ctx
65 findvc(struct smb_ctx *ctx, struct addrinfo *ai)
67 smbioc_ossn_t *ssn = &ctx->ct_ssn;
79 if (ioctl(ctx->ct_dev_fd, SMBIOC_SSN_FIND, ssn) == -1)
90 smb_ctx_findvc(struct smb_ctx *ctx)
96 if ((ctx->ct_flags & SMBCF_RESOLVED) == 0)
99 for (ai = ctx->ct_addrinfo; ai; ai = ai->ai_next) {
106 err = findvc(ctx, ai);
117 ctx->ct_flags |= SMBCF_SSNACTIVE;
132 smb_ctx_kill(struct smb_ctx *ctx)
135 if (ioctl(ctx->ct_dev_fd, SMBIOC_SSN_KILL, NULL) == -1)