Re: [PATCH v2 1/4] um: Add pthread-based helper support

2025-04-04 Thread Johannes Berg
On Thu, 2025-03-06 at 23:07 +0800, Tiwei Bie wrote: > Introduce a new set of utility functions that can be used to create > pthread-based helpers. Helper threads created in this way will ensure > thread safety for errno while sharing the same memory space. I'm not sure at the moment exactly what t

Re: [PATCH v2 1/4] um: Add pthread-based helper support

2025-03-25 Thread Tiwei Bie
On 2025/3/26 00:31, Benjamin Berg wrote: > On Tue, 2025-03-18 at 22:55 +0800, Tiwei Bie wrote: >> On 2025/3/18 21:16, Johannes Berg wrote: >>> On Tue, 2025-03-18 at 14:06 +0100, Johannes Berg wrote: On Thu, 2025-03-06 at 23:07 +0800, Tiwei Bie wrote: > Introduce a new set of utility functi

Re: [PATCH v2 1/4] um: Add pthread-based helper support

2025-03-25 Thread Benjamin Berg
On Tue, 2025-03-18 at 22:55 +0800, Tiwei Bie wrote: > On 2025/3/18 21:16, Johannes Berg wrote: > > On Tue, 2025-03-18 at 14:06 +0100, Johannes Berg wrote: > > > On Thu, 2025-03-06 at 23:07 +0800, Tiwei Bie wrote: > > > > Introduce a new set of utility functions that can be used to create > > > > pt

Re: [PATCH v2 1/4] um: Add pthread-based helper support

2025-03-19 Thread Tiwei Bie
On 2025/3/19 17:11, Johannes Berg wrote: > On Thu, 2025-03-06 at 23:07 +0800, Tiwei Bie wrote: >> +void os_kill_helper_thread(struct os_helper_thread *td) >> +{ >> +pthread_kill(td->handle, SIGKILL); > > This ends up killing everything. > [...] > > Anyway, the issue is I cannot shut down, I

Re: [PATCH v2 1/4] um: Add pthread-based helper support

2025-03-18 Thread Tiwei Bie
On 2025/3/18 21:16, Johannes Berg wrote: > On Tue, 2025-03-18 at 14:06 +0100, Johannes Berg wrote: >> On Thu, 2025-03-06 at 23:07 +0800, Tiwei Bie wrote: >>> Introduce a new set of utility functions that can be used to create >>> pthread-based helpers. Helper threads created in this way will ensure

Re: [PATCH v2 1/4] um: Add pthread-based helper support

2025-03-18 Thread Tiwei Bie
On 2025/3/18 21:06, Johannes Berg wrote: > On Thu, 2025-03-06 at 23:07 +0800, Tiwei Bie wrote: >> Introduce a new set of utility functions that can be used to create >> pthread-based helpers. Helper threads created in this way will ensure >> thread safety for errno while sharing the same memory spa

Re: [PATCH v2 1/4] um: Add pthread-based helper support

2025-03-18 Thread Johannes Berg
On Tue, 2025-03-18 at 14:06 +0100, Johannes Berg wrote: > On Thu, 2025-03-06 at 23:07 +0800, Tiwei Bie wrote: > > Introduce a new set of utility functions that can be used to create > > pthread-based helpers. Helper threads created in this way will ensure > > thread safety for errno while sharing t

Re: [PATCH v2 1/4] um: Add pthread-based helper support

2025-03-18 Thread Johannes Berg
On Thu, 2025-03-06 at 23:07 +0800, Tiwei Bie wrote: > Introduce a new set of utility functions that can be used to create > pthread-based helpers. Helper threads created in this way will ensure > thread safety for errno while sharing the same memory space. Using pthreads seemed odd, but Benjamin a

[PATCH v2 1/4] um: Add pthread-based helper support

2025-03-06 Thread Tiwei Bie
Introduce a new set of utility functions that can be used to create pthread-based helpers. Helper threads created in this way will ensure thread safety for errno while sharing the same memory space. Signed-off-by: Tiwei Bie --- arch/um/include/shared/os.h | 5 +++ arch/um/os-Linux/helper.c |