Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
scsi_tgt_if.c File Reference
#include <linux/miscdevice.h>
#include <linux/gfp.h>
#include <linux/file.h>
#include <linux/export.h>
#include <net/tcp.h>
#include <scsi/scsi.h>
#include <scsi/scsi_cmnd.h>
#include <scsi/scsi_device.h>
#include <scsi/scsi_host.h>
#include <scsi/scsi_tgt.h>
#include <scsi/scsi_tgt_if.h>
#include <asm/cacheflush.h>
#include "scsi_tgt_priv.h"

Go to the source code of this file.

Data Structures

struct  tgt_ring
 

Macros

#define TGT_RING_PAGES   (TGT_RING_SIZE >> PAGE_SHIFT)
 
#define TGT_EVENT_PER_PAGE   (PAGE_SIZE / sizeof(struct tgt_event))
 
#define TGT_MAX_EVENTS   (TGT_EVENT_PER_PAGE * TGT_RING_PAGES)
 

Functions

int scsi_tgt_uspace_send_cmd (struct scsi_cmnd *cmd, u64 itn_id, struct scsi_lun *lun, u64 tag)
 
int scsi_tgt_uspace_send_status (struct scsi_cmnd *cmd, u64 itn_id, u64 tag)
 
int scsi_tgt_uspace_send_tsk_mgmt (int host_no, u64 itn_id, int function, u64 tag, struct scsi_lun *scsilun, void *data)
 
int scsi_tgt_uspace_send_it_nexus_request (int host_no, u64 itn_id, int function, char *initiator_id)
 
void scsi_tgt_if_exit (void)
 
int scsi_tgt_if_init (void)
 

Macro Definition Documentation

#define TGT_EVENT_PER_PAGE   (PAGE_SIZE / sizeof(struct tgt_event))

Definition at line 43 of file scsi_tgt_if.c.

#define TGT_MAX_EVENTS   (TGT_EVENT_PER_PAGE * TGT_RING_PAGES)

Definition at line 44 of file scsi_tgt_if.c.

#define TGT_RING_PAGES   (TGT_RING_SIZE >> PAGE_SHIFT)

Definition at line 42 of file scsi_tgt_if.c.

Function Documentation

void scsi_tgt_if_exit ( void  )

Definition at line 369 of file scsi_tgt_if.c.

int scsi_tgt_if_init ( void  )

Definition at line 376 of file scsi_tgt_if.c.

int scsi_tgt_uspace_send_cmd ( struct scsi_cmnd cmd,
u64  itn_id,
struct scsi_lun lun,
u64  tag 
)

Definition at line 107 of file scsi_tgt_if.c.

int scsi_tgt_uspace_send_it_nexus_request ( int  host_no,
u64  itn_id,
int  function,
char initiator_id 
)

Definition at line 181 of file scsi_tgt_if.c.

int scsi_tgt_uspace_send_status ( struct scsi_cmnd cmd,
u64  itn_id,
u64  tag 
)

Definition at line 134 of file scsi_tgt_if.c.

int scsi_tgt_uspace_send_tsk_mgmt ( int  host_no,
u64  itn_id,
int  function,
u64  tag,
struct scsi_lun scsilun,
void data 
)

Definition at line 157 of file scsi_tgt_if.c.