Go to the source code of this file.
|
| static map_key_t | mount_key (mount_id_t parentId, dentry_id_t mountpointId) |
| |
| static uint64_t | namespace_add (namespace_t *ns, mount_t *mount, mount_flags_t flags, map_key_t *key) |
| |
| void | namespace_init (namespace_t *ns) |
| | Initializes a namespace.
|
| |
| void | namespace_deinit (namespace_t *ns) |
| | Clear and deinitialize a namespace.
|
| |
| uint64_t | namespace_set_parent (namespace_t *ns, namespace_t *parent) |
| | Sets the parent of a namespace and inherits all mounts from the parent.
|
| |
| uint64_t | namespace_traverse (namespace_t *ns, path_t *path) |
| | If the given path is a mountpoint in the namespace, traverse to the mounted filesystem, else no-op.
|
| |
| mount_t * | namespace_mount (namespace_t *ns, path_t *target, const char *deviceName, const char *fsName, mount_flags_t flags, mode_t mode, void *private) |
| | Mount a filesystem in a namespace.
|
| |
| mount_t * | namespace_bind (namespace_t *ns, dentry_t *source, path_t *target, mount_flags_t flags, mode_t mode) |
| | Bind a source dentry to a target path in a namespace.
|
| |
| uint64_t | namespace_get_root_path (namespace_t *ns, path_t *out) |
| | Get the root path of a namespace.
|
| |
| void | namespace_clear (namespace_t *ns) |
| | Clears all mounts from a namespace.
|
| |
| | SYSCALL_DEFINE (SYS_BIND, uint64_t, fd_t source, const char *mountpoint, mount_flags_t flags) |
| |
◆ mount_key()
◆ namespace_add()
◆ SYSCALL_DEFINE()