TizenRT Libs&Environment  v2.0 M2

Provides APIs for Mount. More...

Collaboration diagram for MOUNT:

Files

file  mount.h
 mount APIs
 

Macros

#define MS_RDONLY   1 /* Mount file system read-only */
 
#define EXTERN   extern
 

Functions

int mount (const char *source, const char *target, const char *filesystemtype, unsigned long mountflags, const void *data)
 attaches filesystem to the root filesystem at the target path More...
 
int umount (const char *target)
 detaches the filesystem mounted at the target path More...
 

Detailed Description

Provides APIs for Mount.

Macro Definition Documentation

#define EXTERN   extern

Definition at line 91 of file mount.h.

#define MS_RDONLY   1 /* Mount file system read-only */

Definition at line 76 of file mount.h.

Function Documentation

int mount ( const char *  source,
const char *  target,
const char *  filesystemtype,
unsigned long  mountflags,
const void *  data 
)

attaches filesystem to the root filesystem at the target path

#include <sys/mount.h>
SYSTEM CALL API

Parameters
[in]sourcethe name of block device to be attached
[in]targetthe root path of filesystem
[in]filesystemtypethe type of filesystem
[in]mountflagsthe flags for mount
[in]datamountpoint private data
Returns
On success, Zero is returned. On failure, -1 is returned and errno is set appropriately.
Since
TizenRT v1.0
int umount ( const char *  target)

detaches the filesystem mounted at the target path

#include <sys/mount.h>
SYSTEM CALL API

Parameters
[in]targetthe root path of filesystem to be detached
Returns
On success, Zero is returned. On failure, -1 is returned and errno is set appropriately.
Since
TizenRT v1.0