Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
bsg-lib.h File Reference
#include <linux/blkdev.h>

Go to the source code of this file.

Data Structures

struct  bsg_buffer
 
struct  bsg_job
 

Functions

void bsg_job_done (struct bsg_job *job, int result, unsigned int reply_payload_rcv_len)
 
int bsg_setup_queue (struct device *dev, struct request_queue *q, char *name, bsg_job_fn *job_fn, int dd_job_size)
 
void bsg_request_fn (struct request_queue *q)
 
void bsg_goose_queue (struct request_queue *q)
 

Function Documentation

void bsg_goose_queue ( struct request_queue q)

Definition at line 158 of file bsg-lib.c.

void bsg_job_done ( struct bsg_job job,
int  result,
unsigned int  reply_payload_rcv_len 
)

bsg_job_done - completion routine for bsg requests : bsg_job that is complete

Returns
: job reply result : length of payload recvd

The LLD should call this when the bsg job has completed.

Definition at line 52 of file bsg-lib.c.

void bsg_request_fn ( struct request_queue q)

bsg_request_fn - generic handler for bsg requests : request queue to manage

On error the create_bsg_job function should return a -Exyz error value that will be set to the req->errors.

Drivers/subsys should pass this to the queue init function.

Definition at line 176 of file bsg-lib.c.

int bsg_setup_queue ( struct device dev,
struct request_queue q,
char name,
bsg_job_fn *  job_fn,
int  dd_job_size 
)

Definition at line 224 of file bsg-lib.c.