MOS Source Code
Loading...
Searching...
No Matches
tasks.c File Reference
+ Include dependency graph for tasks.c:

Go to the source code of this file.

Macros

#define PROCESS_HASHTABLE_SIZE   512
 
#define THREAD_HASHTABLE_SIZE   512
 

Functions

 SLAB_AUTOINIT ("process", process_cache, process_t)
 
 SLAB_AUTOINIT ("thread", thread_cache, thread_t)
 
static void dump_process (void)
 
 MOS_PANIC_HOOK (dump_process, "Dump current process")
 
void tasks_init ()
 
bool _process_do_print (uintn key, void *val, void *data)
 
bool _thread_do_print (uintn key, void *val, void *data)
 
static bool tasks_sysfs_process_list (sysfs_file_t *f)
 
static bool tasks_sysfs_thread_list (sysfs_file_t *f)
 
 SYSFS_AUTOREGISTER (tasks, task_sysfs_items)
 

Variables

slab_tprocess_cache = NULL
 
slab_tthread_cache = NULL
 
static sysfs_item_t task_sysfs_items []
 

Macro Definition Documentation

◆ PROCESS_HASHTABLE_SIZE

#define PROCESS_HASHTABLE_SIZE   512

Definition at line 19 of file tasks.c.

Referenced by tasks_init().

◆ THREAD_HASHTABLE_SIZE

#define THREAD_HASHTABLE_SIZE   512

Definition at line 20 of file tasks.c.

Referenced by tasks_init().

Function Documentation

◆ SLAB_AUTOINIT() [1/2]

SLAB_AUTOINIT ( "process" ,
process_cache ,
process_t  )

◆ SLAB_AUTOINIT() [2/2]

SLAB_AUTOINIT ( "thread" ,
thread_cache ,
thread_t  )

◆ dump_process()

static void dump_process ( void )
static

Definition at line 26 of file tasks.c.

+ Here is the call graph for this function:

◆ MOS_PANIC_HOOK()

MOS_PANIC_HOOK ( dump_process ,
"Dump current process"  )

◆ tasks_init()

void tasks_init ( )

Definition at line 46 of file tasks.c.

Referenced by mos_start_kernel().

+ Here is the call graph for this function:

◆ _process_do_print()

bool _process_do_print ( uintn key,
void * val,
void * data )

Definition at line 54 of file tasks.c.

Referenced by tasks_sysfs_process_list().

+ Here is the call graph for this function:

◆ _thread_do_print()

bool _thread_do_print ( uintn key,
void * val,
void * data )

Definition at line 63 of file tasks.c.

Referenced by tasks_sysfs_thread_list().

+ Here is the call graph for this function:

◆ tasks_sysfs_process_list()

static bool tasks_sysfs_process_list ( sysfs_file_t * f)
static

Definition at line 73 of file tasks.c.

+ Here is the call graph for this function:

◆ tasks_sysfs_thread_list()

static bool tasks_sysfs_thread_list ( sysfs_file_t * f)
static

Definition at line 79 of file tasks.c.

+ Here is the call graph for this function:

◆ SYSFS_AUTOREGISTER()

SYSFS_AUTOREGISTER ( tasks ,
task_sysfs_items  )

Variable Documentation

◆ thread_cache

slab_t * thread_cache = NULL

Definition at line 22 of file tasks.c.

◆ task_sysfs_items

sysfs_item_t task_sysfs_items[]
static
Initial value:
= {
}
#define SYSFS_RO_ITEM(_name, _show_fn)
Definition sysfs.h:48
static bool tasks_sysfs_process_list(sysfs_file_t *f)
Definition tasks.c:73
static bool tasks_sysfs_thread_list(sysfs_file_t *f)
Definition tasks.c:79

Definition at line 85 of file tasks.c.