mount
Description:
With mount the calling process can bind additional filesystems to the virtual filesystem. This is for instance necessary to access files on block devices with replacable disks. It is also needed to mount filesystems from image-files.
Function Prototype:
int mount (char * target, char * source, int fstype);
Parameters:
target
A string speciying the target directory in the virtual filesystem tree. This must be a folder. Valid folder names for example are "/", "/files" or "/bin/mydir".
source
Specifies the source of the filesystem to be added. This must be a file, either a virtual device file or an image file. A valid source is for example "/dev/block0".
fstype
An integer specifying the filesystem type of the new filesystem to be added. The amount of available type depends on the individual kernel configuration and can be determined by inspecting the kernel main cofiguration file in "include/config.h" in the kernel sources of the target system (or type "make config" or "make tkconfig" in the root directory in the kernel sources).
Return Values:
This function returns a nonzero value in case of successful mounting and zero in the case if mounting fails.