KolibriOS kernel
taskman.inc File Reference

Classes

struct  APP_HEADER_00_
 
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_00_ APP_HEADER_00
 
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
 

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:83

◆ 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:671

◆ app_eip

dd app_eip

0x08

Initial value
?
Source
core/taskman.inc:673

◆ app_esp

dd app_esp

0x0C

Initial value
?
Source
core/taskman.inc:674

◆ APP_HEADER_00

APP_HEADER_00_ APP_HEADER_00
Initial value
Source
core/taskman.inc:218

◆ APP_HEADER_01

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

◆ app_mem

dd app_mem

0x10

Initial value
?
Source
core/taskman.inc:675

◆ app_path

dd app_path

0x04

Initial value
?
Source
core/taskman.inc:672

◆ app_tabs

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

◆ buff

dd buff
Initial value
?
Source
core/taskman.inc:531
Initial value
?
Source
core/taskman.inc:602

◆ cmdline

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

◆ cmdline_size

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

◆ common_app_entry

label common_app_entry

◆ destroy_process

label destroy_process

fastcall ecx= ptr to process

Source
core/taskman.inc:436

◆ file_base

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

◆ file_size

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

◆ filename_size

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

◆ flags

dd flags
Initial value
1
Source
core/taskman.inc:86
Initial value
?
Source
core/taskman.inc:670

◆ fs_execute_from_sysdir

label fs_execute_from_sysdir

◆ fs_execute_from_sysdir_param

label fs_execute_from_sysdir_param

◆ 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:90

◆ hdr_edata

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

◆ hdr_eip

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

◆ hdr_emem

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

◆ hdr_esp

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

◆ hdr_path

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

◆ offset

dd offset
Initial value
?
Source
core/taskman.inc:533
Initial value
?
Source
core/taskman.inc:604

◆ path_string

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

◆ pid_to_slot

label pid_to_slot

◆ pl0_stack

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

◆ process

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

◆ r_count

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

◆ slot

dd slot

index of new thread slot

Initial value
1
Source
core/taskman.inc:87
Initial value
?
Source
core/taskman.inc:530
Initial value
?
Source
core/taskman.inc:601
Initial value
?
Source
core/taskman.inc:669

◆ slot_base

rd slot_base

base address of it

Initial value
1
Source
core/taskman.inc:88

◆ test_app_header

label test_app_header

◆ tmp_r_cnt

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

◆ tmp_w_cnt

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

◆ w_count

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