Skip to contentSkip to conversation

kernel_thread() usage found in staging

DISCUSSION Daniel Krüger 1 participant 1 message Mar 18, 2009

lore
Share & tools
lore
#0 lore raw

Hello,

sorry for stepping in. I found the original posting via Google while trying to compile the openPOWERLINK protocol stack with a recent Linux kernel. I am the official maintainer of openPOWERLINK.

Quoted 6 lines

./epl/ShbIpc-LinuxKernel.c:
kernel_thread(ShbIpcThreadSignalNewData, pShbInstance_p, kernel_thread(ShbIpcThreadSignalJobReady, pShbInstance_p,

./epl/EplSdoUdpu.c:

	    kernel_thread(EplSdoUdpThread, &SdoUdpInstance_g, CLONE_KERNEL);

As I understand, there are some issues (race conditions) with the kthread-API and signals. I need signals, because the kernel-threads may block in some I/O functions.

What is the right way to use the kthread-API with signals? Or are there any solutions to avoid signals? Is there any sample code that shows how to do it?

Thanks in advance for any help.

Regards,
Daniel Krüger

--
SYS TEC electronic GmbH
August-Bebel-Str. 29
D-07973 Greiz

Telefon : +49 (0) 3661 6279 0
Fax : +49 (0) 3661 6279 99
Email : [email protected]
Internet : http://www.systec-electronic.com

Managing Director : Dipl.-Phys. Siegmar Schmidt
Commercial registry : Amtsgericht Jena, HRB 205563