Processes endpoint
This endpoint is intended for managing processes.
Information about methods of the endpoint is provided in the table below.
Methods of the task.Task endpoint (kl.core.Task interface)
Method | Method purpose and parameters | Potential danger of the method |
---|---|---|
| Purpose Creates a process. Parameters
| Allows the following:
|
| Purpose Loads an ELF image segment into process memory from the MDL buffer. Parameters
| Allows code to be loaded into process memory for subsequent execution of that code. |
| Purpose Reserves the virtual memory region in a process that was created as an empty process. Parameters
| Allows the following:
|
| Purpose Frees the virtual memory region that was reserved by calling the Parameters
| Frees virtual memory regions in another process that was created as an empty process and has not yet been started (if its handle is available). (The handle permissions mask must allow freeing of virtual memory.) |
| Purpose Defines the program entry point and the ELF image load offset. Parameters
| Creates conditions for executing code loaded into process memory. |
| Purpose Loads the symbol table Parameters
| N/A |
| Purpose Writes the ELF image header to the PCB of a process that was created as an empty process. Parameters
| N/A |
| Purpose Writes data to the SCP of a child process. Parameters
| Allows the kernel memory to be used up by creating a multitude of objects within it. |
| Purpose Deletes the SCP of the calling process. Parameters
| N/A |
| Purpose Starts a process. Parameters
| Allows the following:
|
| Purpose Terminates the calling process. Parameters
| N/A |
| Purpose Terminates a process. Parameters
| Allows another process to be terminated if its handle is available. (The handle permissions mask must allow termination of the process.) |
| Purpose Gets information about a terminated process. Parameters
| N/A |
| Purpose Gets the context of a thread that is part of a frozen process. Parameters
| Enables disrupted isolation of a process that is in a frozen state. For example, the thread context may contain the values of variables. |
| Purpose Gets information about the virtual memory region that belongs to a frozen process. Parameters
| Enables disrupted isolation of a process that is in a frozen state. Process isolation is disrupted due to the opened access to the process memory region. |
| Purpose Terminates a frozen process. Parameters
| Enables termination of a frozen process. This does not allow collection of data about this process for diagnostic purposes. |
| Purpose Gets the name of a calling process. Parameters
| N/A |
| Purpose Gets the name of the executable file (in ROMFS) that was used to create the calling process. Parameters
| N/A |
| Purpose Gets the priority of the initial thread of a process. Parameters
| N/A |
| Purpose Defines the priority of the initial thread of a process. Parameters
| Allows the priority of the initial thread of a process to be elevated to reduce the CPU time available to all other threads, including from other processes. It is recommended to monitor the priority of an initial thread. |
| Purpose Gets information about existing processes. Parameters
| Allows the kernel memory to be used up by creating a multitude of objects within it. |
| Purpose Defines the scheduler class and priority of the initial thread of a process. Parameters
| Allows the following:
|
| Purpose Defines the seed value for ASLR support. Parameters
| N/A |
| Purpose Gets the address and size of the symbol table Parameters
| N/A |
| Purpose Transfers a handle to a process that is not yet running. Parameters
| Allows the kernel memory to be used up by creating a multitude of objects within it. |
| Purpose Gets the process ID (PID). Parameters
| N/A |