Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
smb2pdu.c File Reference
#include <linux/fs.h>
#include <linux/kernel.h>
#include <linux/vfs.h>
#include <linux/task_io_accounting_ops.h>
#include <linux/uaccess.h>
#include <linux/pagemap.h>
#include <linux/xattr.h>
#include "smb2pdu.h"
#include "cifsglob.h"
#include "cifsacl.h"
#include "cifsproto.h"
#include "smb2proto.h"
#include "cifs_unicode.h"
#include "cifs_debug.h"
#include "ntlmssp.h"
#include "smb2status.h"
#include "smb2glob.h"
#include "cifspdu.h"

Go to the source code of this file.

Macros

#define MAX_SHARENAME_LENGTH   (255 /* server */ + 80 /* share */ + 1 /* NULL */)
 

Functions

int SMB2_negotiate (const unsigned int xid, struct cifs_ses *ses)
 
int SMB2_sess_setup (const unsigned int xid, struct cifs_ses *ses, const struct nls_table *nls_cp)
 
int SMB2_logoff (const unsigned int xid, struct cifs_ses *ses)
 
int SMB2_tcon (const unsigned int xid, struct cifs_ses *ses, const char *tree, struct cifs_tcon *tcon, const struct nls_table *cp)
 
int SMB2_tdis (const unsigned int xid, struct cifs_tcon *tcon)
 
int SMB2_open (const unsigned int xid, struct cifs_tcon *tcon, __le16 *path, u64 *persistent_fid, u64 *volatile_fid, __u32 desired_access, __u32 create_disposition, __u32 file_attributes, __u32 create_options, __u8 *oplock, struct smb2_file_all_info *buf)
 
int SMB2_close (const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid)
 
int SMB2_query_info (const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid, struct smb2_file_all_info *data)
 
int SMB2_get_srv_num (const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid, __le64 *uniqueid)
 
int SMB2_echo (struct TCP_Server_Info *server)
 
int SMB2_flush (const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid)
 
int smb2_async_readv (struct cifs_readdata *rdata)
 
int SMB2_read (const unsigned int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes, char **buf, int *buf_type)
 
int smb2_async_writev (struct cifs_writedata *wdata)
 
int SMB2_write (const unsigned int xid, struct cifs_io_parms *io_parms, unsigned int *nbytes, struct kvec *iov, int n_vec)
 
int SMB2_query_directory (const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid, int index, struct cifs_search_info *srch_inf)
 
int SMB2_rename (const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid, __le16 *target_file)
 
int SMB2_set_hardlink (const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid, __le16 *target_file)
 
int SMB2_set_eof (const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid, u32 pid, __le64 *eof)
 
int SMB2_set_info (const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid, FILE_BASIC_INFO *buf)
 
int SMB2_oplock_break (const unsigned int xid, struct cifs_tcon *tcon, const u64 persistent_fid, const u64 volatile_fid, __u8 oplock_level)
 
int SMB2_QFS_info (const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_fid, u64 volatile_fid, struct kstatfs *fsdata)
 
int smb2_lockv (const unsigned int xid, struct cifs_tcon *tcon, const __u64 persist_fid, const __u64 volatile_fid, const __u32 pid, const __u32 num_lock, struct smb2_lock_element *buf)
 
int SMB2_lock (const unsigned int xid, struct cifs_tcon *tcon, const __u64 persist_fid, const __u64 volatile_fid, const __u32 pid, const __u64 length, const __u64 offset, const __u32 lock_flags, const bool wait)
 
int SMB2_lease_break (const unsigned int xid, struct cifs_tcon *tcon, __u8 *lease_key, const __le32 lease_state)
 

Macro Definition Documentation

#define MAX_SHARENAME_LENGTH   (255 /* server */ + 80 /* share */ + 1 /* NULL */)

Definition at line 698 of file smb2pdu.c.

Function Documentation

int smb2_async_readv ( struct cifs_readdata rdata)

Definition at line 1420 of file smb2pdu.c.

int smb2_async_writev ( struct cifs_writedata wdata)

Definition at line 1563 of file smb2pdu.c.

int SMB2_close ( const unsigned int  xid,
struct cifs_tcon tcon,
u64  persistent_fid,
u64  volatile_fid 
)

Definition at line 1042 of file smb2pdu.c.

int SMB2_echo ( struct TCP_Server_Info server)

Definition at line 1241 of file smb2pdu.c.

int SMB2_flush ( const unsigned int  xid,
struct cifs_tcon tcon,
u64  persistent_fid,
u64  volatile_fid 
)

Definition at line 1271 of file smb2pdu.c.

int SMB2_get_srv_num ( const unsigned int  xid,
struct cifs_tcon tcon,
u64  persistent_fid,
u64  volatile_fid,
__le64 uniqueid 
)

Definition at line 1210 of file smb2pdu.c.

int SMB2_lease_break ( const unsigned int  xid,
struct cifs_tcon tcon,
__u8 lease_key,
const __le32  lease_state 
)

Definition at line 2182 of file smb2pdu.c.

int SMB2_lock ( const unsigned int  xid,
struct cifs_tcon tcon,
const __u64  persist_fid,
const __u64  volatile_fid,
const __u32  pid,
const __u64  length,
const __u64  offset,
const __u32  lock_flags,
const bool  wait 
)

Definition at line 2165 of file smb2pdu.c.

int smb2_lockv ( const unsigned int  xid,
struct cifs_tcon tcon,
const __u64  persist_fid,
const __u64  volatile_fid,
const __u32  pid,
const __u32  num_lock,
struct smb2_lock_element buf 
)

Definition at line 2123 of file smb2pdu.c.

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

Definition at line 663 of file smb2pdu.c.

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

Definition at line 324 of file smb2pdu.c.

int SMB2_open ( const unsigned int  xid,
struct cifs_tcon tcon,
__le16 path,
u64 persistent_fid,
u64 volatile_fid,
__u32  desired_access,
__u32  create_disposition,
__u32  file_attributes,
__u32  create_options,
__u8 oplock,
struct smb2_file_all_info buf 
)

Definition at line 910 of file smb2pdu.c.

int SMB2_oplock_break ( const unsigned int  xid,
struct cifs_tcon tcon,
const u64  persistent_fid,
const u64  volatile_fid,
__u8  oplock_level 
)

Definition at line 2012 of file smb2pdu.c.

int SMB2_QFS_info ( const unsigned int  xid,
struct cifs_tcon tcon,
u64  persistent_fid,
u64  volatile_fid,
struct kstatfs fsdata 
)

Definition at line 2086 of file smb2pdu.c.

int SMB2_query_directory ( const unsigned int  xid,
struct cifs_tcon tcon,
u64  persistent_fid,
u64  volatile_fid,
int  index,
struct cifs_search_info srch_inf 
)

Definition at line 1724 of file smb2pdu.c.

int SMB2_query_info ( const unsigned int  xid,
struct cifs_tcon tcon,
u64  persistent_fid,
u64  volatile_fid,
struct smb2_file_all_info data 
)

Definition at line 1199 of file smb2pdu.c.

int SMB2_read ( const unsigned int  xid,
struct cifs_io_parms io_parms,
unsigned int nbytes,
char **  buf,
int buf_type 
)

Definition at line 1459 of file smb2pdu.c.

int SMB2_rename ( const unsigned int  xid,
struct cifs_tcon tcon,
u64  persistent_fid,
u64  volatile_fid,
__le16 target_file 
)

Definition at line 1921 of file smb2pdu.c.

int SMB2_sess_setup ( const unsigned int  xid,
struct cifs_ses ses,
const struct nls_table nls_cp 
)

Definition at line 475 of file smb2pdu.c.

int SMB2_set_eof ( const unsigned int  xid,
struct cifs_tcon tcon,
u64  persistent_fid,
u64  volatile_fid,
u32  pid,
__le64 eof 
)

Definition at line 1984 of file smb2pdu.c.

int SMB2_set_hardlink ( const unsigned int  xid,
struct cifs_tcon tcon,
u64  persistent_fid,
u64  volatile_fid,
__le16 target_file 
)

Definition at line 1953 of file smb2pdu.c.

int SMB2_set_info ( const unsigned int  xid,
struct cifs_tcon tcon,
u64  persistent_fid,
u64  volatile_fid,
FILE_BASIC_INFO *  buf 
)

Definition at line 2001 of file smb2pdu.c.

int SMB2_tcon ( const unsigned int  xid,
struct cifs_ses ses,
const char tree,
struct cifs_tcon tcon,
const struct nls_table cp 
)

Definition at line 701 of file smb2pdu.c.

int SMB2_tdis ( const unsigned int  xid,
struct cifs_tcon tcon 
)

Definition at line 815 of file smb2pdu.c.

int SMB2_write ( const unsigned int  xid,
struct cifs_io_parms io_parms,
unsigned int nbytes,
struct kvec iov,
int  n_vec 
)

Definition at line 1626 of file smb2pdu.c.