KolibriOS kernel
taskman.inc File Reference

Classes

struct  APP_HEADER_01_
 
struct  APP_HDR
 

Macros

#define _clear_(op)
 

Functions

void fs_execute (arg_t edx, arg_t ecx, arg_t ebx, arg_t eax)
 Executes a program. More...
 
void create_process (dword app_size)
 
void destroy_page_table (dword pg_tab)
 
void read_process_memory ()
 
void write_process_memory ()
 
void new_sys_threads ()
 
void map_process_image (dword img_size, dword file_base, dword file_size)
 
void set_app_params (dword slot, dword params, dword flags)
 

Variables

label _strnlen
 
label fs_execute_from_sysdir
 
label fs_execute_from_sysdir_param
 
rd cmdline
 
rd flags
 
rd slot
 index of new thread slot More...
 
rd slot_base
 base address of it More...
 
rd hdr_cmdline
 app header data More...
 
rd hdr_path
 
rd hdr_eip
 
rd hdr_esp
 
rd hdr_edata
 
rd hdr_emem
 
rd file_base
 
rd file_size
 
rd filename_size
 
rd cmdline_size
 
rd path_string
 
label test_app_header
 
APP_HEADER_01_ APP_HEADER_01
 
label alloc_thread_slot
 
dd process
 
dd app_tabs
 
label destroy_process
 fastcall ecx= ptr to process More...
 
label get_pid
 
label pid_to_slot
 
dd buff
 
dd r_count
 
dd offset
 
dd tmp_r_cnt
 
dd w_count
 
dd tmp_w_cnt
 
dd app_cmdline
 0x00 More...
 
dd app_path
 0x04 More...
 
dd app_eip
 0x08 More...
 
dd app_esp
 0x0C More...
 
dd app_mem
 0x10 More...
 
label common_app_entry
 
dd pl0_stack
 
label get_stack_base
 
label get_curr_slot
 
label pid_to_appdata
 

Macro Definition Documentation

◆ _clear_

#define _clear_ (   op)

Function Documentation

◆ create_process()

void create_process ( dword  app_size)

◆ destroy_page_table()

void destroy_page_table ( dword  pg_tab)

◆ fs_execute()

void fs_execute ( arg_t  edx,
arg_t  ecx,
arg_t  ebx,
arg_t  eax 
)

Executes a program.

Parameters
edxFlags
ecxCommandline
ebxAbsolute file path
eaxString length
Returns
Negated error code or new process number
Source
core/taskman.inc:72

◆ map_process_image()

void map_process_image ( dword  img_size,
dword  file_base,
dword  file_size 
)

◆ new_sys_threads()

void new_sys_threads ( )

◆ read_process_memory()

void read_process_memory ( )

◆ set_app_params()

void set_app_params ( dword  slot,
dword  params,
dword  flags 
)

◆ write_process_memory()

void write_process_memory ( )

Variable Documentation

◆ _strnlen

label _strnlen

◆ alloc_thread_slot

label alloc_thread_slot

◆ app_cmdline

dd app_cmdline

0x00

Initial value
?
Source
core/taskman.inc:643

◆ app_eip

dd app_eip

0x08

Initial value
?
Source
core/taskman.inc:645

◆ app_esp

dd app_esp

0x0C

Initial value
?
Source
core/taskman.inc:646

◆ APP_HEADER_01

APP_HEADER_01_ APP_HEADER_01
Initial value
Source
core/taskman.inc:208

◆ app_mem

dd app_mem

0x10

Initial value
?
Source
core/taskman.inc:647

◆ app_path

dd app_path

0x04

Initial value
?
Source
core/taskman.inc:644

◆ app_tabs

dd app_tabs
Initial value
?
Source
core/taskman.inc:287

◆ buff

dd buff
Initial value
?
Source
core/taskman.inc:503
Initial value
?
Source
core/taskman.inc:574

◆ cmdline

rd cmdline
Initial value
1
Source
core/taskman.inc:74

◆ cmdline_size

rd cmdline_size
Initial value
1
Source
core/taskman.inc:88

◆ common_app_entry

label common_app_entry

◆ destroy_process

label destroy_process

fastcall ecx= ptr to process

Source
core/taskman.inc:410

◆ file_base

rd file_base
Initial value
1
Source
core/taskman.inc:85

◆ file_size

rd file_size
Initial value
1
Source
core/taskman.inc:86

◆ filename_size

rd filename_size
Initial value
1
Source
core/taskman.inc:87

◆ flags

dd flags
Initial value
1
Source
core/taskman.inc:75
Initial value
?
Source
core/taskman.inc:642

◆ fs_execute_from_sysdir

label fs_execute_from_sysdir

◆ fs_execute_from_sysdir_param

label fs_execute_from_sysdir_param

◆ get_curr_slot

label get_curr_slot

◆ get_pid

label get_pid

◆ get_stack_base

label get_stack_base

◆ hdr_cmdline

rd hdr_cmdline

app header data

Initial value
1
Source
core/taskman.inc:79

◆ hdr_edata

rd hdr_edata
Initial value
1
Source
core/taskman.inc:83

◆ hdr_eip

rd hdr_eip
Initial value
1
Source
core/taskman.inc:81

◆ hdr_emem

rd hdr_emem
Initial value
1
Source
core/taskman.inc:84

◆ hdr_esp

rd hdr_esp
Initial value
1
Source
core/taskman.inc:82

◆ hdr_path

rd hdr_path
Initial value
1
Source
core/taskman.inc:80

◆ offset

dd offset
Initial value
?
Source
core/taskman.inc:505
Initial value
?
Source
core/taskman.inc:576

◆ path_string

rd path_string
Initial value
1
Source
core/taskman.inc:89

◆ pid_to_appdata

label pid_to_appdata

◆ pid_to_slot

label pid_to_slot

◆ pl0_stack

dd pl0_stack
Initial value
?
Source
core/taskman.inc:882

◆ process

dd process
Initial value
?
Source
core/taskman.inc:286

◆ r_count

dd r_count
Initial value
?
Source
core/taskman.inc:504

◆ slot

dd slot

index of new thread slot

Initial value
1
Source
core/taskman.inc:76
Initial value
?
Source
core/taskman.inc:502
Initial value
?
Source
core/taskman.inc:573
Initial value
?
Source
core/taskman.inc:641

◆ slot_base

rd slot_base

base address of it

Initial value
1
Source
core/taskman.inc:77

◆ test_app_header

label test_app_header

◆ tmp_r_cnt

dd tmp_r_cnt
Initial value
?
Source
core/taskman.inc:506

◆ tmp_w_cnt

dd tmp_w_cnt
Initial value
?
Source
core/taskman.inc:577

◆ w_count

dd w_count
Initial value
?
Source
core/taskman.inc:575