PatchworkOS
Loading...
Searching...
No Matches
namespace.h File Reference

Go to the source code of this file.

Data Structures

struct  namespace_t
 

Typedefs

typedef struct mount mount_t
 
typedef struct process process_t
 

Functions

uint64_t namespace_init (namespace_t *ns, namespace_t *parent, process_t *owner)
 Initializes a namespace.
 
void namespace_deinit (namespace_t *ns)
 Deinitializes a namespace.
 
uint64_t namespace_traverse_mount (namespace_t *ns, const path_t *mountpoint, path_t *outRoot)
 Traverse a mountpoint path to the root of the mounted filesystem.
 
mount_tnamespace_mount (namespace_t *ns, path_t *mountpoint, const char *deviceName, const char *fsName, void *private)
 Mount a filesystem in a namespace.
 
mount_tnamespace_bind (namespace_t *ns, dentry_t *source, path_t *mountpoint)
 Bind a directory to a mountpoint in a namespace.
 
uint64_t namespace_get_root_path (namespace_t *ns, path_t *outPath)
 Get the root path of a namespace.
 

Typedef Documentation

◆ mount_t

typedef struct mount mount_t

Definition at line 9 of file namespace.h.

◆ process_t

typedef struct process process_t

Definition at line 10 of file namespace.h.