⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module session

Module session 

Source
Expand description

Session management for multi-user support

Provides session groups, virtual terminal assignment, session isolation, and login/logout lifecycle management. Each session represents a user’s login context with its own process group, VT assignment, and state.

Sessions are identified by a SessionId (u64) and tracked by a global SessionManager protected by a spin mutex. A maximum of 8 concurrent sessions is enforced.

Structs§

Session
A user session containing process groups, VT assignment, and metadata.
SessionId
Unique session identifier.
SessionManager
Manages all active sessions.

Enums§

SessionState
Runtime state of a session.

Statics§

SESSION_MANAGER
Global session manager, protected by a spin mutex.

Functions§

init
Initialize the session subsystem.