|
| EXPORT_SYMBOL (fs_bio_set) |
|
unsigned int | bvec_nr_vecs (unsigned short idx) |
|
void | bvec_free_bs (struct bio_set *bs, struct bio_vec *bv, unsigned int idx) |
|
struct bio_vec * | bvec_alloc_bs (gfp_t gfp_mask, int nr, unsigned long *idx, struct bio_set *bs) |
|
void | bio_init (struct bio *bio) |
|
| EXPORT_SYMBOL (bio_init) |
|
void | bio_reset (struct bio *bio) |
|
| EXPORT_SYMBOL (bio_reset) |
|
struct bio * | bio_alloc_bioset (gfp_t gfp_mask, int nr_iovecs, struct bio_set *bs) |
|
| EXPORT_SYMBOL (bio_alloc_bioset) |
|
void | zero_fill_bio (struct bio *bio) |
|
| EXPORT_SYMBOL (zero_fill_bio) |
|
void | bio_put (struct bio *bio) |
|
| EXPORT_SYMBOL (bio_put) |
|
int | bio_phys_segments (struct request_queue *q, struct bio *bio) |
|
| EXPORT_SYMBOL (bio_phys_segments) |
|
void | __bio_clone (struct bio *bio, struct bio *bio_src) |
|
| EXPORT_SYMBOL (__bio_clone) |
|
struct bio * | bio_clone_bioset (struct bio *bio, gfp_t gfp_mask, struct bio_set *bs) |
|
| EXPORT_SYMBOL (bio_clone_bioset) |
|
int | bio_get_nr_vecs (struct block_device *bdev) |
|
| EXPORT_SYMBOL (bio_get_nr_vecs) |
|
int | bio_add_pc_page (struct request_queue *q, struct bio *bio, struct page *page, unsigned int len, unsigned int offset) |
|
| EXPORT_SYMBOL (bio_add_pc_page) |
|
int | bio_add_page (struct bio *bio, struct page *page, unsigned int len, unsigned int offset) |
|
| EXPORT_SYMBOL (bio_add_page) |
|
int | bio_uncopy_user (struct bio *bio) |
|
| EXPORT_SYMBOL (bio_uncopy_user) |
|
struct bio * | bio_copy_user_iov (struct request_queue *q, struct rq_map_data *map_data, struct sg_iovec *iov, int iov_count, int write_to_vm, gfp_t gfp_mask) |
|
struct bio * | bio_copy_user (struct request_queue *q, struct rq_map_data *map_data, unsigned long uaddr, unsigned int len, int write_to_vm, gfp_t gfp_mask) |
|
| EXPORT_SYMBOL (bio_copy_user) |
|
struct bio * | bio_map_user (struct request_queue *q, struct block_device *bdev, unsigned long uaddr, unsigned int len, int write_to_vm, gfp_t gfp_mask) |
|
| EXPORT_SYMBOL (bio_map_user) |
|
struct bio * | bio_map_user_iov (struct request_queue *q, struct block_device *bdev, struct sg_iovec *iov, int iov_count, int write_to_vm, gfp_t gfp_mask) |
|
void | bio_unmap_user (struct bio *bio) |
|
| EXPORT_SYMBOL (bio_unmap_user) |
|
struct bio * | bio_map_kern (struct request_queue *q, void *data, unsigned int len, gfp_t gfp_mask) |
|
| EXPORT_SYMBOL (bio_map_kern) |
|
struct bio * | bio_copy_kern (struct request_queue *q, void *data, unsigned int len, gfp_t gfp_mask, int reading) |
|
| EXPORT_SYMBOL (bio_copy_kern) |
|
void | bio_set_pages_dirty (struct bio *bio) |
|
void | bio_check_pages_dirty (struct bio *bio) |
|
void | bio_endio (struct bio *bio, int error) |
|
| EXPORT_SYMBOL (bio_endio) |
|
void | bio_pair_release (struct bio_pair *bp) |
|
| EXPORT_SYMBOL (bio_pair_release) |
|
struct bio_pair * | bio_split (struct bio *bi, int first_sectors) |
|
| EXPORT_SYMBOL (bio_split) |
|
sector_t | bio_sector_offset (struct bio *bio, unsigned short index, unsigned int offset) |
|
| EXPORT_SYMBOL (bio_sector_offset) |
|
void | bioset_free (struct bio_set *bs) |
|
| EXPORT_SYMBOL (bioset_free) |
|
struct bio_set * | bioset_create (unsigned int pool_size, unsigned int front_pad) |
|
| EXPORT_SYMBOL (bioset_create) |
|
| subsys_initcall (init_bio) |
|
bio_alloc_bioset - allocate a bio for I/O : the GFP_ mask given to the slab allocator : number of iovecs to pre-allocate : the bio_set to allocate from.
Description: If is NULL, uses kmalloc() to allocate the bio; else the allocation is backed by the 's mempool.
When is not NULL, if __GFP_WAIT is set then bio_alloc will always be able to allocate a bio. This is due to the mempool guarantees. To make this work, callers must never allocate more than 1 bio at a time from this pool. Callers that need to allocate more than 1 bio must always submit the previously allocated bio for IO before attempting to allocate a new one. Failure to do so can cause deadlocks under memory pressure.
RETURNS: Pointer to new bio on success, NULL on failure.
Definition at line 320 of file bio.c.
bio_endio - end I/O on a bio : bio : error, if any
Description: bio_endio() will end I/O on the whole bio. bio_endio() is the preferred way to end I/O on a bio, it takes care of clearing BIO_UPTODATE on error. is 0 on success, and and one of the established -Exxxx (-EIO, for instance) error values in case something went wrong. No one should call bi_end_io() directly on a bio unless they own it and thus know that it has an end_io function.
Definition at line 1424 of file bio.c.
struct bio_set* bioset_create |
( |
unsigned int |
pool_size, |
|
|
unsigned int |
front_pad |
|
) |
| |
|
read |
bioset_create - Create a bio_set : Number of bio and bio_vecs to cache in the mempool : Number of bytes to allocate in front of the returned bio
Description: Set up a bio_set to be used with . Allows the caller to ask for a number of bytes to be allocated in front of the bio. Front pad allocation is useful for embedding the bio inside another structure, to avoid allocating extra data to go with the bio. Note that the bio must be embedded at the END of that structure always, or things will break badly.
Definition at line 1604 of file bio.c.