diff options
Diffstat (limited to 'Documentation/filesystems/xip.txt')
-rw-r--r-- | Documentation/filesystems/xip.txt | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/Documentation/filesystems/xip.txt b/Documentation/filesystems/xip.txt index 0466ee569278..b77472949ede 100644 --- a/Documentation/filesystems/xip.txt +++ b/Documentation/filesystems/xip.txt | |||
@@ -28,12 +28,15 @@ Implementation | |||
28 | Execute-in-place is implemented in three steps: block device operation, | 28 | Execute-in-place is implemented in three steps: block device operation, |
29 | address space operation, and file operations. | 29 | address space operation, and file operations. |
30 | 30 | ||
31 | A block device operation named direct_access is used to retrieve a | 31 | A block device operation named direct_access is used to translate the |
32 | reference (pointer) to a block on-disk. The reference is supposed to be | 32 | block device sector number to a page frame number (pfn) that identifies |
33 | cpu-addressable, physical address and remain valid until the release operation | 33 | the physical page for the memory. It also returns a kernel virtual |
34 | is performed. A struct block_device reference is used to address the device, | 34 | address that can be used to access the memory. |
35 | and a sector_t argument is used to identify the individual block. As an | 35 | |
36 | alternative, memory technology devices can be used for this. | 36 | The direct_access method takes a 'size' parameter that indicates the |
37 | number of bytes being requested. The function should return the number | ||
38 | of bytes that can be contiguously accessed at that offset. It may also | ||
39 | return a negative errno if an error occurs. | ||
37 | 40 | ||
38 | The block device operation is optional, these block devices support it as of | 41 | The block device operation is optional, these block devices support it as of |
39 | today: | 42 | today: |