Provides APIs for Mount.
More...
|
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...
|
|
Provides APIs for Mount.
◆ EXTERN
◆ MS_RDONLY
#define MS_RDONLY 1 /* Mount file system read-only */ |
◆ 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] | source | the name of block device to be attached |
[in] | target | the root path of filesystem |
[in] | filesystemtype | the type of filesystem |
[in] | mountflags | the flags for mount |
[in] | data | mountpoint 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] | target | the 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