submit_bh

Section: Kernel Hacker's Manual (9)
Updated: submit_bh
Index Return to Main Contents
 

NAME

submit_bh -  

SYNOPSIS

void submit_bh (int rw, struct buffer_head *bh);  

ARGUMENTS

rw

 whether to READ or WRITE, or maybe to READA (read ahead)
bh

 The struct buffer_head which describes the I/O
 

DESCRIPTION

submit_bh is very similar in purpose to generic_make_request, and uses that function to do most of the work.

The extra functionality provided by submit_bh is to determine b_rsector from b_blocknr and b_size, and to set b_rdev from b_dev. This is is appropriate for IO requests that come from the buffer cache and page cache which (currently) always use aligned blocks.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 03:56:29 GMT, June 12, 2005