Macros | |
| #define | ramdisk_read_write(operation) |
| Common procedure for reading and writing. operation = 0 for reading, operation = 1 for writing. Arguments of ramdisk_read and ramdisk_write are the same. More... | |
Functions | |
| void | ramdisk_init () |
| This function is called early in boot process. It creates filesystem /rd/1 based on raw image data loaded by somebody before to memory named as RAMDISK with max size RAMDISK_CAPACITY, may be less. More... | |
| void | ramdisk_querymedia () |
| Returns information about disk media. More... | |
| void | ramdisk_read (dword userdata, dword buffer, qword start_sector, dword numsectors_ptr) |
| Reads one or more sectors from the device. More... | |
| void | ramdisk_write (dword userdata, dword buffer, qword start_sector, dword numsectors_ptr) |
| Writes one or more sectors to the device. More... | |
| void | ramdisk_adjust_cache_size () |
| The kernel calls this function when initializing cache subsystem for the media. This call allows the driver to adjust the cache size. More... | |
Variables | |
| label | ramdisk_functions |
| dd | ramdisk_actual_size |
| db | ramdisk_name |
| dd | _userdata |
| dd | _info |
| dd | _suggested_size |
| #define ramdisk_read_write | ( | operation | ) |
Common procedure for reading and writing. operation = 0 for reading, operation = 1 for writing. Arguments of ramdisk_read and ramdisk_write are the same.
| void ramdisk_adjust_cache_size | ( | ) |
The kernel calls this function when initializing cache subsystem for the media. This call allows the driver to adjust the cache size.
| void ramdisk_init | ( | ) |
This function is called early in boot process. It creates filesystem /rd/1 based on raw image data loaded by somebody before to memory named as RAMDISK with max size RAMDISK_CAPACITY, may be less.
| void ramdisk_querymedia | ( | ) |
Returns information about disk media.
| void ramdisk_read | ( | dword | userdata, |
| dword | buffer, | ||
| qword | start_sector, | ||
| dword | numsectors_ptr | ||
| ) |
Reads one or more sectors from the device.
| void ramdisk_write | ( | dword | userdata, |
| dword | buffer, | ||
| qword | start_sector, | ||
| dword | numsectors_ptr | ||
| ) |
Writes one or more sectors to the device.
| dd _info |
| dd _suggested_size |
| dd _userdata |
| dd ramdisk_actual_size |
| label ramdisk_functions |
| db ramdisk_name |