KolibriOS kernel
dll.inc File Reference

Functions

void get_notify (dword p_ev)
 
void srv_handler (dword ioctl)
 
void get_service (dword sz_name)
 
void reg_service_ex (dword name, dword handler, dword srvsize)
 
void get_proc (dword exp, dword sz_name)
 
void get_coff_sym (dword pSym, dword count, dword sz_sym)
 
void get_fileinfo (dword file_name, dword info)
 
void read_file (dword file_name, dword buffer, dword off, dword bytes)
 
void load_file (dword file_name)
 Allocate kernel memory and loads the specified file. More...
 
void load_file_umode (dword file_name)
 
void get_proc_ex (dword proc_name, dword imports)
 
void fix_coff_symbols (dword sec, dword symbols, dword sym_count, dword strings, dword imports)
 
void fix_coff_relocs (dword coff, dword sym, dword delta)
 
void rebase_coff (dword coff, dword sym, dword delta)
 
void load_library (dword file_name, dword encoding)
 

Variables

label srv_handlerEx
 
handle restore
 
label reg_service
 
label reg_usb_driver
 
label stop_all_services
 used in shutdown system More...
 
dd cmd
 
dd offset
 
dd count
 
dd buff
 
dd name
 
dd attr
 
dd flags
 
dd cr_time
 
dd cr_date
 
dd acc_time
 
dd acc_date
 
dd mod_time
 
dd mod_date
 
dd file_size
 
dd file
 
dd file2
 
dd km_file
 
dd um_file
 
MUTEX unpack_mutex
 
dd retval
 
dd n_sec
 
label coff_get_align
 in: edx -> COFF_SECTION struct out: eax = alignment as mask for bits to drop More...
 
dd fullname
 
rb fileinfo
 
dd coff
 
dd img_base
 
label init_dlls_in_thread
 initialize [APPDATA.dlls_list_ptr] for given thread DLL is per-process object, so APPDATA.dlls_list_ptr must be kept in sync for all threads of one process. out: eax = APPDATA.dlls_list_ptr if all is OK, NULL if memory allocation failed More...
 
label dereference_dll
 in: eax = number of references to delete, esi -> DLLDESCR struc More...
 
label destroy_hdll
 
label destroy_all_hdlls
 ecx -> APPDATA for slot, esi = dlls_list_ptr More...
 
label create_kernel_object
 
label destroy_kernel_object
 
label create_object
 
label destroy_object
 

Function Documentation

◆ fix_coff_relocs()

void fix_coff_relocs ( dword  coff,
dword  sym,
dword  delta 
)

◆ fix_coff_symbols()

void fix_coff_symbols ( dword  sec,
dword  symbols,
dword  sym_count,
dword  strings,
dword  imports 
)

◆ get_coff_sym()

void get_coff_sym ( dword  pSym,
dword  count,
dword  sz_sym 
)

◆ get_fileinfo()

void get_fileinfo ( dword  file_name,
dword  info 
)

◆ get_notify()

void get_notify ( dword  p_ev)

◆ get_proc()

void get_proc ( dword  exp,
dword  sz_name 
)

◆ get_proc_ex()

void get_proc_ex ( dword  proc_name,
dword  imports 
)

◆ get_service()

void get_service ( dword  sz_name)

◆ load_file()

void load_file ( dword  file_name)

Allocate kernel memory and loads the specified file.

Parameters
file_namePath to file
Returns
File image in kernel memory in eax and size of file in ebx
Warning
You must call kernel_free() to delete each file loaded by the load_file() function
Source
core/dll.inc:383

◆ load_file_umode()

void load_file_umode ( dword  file_name)

◆ load_library()

void load_library ( dword  file_name,
dword  encoding 
)

◆ read_file()

void read_file ( dword  file_name,
dword  buffer,
dword  off,
dword  bytes 
)

◆ rebase_coff()

void rebase_coff ( dword  coff,
dword  sym,
dword  delta 
)

◆ reg_service_ex()

void reg_service_ex ( dword  name,
dword  handler,
dword  srvsize 
)

◆ srv_handler()

void srv_handler ( dword  ioctl)

Variable Documentation

◆ acc_date

dd acc_date
Initial value
?
Source
core/dll.inc:390
Initial value
?
Source
core/dll.inc:495

◆ acc_time

dd acc_time
Initial value
?
Source
core/dll.inc:389
Initial value
?
Source
core/dll.inc:494

◆ attr

dd attr
Initial value
?
Source
core/dll.inc:385
Initial value
?
Source
core/dll.inc:490

◆ buff

dd buff
Initial value
?
Source
core/dll.inc:312
Initial value
?
Source
core/dll.inc:348
Initial value
?
Source
core/taskman.inc:576

◆ cmd

dd cmd
Initial value
?
Source
core/dll.inc:308
Initial value
?
Source
core/dll.inc:344

◆ coff

dd coff
Initial value
?
Source
core/dll.inc:848

◆ coff_get_align

label coff_get_align

in: edx -> COFF_SECTION struct out: eax = alignment as mask for bits to drop

Source
core/dll.inc:822

◆ count

dd count
Initial value
?
Source
core/dll.inc:311
Initial value
?
Source
core/dll.inc:347
Initial value
?
Source
core/memory.inc:766

◆ cr_date

dd cr_date
Initial value
?
Source
core/dll.inc:388
Initial value
?
Source
core/dll.inc:493

◆ cr_time

dd cr_time
Initial value
?
Source
core/dll.inc:387
Initial value
?
Source
core/dll.inc:492

◆ create_kernel_object

label create_kernel_object

◆ create_object

label create_object

◆ dereference_dll

label dereference_dll

in: eax = number of references to delete, esi -> DLLDESCR struc

Source
core/dll.inc:1253

◆ destroy_all_hdlls

label destroy_all_hdlls

ecx -> APPDATA for slot, esi = dlls_list_ptr

Source
core/dll.inc:1287

◆ destroy_hdll

label destroy_hdll

◆ destroy_kernel_object

label destroy_kernel_object

◆ destroy_object

label destroy_object

◆ file

dd file
Initial value
?
Source
core/dll.inc:395

◆ file2

dd file2
Initial value
?
Source
core/dll.inc:396

◆ file_size

dd file_size
Initial value
?
Source
core/dll.inc:393
Initial value
?
Source
core/dll.inc:498

◆ fileinfo

rb fileinfo
Initial value
40
Source
core/dll.inc:847

◆ flags

dd flags
Initial value
?
Source
core/dll.inc:386
Initial value
?
Source
core/dll.inc:491
Initial value
?
Source
core/taskman.inc:644

◆ fullname

dd fullname
Initial value
?
Source
core/dll.inc:846

◆ img_base

dd img_base
Initial value
?
Source
core/dll.inc:849

◆ init_dlls_in_thread

label init_dlls_in_thread

initialize [APPDATA.dlls_list_ptr] for given thread DLL is per-process object, so APPDATA.dlls_list_ptr must be kept in sync for all threads of one process. out: eax = APPDATA.dlls_list_ptr if all is OK, NULL if memory allocation failed

Source
core/dll.inc:1233

◆ km_file

dd km_file
Initial value
?
Source
core/dll.inc:500

◆ mod_date

dd mod_date
Initial value
?
Source
core/dll.inc:392
Initial value
?
Source
core/dll.inc:497

◆ mod_time

dd mod_time
Initial value
?
Source
core/dll.inc:391
Initial value
?
Source
core/dll.inc:496

◆ n_sec

dd n_sec
Initial value
?
Source
core/dll.inc:731
Initial value
?
Source
core/dll.inc:786

◆ name

dd name
Initial value
?
Source
core/dll.inc:314
Initial value
?
Source
core/dll.inc:350

◆ offset

dd offset
Initial value
?
Source
core/dll.inc:309
Initial value
?
Source
core/dll.inc:345
Initial value
?
Source
core/taskman.inc:578

◆ reg_service

label reg_service

◆ reg_usb_driver

label reg_usb_driver

◆ restore

_process restore
Initial value
Source
core/dll.inc:110
Initial value
Source
core/dll.inc:111
Initial value
Source
core/dll.inc:112
Initial value
Source
core/dll.inc:113
Initial value
Source
core/dll.inc:114
Initial value
Source
core/dll.inc:115
Initial value
Source
core/sys32.inc:392
Initial value
Source
core/sys32.inc:393
Initial value
Source
core/sys32.inc:394
Initial value
Source
core/sys32.inc:395
Initial value
Source
core/sys32.inc:396
Initial value
Source
core/sys32.inc:397
Initial value
Source
core/sys32.inc:398
Initial value
Source
core/sys32.inc:399
Initial value
Source
core/sys32.inc:400
Initial value
Source
core/sys32.inc:401
Initial value
Source
core/sys32.inc:402
Initial value
Source
core/sys32.inc:403
Initial value
Source
core/sys32.inc:829
Initial value
Source
core/sys32.inc:830

◆ retval

dd retval
Initial value
?
Source
core/dll.inc:668

◆ srv_handlerEx

label srv_handlerEx

◆ stop_all_services

label stop_all_services

used in shutdown system

Source
core/dll.inc:235

◆ um_file

dd um_file
Initial value
?
Source
core/dll.inc:501

◆ unpack_mutex

MUTEX unpack_mutex
Initial value
Source
core/dll.inc:633