Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
blk-lib.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/bio.h>
#include <linux/blkdev.h>
#include <linux/scatterlist.h>
#include "blk.h"

Go to the source code of this file.

Data Structures

struct  bio_batch
 

Functions

int blkdev_issue_discard (struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, unsigned long flags)
 
 EXPORT_SYMBOL (blkdev_issue_discard)
 
int blkdev_issue_write_same (struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask, struct page *page)
 
 EXPORT_SYMBOL (blkdev_issue_write_same)
 
int __blkdev_issue_zeroout (struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask)
 
int blkdev_issue_zeroout (struct block_device *bdev, sector_t sector, sector_t nr_sects, gfp_t gfp_mask)
 
 EXPORT_SYMBOL (blkdev_issue_zeroout)
 

Function Documentation

int __blkdev_issue_zeroout ( struct block_device bdev,
sector_t  sector,
sector_t  nr_sects,
gfp_t  gfp_mask 
)

blkdev_issue_zeroout - generate number of zero filed write bios : blockdev to issue : start sector : number of sectors to write : memory allocation flags (for bio_alloc)

Description: Generate and issue number of bios with zerofiled pages.

Definition at line 217 of file blk-lib.c.

int blkdev_issue_discard ( struct block_device bdev,
sector_t  sector,
sector_t  nr_sects,
gfp_t  gfp_mask,
unsigned long  flags 
)

blkdev_issue_discard - queue a discard : blockdev to issue discard for : start sector : number of sectors to discard : memory allocation flags (for bio_alloc) : BLKDEV_IFL_* flags to control behaviour

Description: Issue a discard request for the sectors in question.

Definition at line 40 of file blk-lib.c.

int blkdev_issue_write_same ( struct block_device bdev,
sector_t  sector,
sector_t  nr_sects,
gfp_t  gfp_mask,
struct page page 
)

Definition at line 143 of file blk-lib.c.

int blkdev_issue_zeroout ( struct block_device bdev,
sector_t  sector,
sector_t  nr_sects,
gfp_t  gfp_mask 
)

blkdev_issue_zeroout - zero-fill a block range : blockdev to write : start sector : number of sectors to write : memory allocation flags (for bio_alloc)

Description: Generate and issue number of bios with zerofiled pages.

Definition at line 279 of file blk-lib.c.

EXPORT_SYMBOL ( blkdev_issue_discard  )
EXPORT_SYMBOL ( blkdev_issue_write_same  )
EXPORT_SYMBOL ( blkdev_issue_zeroout  )