Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
smb2proto.h File Reference
#include <linux/nls.h>
#include <linux/key-type.h>

Go to the source code of this file.

Functions

int map_smb2_to_linux_error (char *buf, bool log_err)
 
int smb2_check_message (char *buf, unsigned int length)
 
unsigned int smb2_calc_size (void *buf)
 
charsmb2_get_data_area_len (int *off, int *len, struct smb2_hdr *hdr)
 
__le16cifs_convert_path_to_utf16 (const char *from, struct cifs_sb_info *cifs_sb)
 
int smb2_verify_signature (struct smb_rqst *, struct TCP_Server_Info *)
 
int smb2_check_receive (struct mid_q_entry *mid, struct TCP_Server_Info *server, bool log_error)
 
struct mid_q_entrysmb2_setup_request (struct cifs_ses *ses, struct smb_rqst *rqst)
 
struct mid_q_entrysmb2_setup_async_request (struct TCP_Server_Info *server, struct smb_rqst *rqst)
 
void smb2_echo_request (struct work_struct *work)
 
__le32 smb2_get_lease_state (struct cifsInodeInfo *cinode)
 
__u8 smb2_map_lease_to_oplock (__le32 lease_state)
 
bool smb2_is_valid_oplock_break (char *buffer, struct TCP_Server_Info *srv)
 
void move_smb2_info_to_cifs (FILE_ALL_INFO *dst, struct smb2_file_all_info *src)
 
int smb2_query_path_info (const unsigned int xid, struct cifs_tcon *tcon, struct cifs_sb_info *cifs_sb, const char *full_path, FILE_ALL_INFO *data, bool *adjust_tz)
 
int smb2_set_path_size (const unsigned int xid, struct cifs_tcon *tcon, const char *full_path, __u64 size, struct cifs_sb_info *cifs_sb, bool set_alloc)
 
int smb2_set_file_info (struct inode *inode, const char *full_path, FILE_BASIC_INFO *buf, const unsigned int xid)
 
int smb2_mkdir (const unsigned int xid, struct cifs_tcon *tcon, const char *name, struct cifs_sb_info *cifs_sb)
 
void smb2_mkdir_setinfo (struct inode *inode, const char *full_path, struct cifs_sb_info *cifs_sb, struct cifs_tcon *tcon, const unsigned int xid)
 
int smb2_rmdir (const unsigned int xid, struct cifs_tcon *tcon, const char *name, struct cifs_sb_info *cifs_sb)
 
int smb2_unlink (const unsigned int xid, struct cifs_tcon *tcon, const char *name, struct cifs_sb_info *cifs_sb)
 
int smb2_rename_path (const unsigned int xid, struct cifs_tcon *tcon, const char *from_name, const char *to_name, struct cifs_sb_info *cifs_sb)
 
int smb2_create_hardlink (const unsigned int xid, struct cifs_tcon *tcon, const char *from_name, const char *to_name, struct cifs_sb_info *cifs_sb)
 
int smb2_open_file (const unsigned int xid, struct cifs_tcon *tcon, const char *full_path, int disposition, int desired_access, int create_options, struct cifs_fid *fid, __u32 *oplock, FILE_ALL_INFO *buf, struct cifs_sb_info *cifs_sb)
 
void smb2_set_oplock_level (struct cifsInodeInfo *cinode, __u32 oplock)
 
int smb2_unlock_range (struct cifsFileInfo *cfile, struct file_lock *flock, const unsigned int xid)
 
int smb2_push_mandatory_locks (struct cifsFileInfo *cfile)
 
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 *)
 
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_file_id, u64 volatile_file_id)
 
int SMB2_flush (const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_file_id, u64 volatile_file_id)
 
int SMB2_query_info (const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_file_id, u64 volatile_file_id, 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_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_echo (struct TCP_Server_Info *server)
 
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, const __u8 oplock_level)
 
int SMB2_QFS_info (const unsigned int xid, struct cifs_tcon *tcon, u64 persistent_file_id, u64 volatile_file_id, struct kstatfs *FSData)
 
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 lockFlags, const bool wait)
 
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_lease_break (const unsigned int xid, struct cifs_tcon *tcon, __u8 *lease_key, const __le32 lease_state)
 

Function Documentation

__le16* cifs_convert_path_to_utf16 ( const char from,
struct cifs_sb_info cifs_sb 
)

Definition at line 352 of file smb2misc.c.

int map_smb2_to_linux_error ( char buf,
bool  log_err 
)

Definition at line 2448 of file smb2maperror.c.

void move_smb2_info_to_cifs ( FILE_ALL_INFO *  dst,
struct smb2_file_all_info src 
)

Definition at line 107 of file smb2inode.c.

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.

unsigned int smb2_calc_size ( void buf)

Definition at line 308 of file smb2misc.c.

int smb2_check_message ( char buf,
unsigned int  length 
)

Definition at line 94 of file smb2misc.c.

int smb2_check_receive ( struct mid_q_entry mid,
struct TCP_Server_Info server,
bool  log_error 
)

Definition at line 258 of file smb2transport.c.

int SMB2_close ( const unsigned int  xid,
struct cifs_tcon tcon,
u64  persistent_file_id,
u64  volatile_file_id 
)

Definition at line 1042 of file smb2pdu.c.

int smb2_create_hardlink ( const unsigned int  xid,
struct cifs_tcon tcon,
const char from_name,
const char to_name,
struct cifs_sb_info cifs_sb 
)

Definition at line 222 of file smb2inode.c.

int SMB2_echo ( struct TCP_Server_Info server)

Definition at line 1241 of file smb2pdu.c.

void smb2_echo_request ( struct work_struct work)
int SMB2_flush ( const unsigned int  xid,
struct cifs_tcon tcon,
u64  persistent_file_id,
u64  volatile_file_id 
)

Definition at line 1271 of file smb2pdu.c.

char* smb2_get_data_area_len ( int off,
int len,
struct smb2_hdr hdr 
)

Definition at line 215 of file smb2misc.c.

__le32 smb2_get_lease_state ( struct cifsInodeInfo cinode)

Definition at line 371 of file smb2misc.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.

bool smb2_is_valid_oplock_break ( char buffer,
struct TCP_Server_Info srv 
)

Definition at line 514 of file smb2misc.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  lockFlags,
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.

__u8 smb2_map_lease_to_oplock ( __le32  lease_state)

Definition at line 380 of file smb2misc.c.

int smb2_mkdir ( const unsigned int  xid,
struct cifs_tcon tcon,
const char name,
struct cifs_sb_info cifs_sb 
)

Definition at line 144 of file smb2inode.c.

void smb2_mkdir_setinfo ( struct inode inode,
const char full_path,
struct cifs_sb_info cifs_sb,
struct cifs_tcon tcon,
const unsigned int  xid 
)

Definition at line 153 of file smb2inode.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_open_file ( const unsigned int  xid,
struct cifs_tcon tcon,
const char full_path,
int  disposition,
int  desired_access,
int  create_options,
struct cifs_fid fid,
__u32 oplock,
FILE_ALL_INFO *  buf,
struct cifs_sb_info cifs_sb 
)

Definition at line 60 of file smb2file.c.

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

Definition at line 2012 of file smb2pdu.c.

int smb2_push_mandatory_locks ( struct cifsFileInfo cfile)

Definition at line 253 of file smb2file.c.

int SMB2_QFS_info ( const unsigned int  xid,
struct cifs_tcon tcon,
u64  persistent_file_id,
u64  volatile_file_id,
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_file_id,
u64  volatile_file_id,
struct smb2_file_all_info data 
)

Definition at line 1199 of file smb2pdu.c.

int smb2_query_path_info ( const unsigned int  xid,
struct cifs_tcon tcon,
struct cifs_sb_info cifs_sb,
const char full_path,
FILE_ALL_INFO *  data,
bool adjust_tz 
)

Definition at line 117 of file smb2inode.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_rename_path ( const unsigned int  xid,
struct cifs_tcon tcon,
const char from_name,
const char to_name,
struct cifs_sb_info cifs_sb 
)

Definition at line 213 of file smb2inode.c.

int smb2_rmdir ( const unsigned int  xid,
struct cifs_tcon tcon,
const char name,
struct cifs_sb_info cifs_sb 
)

Definition at line 174 of file smb2inode.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_file_info ( struct inode inode,
const char full_path,
FILE_BASIC_INFO *  buf,
const unsigned int  xid 
)

Definition at line 242 of file smb2inode.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.

void smb2_set_oplock_level ( struct cifsInodeInfo cinode,
__u32  oplock 
)

Definition at line 38 of file smb2file.c.

int smb2_set_path_size ( const unsigned int  xid,
struct cifs_tcon tcon,
const char full_path,
__u64  size,
struct cifs_sb_info cifs_sb,
bool  set_alloc 
)

Definition at line 231 of file smb2inode.c.

struct mid_q_entry* smb2_setup_async_request ( struct TCP_Server_Info server,
struct smb_rqst rqst 
)
read

Definition at line 305 of file smb2transport.c.

struct mid_q_entry* smb2_setup_request ( struct cifs_ses ses,
struct smb_rqst rqst 
)
read

Definition at line 285 of file smb2transport.c.

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

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_unlink ( const unsigned int  xid,
struct cifs_tcon tcon,
const char name,
struct cifs_sb_info cifs_sb 
)

Definition at line 183 of file smb2inode.c.

int smb2_unlock_range ( struct cifsFileInfo cfile,
struct file_lock flock,
const unsigned int  xid 
)

Definition at line 116 of file smb2file.c.

int smb2_verify_signature ( struct smb_rqst ,
struct TCP_Server_Info  
)

Definition at line 141 of file smb2transport.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.