Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Functions
queue.c File Reference
#include <linux/module.h>
#include <linux/blkdev.h>
#include <linux/kernel.h>
#include <linux/string.h>
#include <linux/slab.h>
#include <linux/spinlock.h>
#include <linux/list.h>
#include <linux/init.h>
#include "../scsi.h"
#include "queue.h"

Go to the source code of this file.

Data Structures

struct  queue_entry
 

Macros

#define DEBUG
 
#define QUEUE_MAGIC_FREE   0xf7e1c9a3
 
#define QUEUE_MAGIC_USED   0xf7e1cc33
 
#define SET_MAGIC(q, m)   ((q)->magic = (m))
 
#define BAD_MAGIC(q, m)   ((q)->magic != (m))
 
#define NR_QE   32
 

Typedefs

typedef struct queue_entry QE_t
 

Functions

int queue_initialise (Queue_t *queue)
 
void queue_free (Queue_t *queue)
 
int __queue_add (Queue_t *queue, struct scsi_cmnd *SCpnt, int head)
 
struct scsi_cmndqueue_remove_exclude (Queue_t *queue, unsigned long *exclude)
 
struct scsi_cmndqueue_remove (Queue_t *queue)
 
struct scsi_cmndqueue_remove_tgtluntag (Queue_t *queue, int target, int lun, int tag)
 
void queue_remove_all_target (Queue_t *queue, int target)
 
int queue_probetgtlun (Queue_t *queue, int target, int lun)
 
int queue_remove_cmd (Queue_t *queue, struct scsi_cmnd *SCpnt)
 
 EXPORT_SYMBOL (queue_initialise)
 
 EXPORT_SYMBOL (queue_free)
 
 EXPORT_SYMBOL (__queue_add)
 
 EXPORT_SYMBOL (queue_remove)
 
 EXPORT_SYMBOL (queue_remove_exclude)
 
 EXPORT_SYMBOL (queue_remove_tgtluntag)
 
 EXPORT_SYMBOL (queue_remove_cmd)
 
 EXPORT_SYMBOL (queue_remove_all_target)
 
 EXPORT_SYMBOL (queue_probetgtlun)
 
 MODULE_AUTHOR ("Russell King")
 
 MODULE_DESCRIPTION ("SCSI command queueing")
 
 MODULE_LICENSE ("GPL")
 

Macro Definition Documentation

#define BAD_MAGIC (   q,
  m 
)    ((q)->magic != (m))

Definition at line 43 of file queue.c.

#define DEBUG

Definition at line 28 of file queue.c.

#define NR_QE   32

Definition at line 51 of file queue.c.

#define QUEUE_MAGIC_FREE   0xf7e1c9a3

Definition at line 39 of file queue.c.

#define QUEUE_MAGIC_USED   0xf7e1cc33

Definition at line 40 of file queue.c.

#define SET_MAGIC (   q,
  m 
)    ((q)->magic = (m))

Definition at line 42 of file queue.c.

Typedef Documentation

typedef struct queue_entry QE_t

Function Documentation

int __queue_add ( Queue_t queue,
struct scsi_cmnd SCpnt,
int  head 
)

Definition at line 106 of file queue.c.

EXPORT_SYMBOL ( queue_initialise  )
EXPORT_SYMBOL ( queue_free  )
EXPORT_SYMBOL ( __queue_add  )
EXPORT_SYMBOL ( queue_remove  )
EXPORT_SYMBOL ( queue_remove_exclude  )
EXPORT_SYMBOL ( queue_remove_tgtluntag  )
EXPORT_SYMBOL ( queue_remove_cmd  )
EXPORT_SYMBOL ( queue_remove_all_target  )
EXPORT_SYMBOL ( queue_probetgtlun  )
MODULE_AUTHOR ( "Russell King"  )
MODULE_DESCRIPTION ( "SCSI command queueing"  )
MODULE_LICENSE ( "GPL"  )
void queue_free ( Queue_t queue)

Definition at line 90 of file queue.c.

int queue_initialise ( Queue_t queue)

Definition at line 58 of file queue.c.

int queue_probetgtlun ( Queue_t queue,
int  target,
int  lun 
)

Definition at line 259 of file queue.c.

struct scsi_cmnd* queue_remove ( Queue_t queue)
read

Definition at line 186 of file queue.c.

void queue_remove_all_target ( Queue_t queue,
int  target 
)

Definition at line 236 of file queue.c.

int queue_remove_cmd ( Queue_t queue,
struct scsi_cmnd SCpnt 
)

Definition at line 285 of file queue.c.

struct scsi_cmnd* queue_remove_exclude ( Queue_t queue,
unsigned long exclude 
)
read

Definition at line 161 of file queue.c.

struct scsi_cmnd* queue_remove_tgtluntag ( Queue_t queue,
int  target,
int  lun,
int  tag 
)
read

Definition at line 208 of file queue.c.