Lines Matching refs:cn
1386 ns_conn_mt_t *cn;
1426 for (cn = cmg->cm_head; cn; cn = cn->next) {
1427 (void) mutex_lock(&cn->lock);
1428 rc = match_conn_mt(cu, &cn, st, server, cred);
1429 if (rc == B_FALSE && cn != NULL) /* not found */
1431 if (cn == NULL) { /* not found and cn freed */
1434 * be different due to cn's
1444 if (cn->state == NS_CONN_MT_CONNECTED) {
1445 *session = cn->conn;
1446 add_cu2cm(cu, cn);
1447 cu->conn_mt = cn;
1449 (void) mutex_unlock(&cn->lock);
1455 * if cn is not connecting, or allow only
1458 if (cn->state != NS_CONN_MT_CONNECTING ||
1459 cn->cu_max == 1) {
1460 (void) mutex_unlock(&cn->lock);
1465 if (wait_for_conn_mt(cu, cn) != 1) {
1476 if (cn->ns_rc != NS_LDAP_NOTFOUND)
1482 (void) mutex_unlock(&cn->lock);
1486 return (cn->ns_rc);
1490 *session = cn->conn;
1492 (void) mutex_unlock(&cn->lock);
1505 cn = init_conn_mt(cmg, errorp);
1506 if (cn == NULL) {
1510 cu->conn_mt = cn;
1511 cn->opened_for = cu->type;
1512 cn->referral = cu->referral;
1514 cn->cu_max = NS_CONN_MT_USER_MAX;
1516 cn->cu_max = 1;
1517 add_cm2cmg(cn, cmg);