Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

bio_alloc_bioset(9) [centos man page]

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. Note that when running under generic_make_request (i.e. any block driver), bios are not submitted until after you return - see the code in generic_make_request that converts recursion into iteration, to prevent stack overflows. This would normally mean allocating multiple bios under generic_make_request would be susceptible to deadlocks, but we have deadlock avoidance code that resubmits any blocked bios from a rescuer thread. However, we do not guarantee forward progress for allocations from other mempools. Doing multiple allocations from the same mempool under generic_make_request should be avoided - instead, use bio_set's front_pad for per bio allocations. RETURNS
Pointer to new bio on success, NULL on failure. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 BIO_ALLOC_BIOSET(9)

Check Out this Related Man Page

PROBE::IOBLOCK_TRACE(3stap)				  IO Scheduler and block IO Taps			       PROBE::IOBLOCK_TRACE(3stap)

NAME
probe::ioblock_trace.request - Fires just as a generic block I/O request is created for a bio. SYNOPSIS
ioblock_trace.request VALUES
None DESCRIPTION
name - name of the probe point q - request queue on which this bio was queued. devname - block device name ino - i-node number of the mapped file bytes_done - number of bytes transferred sector - beginning sector for the entire bio flags - see below BIO_UPTODATE 0 ok after I/O completion BIO_RW_BLOCK 1 RW_AHEAD set, and read/write would block BIO_EOF 2 out-out-bounds error BIO_SEG_VALID 3 nr_hw_seg valid BIO_CLONED 4 doesn't own data BIO_BOUNCED 5 bio is a bounce bio BIO_USER_MAPPED 6 contains user pages BIO_EOPNOTSUPP 7 not supported rw - binary trace for read/write request vcnt - bio vector count which represents number of array element (page, offset, length) which make up this I/O request idx - offset into the bio vector array phys_segments - number of segments in this bio after physical address coalescing is performed. size - total size in bytes bdev - target block device bdev_contains - points to the device object which contains the partition (when bio structure represents a partition) p_start_sect - points to the start sector of the partition structure of the device CONTEXT
The process makes block I/O request SystemTap Tapset Reference June 2014 PROBE::IOBLOCK_TRACE(3stap)
Man Page

14 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

need help once again

i have a alpha server and need to know it givs me a error when i try and load the bios i think it says instalizing qlisp1020 what do i need??? (2 Replies)
Discussion started by: TheCrazzyman
2 Replies

2. BSD

UNIX -openbsd /i386

I think i have messed up with the bios or something. i am seeing this message as soon as the system boots up //////////////////////////////////////////// Password = Please Enter The System Logon: /////////////////////////////////////////// First i though that it was due to changing the... (1 Reply)
Discussion started by: hrk2006
1 Replies

3. UNIX for Dummies Questions & Answers

Save 43p bios?

Is there any way to backup the bios on a 43P-140 7043? (0 Replies)
Discussion started by: freestyle10269
0 Replies

4. UNIX for Advanced & Expert Users

bios parameter block

how can i show the contain of the bios parameter block of a file system in minix or unix or a similar os? Here are some of the things i wanna print: - Logical bytes per sector - Sector per cluster - Number of fats - Fat type :confused: (2 Replies)
Discussion started by: Esteban
2 Replies

5. UNIX for Dummies Questions & Answers

kmalloc function

will kmalloc function allocate memory from kernel space or user space? what exactly is the difference between kernel api and system call? can anyone please send me the answer? its urgent. (0 Replies)
Discussion started by: sriram.ec
0 Replies

6. Solaris

how to get the bios version?

I am using solaris 10 how to get the bios version? thanks (4 Replies)
Discussion started by: melanie_pfefer
4 Replies

7. Linux

It's a puzzle

Hi, Recently I installed Fedora 9 on the following hardware - Asus A8N-SLI Deluxe motherboard bios version 1805 - 2GB twinmos ram - AMD 4400 CPU - Tagan PSU 550 W - Asus EN6200LE video card - WD 74 GB Raptor - Areca ARC-1222 raid controller - 4x 1TB Seagate Baracudas - Symbios Logic... (6 Replies)
Discussion started by: jwoude
6 Replies

8. Programming

allocate memory for the same struct: sometimes successful, sometimes failure, why

It is customary to use structs in c code. but it is suprising to obtain different results. Sometimes a pointer is returned. But a failure would appear at other attempts. e.g. struct _site { int type; char A; char B; . . ... (12 Replies)
Discussion started by: cdbug
12 Replies

9. UNIX Desktop Questions & Answers

Please Help me out with this question

. Make a new copy of mars.txt called marsx. What happens if you give the following commands when the files bio and marsx both already exist? Don't guess, try it! a) cp bio marsx b) mv bio marsx (2 Replies)
Discussion started by: rohit.katpalli
2 Replies

10. UNIX for Advanced & Expert Users

Oracle how many memory allocate really

hi... i want to find oracle allocate how many memory really.. i execute this code to list memory on unix system : ps -eo pmem,args | sort -k 1 -r -n outputs ; %mem command 12.9|ora_smon_RTX 12.9|ora_s000_RTX 12.9|ora_reco_RTX 12.9|ora_qmnc_RTX... (2 Replies)
Discussion started by: utoptas
2 Replies

11. UNIX for Advanced & Expert Users

How to figure out who created a user account?

Well, I had to open another thread. Long story but I will keep it short. Our client organization is a multinational bio-tech giant. And as it is true with all such giants, things are kind of messy when it comes to maintaining who did what. Now, my duty is to clean up the mess. One of the few... (1 Reply)
Discussion started by: admin_xor
1 Replies

12. Programming

SIGSEGV when allocate a certain size

The problem: I need to work with large arrays and after one of my structures grew in size my program started getting segmentation fault. My code where I allocate the arrays: static R1 *tarr; static R2 *rarr; proc_init_mem() { const int t_sz = sizeof(R1) *... (9 Replies)
Discussion started by: migurus
9 Replies

13. Hardware

qosmio f50-freeze when trying to update bios-black screen

Hi! I own a Qosmio f50 laptop and today i download the file from toshiba to update my bios. Everything went well until installer reaches block 16 when system freezes. I left it half an hour and then tried to power-off the pc with the button, but it dont. I unplug the ac-adaptor and the battery and... (0 Replies)
Discussion started by: giampoul
0 Replies

14. Red Hat

How to sync time with bios in rhel7?

Hi All, I deployed the rhel7 server in the bare metal hardware. I want to configure the rhel7 server to sync time with bios. I tired the below commands. Still it did not sync the time with bios. Thanks, Kalai (3 Replies)
Discussion started by: kalpeer
3 Replies