Question

In: Computer Science

Review the following files associated with block IO: block/genhd.c fs/partitions/check.c block/ll_rw_blk.c include/linux/bio.h include/linux/blkdev.h include/linux/genhd.h block/elevator.c Discuss...

Review the following files associated with block IO:

block/genhd.c

fs/partitions/check.c

block/ll_rw_blk.c

include/linux/bio.h

include/linux/blkdev.h

include/linux/genhd.h

block/elevator.c

Discuss what you found in these files. What is the purpose of the code in each file? How do they fit together to block IO?

these are the files that are provided to me, everything here is what i can see as far as the question goes.

block/genhd.c

fs/partitions/check.c

block/ll_rw_blk.c

include/linux/bio.h

include/linux/blkdev.h

include/linux/genhd.h

block/elevator.c

Solutions

Expert Solution

List of file associated with block IO

1) block/genhd.c: This file basically registers a block driver software with kernel

and kernel interface of this file is register_blkdev()

2) fs/partitions/check.c: Frees the space of gendisk and its kernel interface prototype is del_gendisk()

block/ll_rw_blk.c: This file does two main function namely i) Allocates a request queue ii) registers a request() function for processing request in the queue. Its prototype is blk_init_queue()

3) include/linux/bio.h: Loops via every segment of page in basic input/output. Kernel interface is bio_every_segment_of_page()

4) include/linux/blkdev.h: This file keep checking whether a particular request is obtained from the request queue or not. Prototype blk_fs_request()

5) include/linux/genhd.h: This file essentially set capacity of various storage media in terms of #of sectors using function set_capacity()

6) block/elevator.c: get next entry from request queue using elv_next_request() function


Related Solutions

1. Discuss the various log files found on a Linux system. Based on their own experiences,...
1. Discuss the various log files found on a Linux system. Based on their own experiences, how often do they feel they would check these files, and how vigilant do they think they would be about the process? Have them outline some of the reasons why an administrator might tend to ignore these files. 2. Discuss there experiences with the creation of user and group accounts in other OSs such as Windows 10 or Windows Server 2019. What do they...
In your own words, discuss measures of variability as they are associated with frequencies. Include a...
In your own words, discuss measures of variability as they are associated with frequencies. Include a discussion of variance and standard deviation. What is the difference between the two and how can they be used to explain the same distribution.
discuss the pathophysiolgy of Graves disease and include signs and symptoms associated with this disorder
discuss the pathophysiolgy of Graves disease and include signs and symptoms associated with this disorder
Discuss the lymphatic tissues associated with the respiratory and digestive systems, include in your discussion the...
Discuss the lymphatic tissues associated with the respiratory and digestive systems, include in your discussion the types of lymphatic tissue, lymphatic cells, their functions, and locations. What would happen if there were no related lymphatic tissues within these two systems?
Code the following in C++ and make sure to include all three files required at the...
Code the following in C++ and make sure to include all three files required at the end. Hotdogs – The World’s Greatest Cost Effective Wholesome Nutritious Food Due to world food supply scarcity and the burgeoning populations of the world’s countries, your hot stand business is globalizing to satisfy the world’s desire for a cost effective wholesome nutritious food source. Market studies have shown that tens of billions of people are craving for the eponymous hotdog which will result in...
Unix/Linux Turn in the following commands and any output from the commands. 1) ll to show the original 3 files
Unix/LinuxTurn in the following commands and any output from the commands.1) ll to show the original 3 files2) run the tar command to stuff three files3) ll to show the 'tar archive'4) mkdir newdir to create a new directory to unstuff the 'tar archive'
Discuss a relationship between two quantities associated with your major (business finance). Include your major and...
Discuss a relationship between two quantities associated with your major (business finance). Include your major and describe the relationship 1) in words, 2) graphically, 3) and as an equation. Define the terms in the equation, and properly label the graph and all terms related to it.
Discuss the disadvantages associated with offshore outsourcing? Include examples in your responses. Please provide 250+ word....
Discuss the disadvantages associated with offshore outsourcing? Include examples in your responses. Please provide 250+ word. Business 1010
Discuss a real time application of first order differential equation [Answer should include literature review and...
Discuss a real time application of first order differential equation [Answer should include literature review and real applications maximum 200 words].
C++ Program - Arrays- Include the following header files in your program:     string, iomanip, iostream Suggestion:...
C++ Program - Arrays- Include the following header files in your program:     string, iomanip, iostream Suggestion: code steps 1 thru 4 then test then add requirement 5, then test, then add 6, then test etc. Add comments to display assignment //step 1., //step 2. etc. This program is to have no programmer created functions. Just do everything in main and make sure you comment each step so I can grade more easily. Also, this program will be expanded in Chapter...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT