Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
transport.c File Reference
#include <linux/fs.h>
#include <linux/list.h>
#include <linux/gfp.h>
#include <linux/wait.h>
#include <linux/net.h>
#include <linux/delay.h>
#include <linux/freezer.h>
#include <linux/tcp.h>
#include <linux/highmem.h>
#include <asm/uaccess.h>
#include <asm/processor.h>
#include <linux/mempool.h>
#include "cifspdu.h"
#include "cifsglob.h"
#include "cifsproto.h"
#include "cifs_debug.h"

Go to the source code of this file.

Functions

void cifs_wake_up_task (struct mid_q_entry *mid)
 
struct mid_q_entryAllocMidQEntry (const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server)
 
void DeleteMidQEntry (struct mid_q_entry *midEntry)
 
void cifs_delete_mid (struct mid_q_entry *mid)
 
void cifs_rqst_page_to_kvec (struct smb_rqst *rqst, unsigned int idx, struct kvec *iov)
 
int smb_send (struct TCP_Server_Info *server, struct smb_hdr *smb_buffer, unsigned int smb_buf_length)
 
struct mid_q_entrycifs_setup_async_request (struct TCP_Server_Info *server, struct smb_rqst *rqst)
 
int cifs_call_async (struct TCP_Server_Info *server, struct smb_rqst *rqst, mid_receive_t *receive, mid_callback_t *callback, void *cbdata, const int flags)
 
int SendReceiveNoRsp (const unsigned int xid, struct cifs_ses *ses, char *in_buf, int flags)
 
int cifs_check_receive (struct mid_q_entry *mid, struct TCP_Server_Info *server, bool log_error)
 
struct mid_q_entrycifs_setup_request (struct cifs_ses *ses, struct smb_rqst *rqst)
 
int SendReceive2 (const unsigned int xid, struct cifs_ses *ses, struct kvec *iov, int n_vec, int *resp_buf_type, const int flags)
 
int SendReceive (const unsigned int xid, struct cifs_ses *ses, struct smb_hdr *in_buf, struct smb_hdr *out_buf, int *pbytes_returned, const int timeout)
 
int SendReceiveBlockingLock (const unsigned int xid, struct cifs_tcon *tcon, struct smb_hdr *in_buf, struct smb_hdr *out_buf, int *pbytes_returned)
 

Function Documentation

struct mid_q_entry* AllocMidQEntry ( const struct smb_hdr smb_buffer,
struct TCP_Server_Info server 
)
read

Definition at line 47 of file transport.c.

int cifs_call_async ( struct TCP_Server_Info server,
struct smb_rqst rqst,
mid_receive_t receive,
mid_callback_t callback,
void cbdata,
const int  flags 
)

Definition at line 492 of file transport.c.

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

Definition at line 609 of file transport.c.

void cifs_delete_mid ( struct mid_q_entry mid)

Definition at line 115 of file transport.c.

void cifs_rqst_page_to_kvec ( struct smb_rqst rqst,
unsigned int  idx,
struct kvec iov 
)

rqst_page_to_kvec - Turn a slot in the smb_rqst page array into a kvec : pointer to smb_rqst : index into the array of the page : pointer to struct kvec that will hold the result

Helper function to convert a slot in the rqst->rq_pages array into a kvec. The page will be kmapped and the address placed into iov_base. The length will then be adjusted according to the ptailoff.

Definition at line 261 of file transport.c.

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

Definition at line 464 of file transport.c.

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

Definition at line 638 of file transport.c.

void cifs_wake_up_task ( struct mid_q_entry mid)

Definition at line 41 of file transport.c.

void DeleteMidQEntry ( struct mid_q_entry midEntry)

Definition at line 84 of file transport.c.

int SendReceive ( const unsigned int  xid,
struct cifs_ses ses,
struct smb_hdr in_buf,
struct smb_hdr out_buf,
int pbytes_returned,
const int  timeout 
)

Definition at line 783 of file transport.c.

int SendReceive2 ( const unsigned int  xid,
struct cifs_ses ses,
struct kvec iov,
int  n_vec,
int resp_buf_type,
const int  flags 
)

Definition at line 656 of file transport.c.

int SendReceiveBlockingLock ( const unsigned int  xid,
struct cifs_tcon tcon,
struct smb_hdr in_buf,
struct smb_hdr out_buf,
int pbytes_returned 
)

Definition at line 914 of file transport.c.

int SendReceiveNoRsp ( const unsigned int  xid,
struct cifs_ses ses,
char in_buf,
int  flags 
)

Definition at line 551 of file transport.c.

int smb_send ( struct TCP_Server_Info server,
struct smb_hdr smb_buffer,
unsigned int  smb_buf_length 
)

Definition at line 355 of file transport.c.