]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/posix-process: Add uk_posix_process_create_pthread()
authorMichalis Pappas <michalis@unikraft.io>
Mon, 14 Apr 2025 19:32:50 +0000 (21:32 +0200)
committerUnikraft Bot <monkey@unikraft.io>
Wed, 30 Apr 2025 09:42:51 +0000 (09:42 +0000)
commit361751a7ea2a53b9679755c87ae1bc30b97d13a4
treefc4514e28bbea8fa452bcecd269c833def99988e
parent22b76840ba27d6a2bf45bc6eeb20f1def58ab902
lib/posix-process: Add uk_posix_process_create_pthread()

Provide a function to attach a thread to the current process. This is
intended to be exclusively used by app-elfloader when configured with
initrd, in order to assign the container thread it creates to the init
process.

Move uk_process_kill() to the internal API, and rename to avoid using
the naming convention of public functions, and deprecate the unused
uk_posix_process_create().

Checkpatch-Ignore: REPEATED_WORD
Signed-off-by: Michalis Pappas <michalis@unikraft.io>
Approved-by: Andrei Tatar <andrei@unikraft.io>
Reviewed-by: Sergiu Moga <sergiu@unikraft.io>
Reviewed-by: Andrei Tatar <andrei@unikraft.io>
GitHub-Closes: #1627
lib/posix-process/exportsyms.uk
lib/posix-process/include/uk/process.h
lib/posix-process/process.c
lib/posix-process/process.h
lib/posix-process/signal/deliver.c