|
Revision tags: release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0 |
|
| #
3a67f8b6 |
| 24-May-2019 |
Johannes Lundberg <[email protected]> |
MFC r347843: LinuxKPI: Add group_leader member to struct task_struct.
Assign self as group leader at creation to act as the only member of a new process group. Bump FreeBSD version. This patch is pa
MFC r347843: LinuxKPI: Add group_leader member to struct task_struct.
Assign self as group leader at creation to act as the only member of a new process group. Bump FreeBSD version. This patch is part of D19565
Reviewed by: hps Approved by: imp (mentor), hps
show more ...
|
| #
9aeba789 |
| 05-Apr-2019 |
Hans Petter Selasky <[email protected]> |
MFC r345098: Implement current_exiting() in the LinuxKPI.
Submitted by: Johannes Lundberg <[email protected]> Sponsored by: Limelight Networks Sponsored by: Mellanox Technologies
|
|
Revision tags: release/12.0.0, release/11.2.0 |
|
| #
ef925749 |
| 11-Nov-2017 |
Hans Petter Selasky <[email protected]> |
Remove release and acquire semantics when accessing the "state" field of the LinuxKPI task struct. Change type of "state" variable from "int" to "atomic_t" to simplify code and avoid unneccessary cas
Remove release and acquire semantics when accessing the "state" field of the LinuxKPI task struct. Change type of "state" variable from "int" to "atomic_t" to simplify code and avoid unneccessary casting.
MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
|
Revision tags: release/10.4.0, release/11.1.0 |
|
| #
abf5c031 |
| 09-Jul-2017 |
Mark Johnston <[email protected]> |
Free existing per-thread task structs when unloading linuxkpi.ko.
They are otherwise leaked.
Reported and tested by: ae MFC after: 1 week
|
| #
8504aa98 |
| 18-Jun-2017 |
Mark Johnston <[email protected]> |
Add kthread parking support to the LinuxKPI.
Submitted by: kmacy (original version) Reviewed by: hselasky MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D11264
|
| #
68b9f2f0 |
| 31-May-2017 |
Hans Petter Selasky <[email protected]> |
Don't acquire a reference on the VM-space when allocating the LinuxKPI task structure to avoid deadlock when tearing down the VM object during a process exit.
Found by: markj @ MFC after: 1 week S
Don't acquire a reference on the VM-space when allocating the LinuxKPI task structure to avoid deadlock when tearing down the VM object during a process exit.
Found by: markj @ MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
8402f058 |
| 06-Apr-2017 |
Hans Petter Selasky <[email protected]> |
Fix implementation of task_pid_group_leader() in the LinuxKPI.
In FreeBSD thread IDs and procedure IDs have distinct number spaces. When asking for the group leader task ID in the LinuxKPI, return t
Fix implementation of task_pid_group_leader() in the LinuxKPI.
In FreeBSD thread IDs and procedure IDs have distinct number spaces. When asking for the group leader task ID in the LinuxKPI, return the procedure ID and let this resolve to the first task in the procedure having a valid LinuxKPI task structure pointer.
MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
e54b103e |
| 06-Apr-2017 |
Hans Petter Selasky <[email protected]> |
Before registering a new mm_struct in the LinuxKPI check if other tasks in the belonging procedure already have a valid mm_struct and reference that instead.
The mm_struct in the LinuxKPI should be
Before registering a new mm_struct in the LinuxKPI check if other tasks in the belonging procedure already have a valid mm_struct and reference that instead.
The mm_struct in the LinuxKPI should be shared among all tasks belonging to the same procedure. This has to do with with the mmap_sem semaphore which should serialize all VM operations inside a given procedure. Linux based drivers depend on this behaviour.
MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
a0699ebf |
| 17-Mar-2017 |
Hans Petter Selasky <[email protected]> |
Implement get_pid_task(), pid_task() and some other PID helper functions in the LinuxKPI. Add a usage atomic to the task_struct structure to facilitate refcounting the task structure when returned fr
Implement get_pid_task(), pid_task() and some other PID helper functions in the LinuxKPI. Add a usage atomic to the task_struct structure to facilitate refcounting the task structure when returned from get_pid_task(). The get_task_struct() and put_task_struct() function is used to manage atomic refcounting. After this change the task_struct should only be freed through put_task_struct().
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
05d4f501 |
| 17-Mar-2017 |
Hans Petter Selasky <[email protected]> |
Implement minimalistic memory mapping structure, struct mm_struct, and some associated helper functions in the LinuxKPI. Let the existing linux_alloc_current() function allocate and initialize the ne
Implement minimalistic memory mapping structure, struct mm_struct, and some associated helper functions in the LinuxKPI. Let the existing linux_alloc_current() function allocate and initialize the new structure and let linux_free_current() drop the refcount on the memory mapping structure. When the mm_struct's refcount reaches zero, the structure is freed.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|
| #
1e3db1de |
| 21-Feb-2017 |
Hans Petter Selasky <[email protected]> |
Make the LinuxKPI task struct persistent accross system calls.
A set of helper functions have been added to manage the life of the LinuxKPI task struct. When an external system call or task is invok
Make the LinuxKPI task struct persistent accross system calls.
A set of helper functions have been added to manage the life of the LinuxKPI task struct. When an external system call or task is invoked, a check is made to create the task struct by demand. A thread destructor callback is registered to free the task struct when a thread exits to avoid memory leaks.
This change lays the ground for emulating the Linux kernel more closely which is a dependency by the code using the LinuxKPI APIs.
Add new dedicated td_lkpi_task field has been added to struct thread instead of abusing td_retval[1].
Fix some header file inclusions to make LINT kernel build properly after this change.
Bump the __FreeBSD_version to force a rebuild of all kernel modules.
MFC after: 1 week Sponsored by: Mellanox Technologies
show more ...
|