NeKernel dev
Loading...
Searching...
No Matches
Kernel::UserProcessHelper Class Referencefinal

USER_PROCESS helper class, which contains needed utilities for the scheduler. More...

#include <UserProcessScheduler.h>

Public Member Functions

STATIC Bool Switch (HAL::StackFramePtr frame_ptr, PID new_pid)
 Does a context switch in a CPU.
STATIC Bool CanBeScheduled (const USER_PROCESS &process)
 Check if process can be schedulded.
STATIC ErrorOr< PIDTheCurrentPID ()
 Current proccess id getter.
STATIC SizeT StartScheduling ()
 Start scheduling the current team.

Detailed Description

USER_PROCESS helper class, which contains needed utilities for the scheduler.

Member Function Documentation

◆ CanBeScheduled()

Bool Kernel::UserProcessHelper::CanBeScheduled ( const USER_PROCESS & process)

Check if process can be schedulded.

Parameters
processthe process reference.
Return values
truecan be schedulded.
falsecannot be schedulded.

◆ StartScheduling()

SizeT Kernel::UserProcessHelper::StartScheduling ( )

Start scheduling the current team.

◆ Switch()

Bool Kernel::UserProcessHelper::Switch ( HAL::StackFramePtr frame_ptr,
PID new_pid )

Does a context switch in a CPU.

Parameters
the_stackthe stackframe of the running app.
new_pidthe process's PID.

Prepare task switch. ///

Rollback on fail. ///

◆ TheCurrentPID()

ErrorOr< PID > Kernel::UserProcessHelper::TheCurrentPID ( )

Current proccess id getter.

Returns
USER_PROCESS ID integer.

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