Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions | Variables
connect.c File Reference
#include <linux/fs.h>
#include <linux/net.h>
#include <linux/string.h>
#include <linux/list.h>
#include <linux/wait.h>
#include <linux/slab.h>
#include <linux/pagemap.h>
#include <linux/ctype.h>
#include <linux/utsname.h>
#include <linux/mempool.h>
#include <linux/delay.h>
#include <linux/completion.h>
#include <linux/kthread.h>
#include <linux/pagevec.h>
#include <linux/freezer.h>
#include <linux/namei.h>
#include <asm/uaccess.h>
#include <asm/processor.h>
#include <linux/inet.h>
#include <linux/module.h>
#include <keys/user-type.h>
#include <net/ipv6.h>
#include <linux/parser.h>
#include "cifspdu.h"
#include "cifsglob.h"
#include "cifsproto.h"
#include "cifs_unicode.h"
#include "cifs_debug.h"
#include "cifs_fs_sb.h"
#include "ntlmssp.h"
#include "nterr.h"
#include "rfc1002pdu.h"
#include "fscache.h"

Go to the source code of this file.

Macros

#define CIFS_PORT   445
 
#define RFC1001_PORT   139
 
#define TLINK_ERROR_EXPIRE   (1 * HZ)
 
#define TLINK_IDLE_EXPIRE   (600 * HZ)
 

Enumerations

enum  {
  Opt_user_xattr, Opt_nouser_xattr, Opt_forceuid, Opt_noforceuid,
  Opt_forcegid, Opt_noforcegid, Opt_noblocksend, Opt_noautotune,
  Opt_hard, Opt_soft, Opt_perm, Opt_noperm,
  Opt_mapchars, Opt_nomapchars, Opt_sfu, Opt_nosfu,
  Opt_nodfs, Opt_posixpaths, Opt_noposixpaths, Opt_nounix,
  Opt_nocase, Opt_brl, Opt_nobrl, Opt_forcemandatorylock,
  Opt_setuids, Opt_nosetuids, Opt_dynperm, Opt_nodynperm,
  Opt_nohard, Opt_nosoft, Opt_nointr, Opt_intr,
  Opt_nostrictsync, Opt_strictsync, Opt_serverino, Opt_noserverino,
  Opt_rwpidforward, Opt_cifsacl, Opt_nocifsacl, Opt_acl,
  Opt_noacl, Opt_locallease, Opt_sign, Opt_seal,
  Opt_noac, Opt_fsc, Opt_mfsymlinks, Opt_multiuser,
  Opt_sloppy, Opt_backupuid, Opt_backupgid, Opt_uid,
  Opt_cruid, Opt_gid, Opt_file_mode, Opt_dirmode,
  Opt_port, Opt_rsize, Opt_wsize, Opt_actimeo,
  Opt_user, Opt_pass, Opt_ip, Opt_unc,
  Opt_domain, Opt_srcaddr, Opt_prefixpath, Opt_iocharset,
  Opt_sockopt, Opt_netbiosname, Opt_servern, Opt_ver,
  Opt_vers, Opt_sec, Opt_cache, Opt_ignore,
  Opt_blank_pass, Opt_blank_user, Opt_blank_ip, Opt_err
}
 
enum  {
  Opt_sec_krb5, Opt_sec_krb5i, Opt_sec_krb5p, Opt_sec_ntlmsspi,
  Opt_sec_ntlmssp, Opt_ntlm, Opt_sec_ntlmi, Opt_sec_ntlmv2,
  Opt_sec_ntlmv2i, Opt_sec_lanman, Opt_sec_none, Opt_sec_err
}
 
enum  { Opt_cache_loose, Opt_cache_strict, Opt_cache_none, Opt_cache_err }
 

Functions

int cifs_reconnect (struct TCP_Server_Info *server)
 
int cifs_readv_from_socket (struct TCP_Server_Info *server, struct kvec *iov_orig, unsigned int nr_segs, unsigned int to_read)
 
int cifs_read_from_socket (struct TCP_Server_Info *server, char *buf, unsigned int to_read)
 
void dequeue_mid (struct mid_q_entry *mid, bool malformed)
 
void cifs_put_tlink (struct tcon_link *tlink)
 
int cifs_match_super (struct super_block *sb, void *data)
 
int get_dfs_path (const unsigned int xid, struct cifs_ses *ses, const char *old_path, const struct nls_table *nls_codepage, unsigned int *num_referrals, struct dfs_info3_param **referrals, int remap)
 
void reset_cifs_unix_caps (unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, struct smb_vol *vol_info)
 
void cifs_setup_cifs_sb (struct smb_vol *pvolume_info, struct cifs_sb_info *cifs_sb)
 
void cifs_cleanup_volume_info (struct smb_vol *volume_info)
 
struct smb_volcifs_get_volume_info (char *mount_data, const char *devname)
 
int cifs_mount (struct cifs_sb_info *cifs_sb, struct smb_vol *volume_info)
 
int CIFSTCon (const unsigned int xid, struct cifs_ses *ses, const char *tree, struct cifs_tcon *tcon, const struct nls_table *nls_codepage)
 
void cifs_umount (struct cifs_sb_info *cifs_sb)
 
int cifs_negotiate_protocol (const unsigned int xid, struct cifs_ses *ses)
 
int cifs_setup_session (const unsigned int xid, struct cifs_ses *ses, struct nls_table *nls_info)
 
struct cifs_tconcifs_sb_master_tcon (struct cifs_sb_info *cifs_sb)
 
struct tcon_linkcifs_sb_tlink (struct cifs_sb_info *cifs_sb)
 

Variables

mempool_tcifs_req_poolp
 

Macro Definition Documentation

#define CIFS_PORT   445

Definition at line 56 of file connect.c.

#define RFC1001_PORT   139

Definition at line 57 of file connect.c.

#define TLINK_ERROR_EXPIRE   (1 * HZ)

Definition at line 62 of file connect.c.

#define TLINK_IDLE_EXPIRE   (600 * HZ)

Definition at line 63 of file connect.c.

Enumeration Type Documentation

anonymous enum
Enumerator:
Opt_user_xattr 
Opt_nouser_xattr 
Opt_forceuid 
Opt_noforceuid 
Opt_forcegid 
Opt_noforcegid 
Opt_noblocksend 
Opt_noautotune 
Opt_hard 
Opt_soft 
Opt_perm 
Opt_noperm 
Opt_mapchars 
Opt_nomapchars 
Opt_sfu 
Opt_nosfu 
Opt_nodfs 
Opt_posixpaths 
Opt_noposixpaths 
Opt_nounix 
Opt_nocase 
Opt_brl 
Opt_nobrl 
Opt_forcemandatorylock 
Opt_setuids 
Opt_nosetuids 
Opt_dynperm 
Opt_nodynperm 
Opt_nohard 
Opt_nosoft 
Opt_nointr 
Opt_intr 
Opt_nostrictsync 
Opt_strictsync 
Opt_serverino 
Opt_noserverino 
Opt_rwpidforward 
Opt_cifsacl 
Opt_nocifsacl 
Opt_acl 
Opt_noacl 
Opt_locallease 
Opt_sign 
Opt_seal 
Opt_noac 
Opt_fsc 
Opt_mfsymlinks 
Opt_multiuser 
Opt_sloppy 
Opt_backupuid 
Opt_backupgid 
Opt_uid 
Opt_cruid 
Opt_gid 
Opt_file_mode 
Opt_dirmode 
Opt_port 
Opt_rsize 
Opt_wsize 
Opt_actimeo 
Opt_user 
Opt_pass 
Opt_ip 
Opt_unc 
Opt_domain 
Opt_srcaddr 
Opt_prefixpath 
Opt_iocharset 
Opt_sockopt 
Opt_netbiosname 
Opt_servern 
Opt_ver 
Opt_vers 
Opt_sec 
Opt_cache 
Opt_ignore 
Opt_blank_pass 
Opt_blank_user 
Opt_blank_ip 
Opt_err 

Definition at line 65 of file connect.c.

anonymous enum
Enumerator:
Opt_sec_krb5 
Opt_sec_krb5i 
Opt_sec_krb5p 
Opt_sec_ntlmsspi 
Opt_sec_ntlmssp 
Opt_ntlm 
Opt_sec_ntlmi 
Opt_sec_ntlmv2 
Opt_sec_ntlmv2i 
Opt_sec_lanman 
Opt_sec_none 
Opt_sec_err 

Definition at line 233 of file connect.c.

anonymous enum
Enumerator:
Opt_cache_loose 
Opt_cache_strict 
Opt_cache_none 
Opt_cache_err 

Definition at line 261 of file connect.c.

Function Documentation

void cifs_cleanup_volume_info ( struct smb_vol volume_info)

Definition at line 3273 of file connect.c.

struct smb_vol* cifs_get_volume_info ( char mount_data,
const char devname 
)
read

Definition at line 3410 of file connect.c.

int cifs_match_super ( struct super_block sb,
void data 
)

Definition at line 2712 of file connect.c.

int cifs_mount ( struct cifs_sb_info cifs_sb,
struct smb_vol volume_info 
)

Definition at line 3429 of file connect.c.

int cifs_negotiate_protocol ( const unsigned int  xid,
struct cifs_ses ses 
)

Definition at line 3814 of file connect.c.

void cifs_put_tlink ( struct tcon_link tlink)

Definition at line 2649 of file connect.c.

int cifs_read_from_socket ( struct TCP_Server_Info server,
char buf,
unsigned int  to_read 
)

Definition at line 597 of file connect.c.

int cifs_readv_from_socket ( struct TCP_Server_Info server,
struct kvec iov_orig,
unsigned int  nr_segs,
unsigned int  to_read 
)

Definition at line 538 of file connect.c.

int cifs_reconnect ( struct TCP_Server_Info server)

Definition at line 297 of file connect.c.

struct cifs_tcon* cifs_sb_master_tcon ( struct cifs_sb_info cifs_sb)
read

Definition at line 3969 of file connect.c.

struct tcon_link* cifs_sb_tlink ( struct cifs_sb_info cifs_sb)
read

Definition at line 4039 of file connect.c.

void cifs_setup_cifs_sb ( struct smb_vol pvolume_info,
struct cifs_sb_info cifs_sb 
)

Definition at line 3173 of file connect.c.

int cifs_setup_session ( const unsigned int  xid,
struct cifs_ses ses,
struct nls_table nls_info 
)

Definition at line 3842 of file connect.c.

void cifs_umount ( struct cifs_sb_info cifs_sb)

Definition at line 3786 of file connect.c.

int CIFSTCon ( const unsigned int  xid,
struct cifs_ses ses,
const char tree,
struct cifs_tcon tcon,
const struct nls_table nls_codepage 
)

Definition at line 3629 of file connect.c.

void dequeue_mid ( struct mid_q_entry mid,
bool  malformed 
)

Definition at line 653 of file connect.c.

int get_dfs_path ( const unsigned int  xid,
struct cifs_ses ses,
const char old_path,
const struct nls_table nls_codepage,
unsigned int num_referrals,
struct dfs_info3_param **  referrals,
int  remap 
)

Definition at line 2764 of file connect.c.

void reset_cifs_unix_caps ( unsigned int  xid,
struct cifs_tcon tcon,
struct cifs_sb_info cifs_sb,
struct smb_vol vol_info 
)

Definition at line 3068 of file connect.c.

Variable Documentation

mempool_t* cifs_req_poolp