Hermes 0.7.0
Linux game streaming host
Loading...
Searching...
No Matches
platf::session_devices::plan_t Class Reference

Work done in a session's process between fork and exec. More...

#include <src/platform/linux/session_devices.h>

Classes

struct  op_t

Public Member Functions

void apply () const noexcept
 Child side; exits the child on failure.

Static Public Member Functions

static std::unique_ptr< plan_t > isolate (const std::string &staging, options_t options)
 A new mount namespace with /dev built on the empty directory staging.
static std::unique_ptr< plan_t > join (pid_t pid)
 The mount namespace of a running session process.

Detailed Description

Work done in a session's process between fork and exec.

Prepared in Hermes; the child only makes system calls with it.

Definition at line 41 of file session_devices.h.

Member Function Documentation

◆ apply()

void platf::session_devices::plan_t::apply ( ) const
noexcept

Child side; exits the child on failure.

Definition at line 181 of file session_devices.cpp.

◆ isolate()

std::unique_ptr< plan_t > platf::session_devices::plan_t::isolate ( const std::string & staging,
options_t options )
static

A new mount namespace with /dev built on the empty directory staging.

Definition at line 112 of file session_devices.cpp.

◆ join()

std::unique_ptr< plan_t > platf::session_devices::plan_t::join ( pid_t pid)
static

The mount namespace of a running session process.

Definition at line 175 of file session_devices.cpp.


The documentation for this class was generated from the following files: