bio_alloc_bioset man page on Oracle

Man page or keyword search:  
man Server   33470 pages
apropos Keyword Search (all sections)
Output format
Oracle logo
[printable version]

BIO_ALLOC_BIOSET(9)		 The Linux VFS		   BIO_ALLOC_BIOSET(9)

NAME
       bio_alloc_bioset - allocate a bio for I/O

SYNOPSIS
       struct bio * bio_alloc_bioset(gfp_t gfp_mask, int nr_iovecs,
				     struct bio_set * bs);

ARGUMENTS
       gfp_mask
	   the GFP_ mask given to the slab allocator

       nr_iovecs
	   number of iovecs to pre-allocate

       bs
	   the bio_set to allocate from.

DESCRIPTION
       If bs is NULL, uses kmalloc to allocate the bio; else the allocation is
       backed by the bs's mempool.

       When bs 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.

COPYRIGHT
Kernel Hackers Manual 3.8.	   June 2014		   BIO_ALLOC_BIOSET(9)
[top]

List of man pages available for Oracle

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net