KolibriOS kernel
rd.inc File Reference

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
 

Macro Definition Documentation

◆ ramdisk_read_write

#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.

Source
blkdev/rd.inc:114

Function Documentation

◆ ramdisk_adjust_cache_size()

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.

Source
blkdev/rd.inc:183

◆ ramdisk_init()

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.

Source
blkdev/rd.inc:32

◆ ramdisk_querymedia()

void ramdisk_querymedia ( )

Returns information about disk media.

Source
blkdev/rd.inc:93

◆ ramdisk_read()

void ramdisk_read ( dword  userdata,
dword  buffer,
qword  start_sector,
dword  numsectors_ptr 
)

Reads one or more sectors from the device.

Source
blkdev/rd.inc:170

◆ ramdisk_write()

void ramdisk_write ( dword  userdata,
dword  buffer,
qword  start_sector,
dword  numsectors_ptr 
)

Writes one or more sectors to the device.

Source
blkdev/rd.inc:176

Variable Documentation

◆ _info

dd _info
Initial value
?
Source
blkdev/rd.inc:96

◆ _suggested_size

dd _suggested_size
Initial value
?
Source
blkdev/rd.inc:186

◆ _userdata

dd _userdata
Initial value
?
Source
blkdev/rd.inc:95
Initial value
?
Source
blkdev/rd.inc:185

◆ ramdisk_actual_size

dd ramdisk_actual_size
Initial value
RAMDISK_CAPACITY
Source
blkdev/rd.inc:26

◆ ramdisk_functions

label ramdisk_functions

◆ ramdisk_name

db ramdisk_name
Initial value
'rd',0
Source
blkdev/rd.inc:34