diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /Documentation/block/request.txt |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'Documentation/block/request.txt')
-rw-r--r-- | Documentation/block/request.txt | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/Documentation/block/request.txt b/Documentation/block/request.txt new file mode 100644 index 000000000000..75924e2a6975 --- /dev/null +++ b/Documentation/block/request.txt | |||
@@ -0,0 +1,88 @@ | |||
1 | |||
2 | struct request documentation | ||
3 | |||
4 | Jens Axboe <axboe@suse.de> 27/05/02 | ||
5 | |||
6 | 1.0 | ||
7 | Index | ||
8 | |||
9 | 2.0 Struct request members classification | ||
10 | |||
11 | 2.1 struct request members explanation | ||
12 | |||
13 | 3.0 | ||
14 | |||
15 | |||
16 | 2.0 | ||
17 | Short explanation of request members | ||
18 | |||
19 | Classification flags: | ||
20 | |||
21 | D driver member | ||
22 | B block layer member | ||
23 | I I/O scheduler member | ||
24 | |||
25 | Unless an entry contains a D classification, a device driver must not access | ||
26 | this member. Some members may contain D classifications, but should only be | ||
27 | access through certain macros or functions (eg ->flags). | ||
28 | |||
29 | <linux/blkdev.h> | ||
30 | |||
31 | 2.1 | ||
32 | Member Flag Comment | ||
33 | ------ ---- ------- | ||
34 | |||
35 | struct list_head queuelist BI Organization on various internal | ||
36 | queues | ||
37 | |||
38 | void *elevator_private I I/O scheduler private data | ||
39 | |||
40 | unsigned char cmd[16] D Driver can use this for setting up | ||
41 | a cdb before execution, see | ||
42 | blk_queue_prep_rq | ||
43 | |||
44 | unsigned long flags DBI Contains info about data direction, | ||
45 | request type, etc. | ||
46 | |||
47 | int rq_status D Request status bits | ||
48 | |||
49 | kdev_t rq_dev DBI Target device | ||
50 | |||
51 | int errors DB Error counts | ||
52 | |||
53 | sector_t sector DBI Target location | ||
54 | |||
55 | unsigned long hard_nr_sectors B Used to keep sector sane | ||
56 | |||
57 | unsigned long nr_sectors DBI Total number of sectors in request | ||
58 | |||
59 | unsigned long hard_nr_sectors B Used to keep nr_sectors sane | ||
60 | |||
61 | unsigned short nr_phys_segments DB Number of physical scatter gather | ||
62 | segments in a request | ||
63 | |||
64 | unsigned short nr_hw_segments DB Number of hardware scatter gather | ||
65 | segments in a request | ||
66 | |||
67 | unsigned int current_nr_sectors DB Number of sectors in first segment | ||
68 | of request | ||
69 | |||
70 | unsigned int hard_cur_sectors B Used to keep current_nr_sectors sane | ||
71 | |||
72 | int tag DB TCQ tag, if assigned | ||
73 | |||
74 | void *special D Free to be used by driver | ||
75 | |||
76 | char *buffer D Map of first segment, also see | ||
77 | section on bouncing SECTION | ||
78 | |||
79 | struct completion *waiting D Can be used by driver to get signalled | ||
80 | on request completion | ||
81 | |||
82 | struct bio *bio DBI First bio in request | ||
83 | |||
84 | struct bio *biotail DBI Last bio in request | ||
85 | |||
86 | request_queue_t *q DB Request queue this request belongs to | ||
87 | |||
88 | struct request_list *rl B Request list this request came from | ||