Tizen RT Libs&Environment  v1.1 D4

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

◆ EXTERN

#define EXTERN   extern

Definition at line 91 of file mount.h.

◆ MS_RDONLY

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

Definition at line 76 of file mount.h.

Function Documentation

◆ mount()

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
Tizen RT v1.0

◆ umount()

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
Tizen RT v1.0