Lines Matching defs:ses

112 	    (tcon->ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) ||
119 if (tcon->ses->server->ops->dump_share_caps)
120 tcon->ses->server->ops->dump_share_caps(m, tcon);
238 struct cifs_ses *ses;
244 seq_puts(m, "# <tree id> <ses id> <persistent fid> <flags> <count> <pid> <uid>");
252 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
253 if (cifs_ses_exiting(ses))
255 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
261 ses->Suid,
306 struct cifs_ses *ses;
487 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
488 spin_lock(&ses->ses_lock);
489 if (ses->ses_status == SES_EXITING) {
490 spin_unlock(&ses->ses_lock);
494 if ((ses->serverDomain == NULL) ||
495 (ses->serverOS == NULL) ||
496 (ses->serverNOS == NULL)) {
498 i, ses->ip_addr, ses->ses_count,
499 ses->capabilities, ses->ses_status);
500 if (ses->session_flags & SMB2_SESSION_FLAG_IS_GUEST)
502 else if (ses->session_flags & SMB2_SESSION_FLAG_IS_NULL)
509 i, ses->ip_addr, ses->serverDomain,
510 ses->ses_count, ses->serverOS, ses->serverNOS,
511 ses->capabilities, ses->ses_status);
513 if (ses->expired_pwd)
515 spin_unlock(&ses->ses_lock);
518 get_security_type_str(server->ops->select_sectype(server, ses->sectype)));
521 seq_printf(m, " SessionId: 0x%llx", ses->Suid);
522 if (ses->session_flags & SMB2_SESSION_FLAG_ENCRYPT_DATA) {
528 if (ses->sign)
532 from_kuid(&init_user_ns, ses->linux_uid),
533 from_kuid(&init_user_ns, ses->cred_uid));
535 if (ses->dfs_root_ses) {
537 ses->dfs_root_ses->Suid);
540 spin_lock(&ses->chan_lock);
541 if (CIFS_CHAN_NEEDS_RECONNECT(ses, 0))
543 if (CIFS_CHAN_IN_RECONNECT(ses, 0))
546 if (ses->chan_count > 1) {
548 ses->chan_count-1);
549 for (j = 1; j < ses->chan_count; j++) {
550 cifs_dump_channel(m, j, &ses->chans[j]);
551 if (CIFS_CHAN_NEEDS_RECONNECT(ses, j))
553 if (CIFS_CHAN_IN_RECONNECT(ses, j))
557 spin_unlock(&ses->chan_lock);
563 if (ses->tcon_ipc)
564 cifs_debug_tcon(m, ses->tcon_ipc);
568 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
574 spin_lock(&ses->iface_lock);
575 if (ses->iface_count)
578 ses->iface_count,
579 (jiffies - ses->iface_last_update) / HZ);
581 last_iface = list_last_entry(&ses->iface_list,
587 list_for_each_entry(iface, &ses->iface_list,
599 if (is_ses_using_iface(ses, iface))
602 spin_unlock(&ses->iface_lock);
605 spin_lock(&ses->chan_lock);
606 for (j = 0; j < ses->chan_count; j++) {
607 chan_server = ses->chans[j].server;
627 spin_unlock(&ses->chan_lock);
650 struct cifs_ses *ses;
680 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
681 if (cifs_ses_exiting(ses))
683 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {
710 struct cifs_ses *ses;
761 list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) {
762 if (cifs_ses_exiting(ses))
764 list_for_each_entry(tcon, &ses->tcon_list, tcon_list) {