Subversion Repositories Kolibri OS

Rev

Rev 340 | Rev 346 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 340 Rev 341
Line 669... Line 669...
669
 Function 18, subfunction 6 - save ramdisk to the file on hard drive. 
669
 Function 18, subfunction 6 - save ramdisk to the file on hard drive. 
670
======================================================================
670
======================================================================
671
Parameters:
671
Parameters:
672
  * eax = 18 - function number
672
  * eax = 18 - function number
673
  * ebx = 6 - subfunction number
673
  * ebx = 6 - subfunction number
674
  * ecx defines path to the file:
674
  * ecx = pointer to the full path to file
675
    * 1 = in the folder "/KOLIBRI"
675
    (for example, "/hd0/1/kolibri/kolibri.img")
676
    * 2 = in the root folder
-
 
677
    * 3 = edx points to the path (names of folders in the format 8+3,
-
 
678
      divided by '/')
-
 
679
Returned value:
676
Returned value:
680
  * eax = 0 - success
677
  * eax = 0 - success
681
  * else eax = error code of the file system
678
  * else eax = error code of the file system
682
Çàìå÷àíèÿ:
679
Remarks:
683
  * Filename is fixed, "kolibri.img" (global kernel variable
-
 
684
    'image_save' from 'preboot.inc')
-
 
685
  * Drive and partition are defined by subfunction 7
-
 
686
    and subfunction 8 of function 21.
-
 
687
  * All folders in the given path must exist, otherwise function
680
  * All folders in the given path must exist, otherwise function
688
    returns value 5, "file not found".
681
    returns value 5, "file not found".
Line 689... Line 682...
689
 
682
 
690
======================================================================
683
======================================================================