Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
misc.c File Reference
#include <linux/slab.h>
#include <linux/ctype.h>
#include <linux/mempool.h>
#include "cifspdu.h"
#include "cifsglob.h"
#include "cifsproto.h"
#include "cifs_debug.h"
#include "smberr.h"
#include "nterr.h"
#include "cifs_unicode.h"

Go to the source code of this file.

Functions

unsigned int _get_xid (void)
 
void _free_xid (unsigned int xid)
 
struct cifs_sessesInfoAlloc (void)
 
void sesInfoFree (struct cifs_ses *buf_to_free)
 
struct cifs_tcontconInfoAlloc (void)
 
void tconInfoFree (struct cifs_tcon *buf_to_free)
 
struct smb_hdrcifs_buf_get (void)
 
void cifs_buf_release (void *buf_to_free)
 
struct smb_hdrcifs_small_buf_get (void)
 
void cifs_small_buf_release (void *buf_to_free)
 
void header_assemble (struct smb_hdr *buffer, char smb_command, const struct cifs_tcon *treeCon, int word_count)
 
int checkSMB (char *buf, unsigned int total_read)
 
bool is_valid_oplock_break (char *buffer, struct TCP_Server_Info *srv)
 
void dump_smb (void *buf, int smb_buf_length)
 
void cifs_autodisable_serverino (struct cifs_sb_info *cifs_sb)
 
void cifs_set_oplock_level (struct cifsInodeInfo *cinode, __u32 oplock)
 
bool backup_cred (struct cifs_sb_info *cifs_sb)
 
void cifs_del_pending_open (struct cifs_pending_open *open)
 
void cifs_add_pending_open_locked (struct cifs_fid *fid, struct tcon_link *tlink, struct cifs_pending_open *open)
 
void cifs_add_pending_open (struct cifs_fid *fid, struct tcon_link *tlink, struct cifs_pending_open *open)
 

Variables

mempool_tcifs_sm_req_poolp
 
mempool_tcifs_req_poolp
 

Function Documentation

void _free_xid ( unsigned int  xid)

Definition at line 64 of file misc.c.

unsigned int _get_xid ( void  )

Definition at line 46 of file misc.c.

bool backup_cred ( struct cifs_sb_info cifs_sb)

Definition at line 569 of file misc.c.

int checkSMB ( char buf,
unsigned int  total_read 
)

Definition at line 310 of file misc.c.

void cifs_add_pending_open ( struct cifs_fid fid,
struct tcon_link tlink,
struct cifs_pending_open open 
)

Definition at line 605 of file misc.c.

void cifs_add_pending_open_locked ( struct cifs_fid fid,
struct tcon_link tlink,
struct cifs_pending_open open 
)

Definition at line 592 of file misc.c.

void cifs_autodisable_serverino ( struct cifs_sb_info cifs_sb)

Definition at line 535 of file misc.c.

struct smb_hdr* cifs_buf_get ( void  )
read

Definition at line 146 of file misc.c.

void cifs_buf_release ( void buf_to_free)

Definition at line 180 of file misc.c.

void cifs_del_pending_open ( struct cifs_pending_open open)

Definition at line 584 of file misc.c.

void cifs_set_oplock_level ( struct cifsInodeInfo cinode,
__u32  oplock 
)

Definition at line 548 of file misc.c.

struct smb_hdr* cifs_small_buf_get ( void  )
read

Definition at line 193 of file misc.c.

void cifs_small_buf_release ( void buf_to_free)

Definition at line 215 of file misc.c.

void dump_smb ( void buf,
int  smb_buf_length 
)

Definition at line 497 of file misc.c.

void header_assemble ( struct smb_hdr buffer,
char  smb_command,
const struct cifs_tcon treeCon,
int  word_count 
)

Definition at line 231 of file misc.c.

bool is_valid_oplock_break ( char buffer,
struct TCP_Server_Info srv 
)

Definition at line 394 of file misc.c.

struct cifs_ses* sesInfoAlloc ( void  )
read

Definition at line 74 of file misc.c.

void sesInfoFree ( struct cifs_ses buf_to_free)

Definition at line 91 of file misc.c.

struct cifs_tcon* tconInfoAlloc ( void  )
read

Definition at line 112 of file misc.c.

void tconInfoFree ( struct cifs_tcon buf_to_free)

Definition at line 130 of file misc.c.

Variable Documentation

mempool_t* cifs_req_poolp
mempool_t* cifs_sm_req_poolp