Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

__bread(9) [centos man page]

__BREAD(9)							   The Linux VFS							__BREAD(9)

__bread - reads a specified block and returns the bh SYNOPSIS
struct buffer_head * __bread(struct block_device * bdev, sector_t block, unsigned size); ARGUMENTS
bdev the block_device to read from block number of block size size (in bytes) to read DESCRIPTION
Reads a specified block, and returns buffer head that contains it. It returns NULL if the block was unreadable. COPYRIGHT
Kernel Hackers Manual 3.10 June 2014 __BREAD(9)

Check Out this Related Man Page

LL_RW_BLOCK(9)							   The Linux VFS						    LL_RW_BLOCK(9)

ll_rw_block - level access to block devices (DEPRECATED) SYNOPSIS
void ll_rw_block(int rw, int nr, struct buffer_head * bhs[]); ARGUMENTS
rw whether to READ or WRITE or SWRITE or maybe READA (readahead) nr number of struct buffer_heads in the array bhs[] array of pointers to struct buffer_head DESCRIPTION
ll_rw_block takes an array of pointers to struct buffer_heads, and requests an I/O operation on them, either a READ or a WRITE. The third SWRITE is like WRITE only we make sure that the *current* data in buffers are sent to disk. The fourth READA option is described in the documentation for generic_make_request which ll_rw_block calls. This function drops any buffer that it cannot get a lock on (with the BH_Lock state bit) unless SWRITE is required, any buffer that appears to be clean when doing a write request, and any buffer that appears to be up-to-date when doing read request. Further it marks as clean buffers that are processed for writing (the buffer cache won't assume that they are actually clean until the buffer gets unlocked). ll_rw_block sets b_end_io to simple completion handler that marks the buffer up-to-date (if approriate), unlocks the buffer and wakes any waiters. All of the buffers must be for the same device, and must also be a multiple of the current approved size for the device. COPYRIGHT
Kernel Hackers Manual 2.6. July 2010 LL_RW_BLOCK(9)
Man Page

4 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Creating breadth traversal binary tree

I almost have the entire script written. however the problem is how would i assign the global variable to terminate the process from the bottom up to ensure the child terminates so the parent can. ex. I am proccess 1 I am proccess 2 etc Here is the code $ cat tree.c ... (3 Replies)
Discussion started by: slurpeyatari
3 Replies

2. Programming

Readline problems

I'm having problems with libreadline. When I write text longer than the current line, the text wraps back to the beginning of the line rather than to the next line. Also, when I use the arrow keys to edit something in that beginning part, it won't display at all (so I can edit only if I remember... (5 Replies)
Discussion started by: CRGreathouse
5 Replies

3. Solaris

hs_findisovol: bread: error=(5)

Hi experts, I have problem which i wanna share with you. My system is solaris10 and have a SUN box T5220 with usb DVD driver. During backup, i got the following message: Verify CD/DVD burning. Please wait ... Verify CD/DVD burning. Please wait ... 15:37:36 ERROR: Failed to mount the... (0 Replies)
Discussion started by: dyavuzy1
0 Replies

4. Tips and Tutorials

My "Bread and Butter" Process Keep Alive Perl Script....

For the newbies, I should have posted this years ago.... Here is the standard (tiny) "bread and butter" perl script (on Linux) I use in my crontab files to insure key processes are alive ( just in case ! ) like httpd, named, sshd, etc. The example below if for named...... ... (1 Reply)
Discussion started by: Neo
1 Replies

Featured Tech Videos