Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-07-2007, 12:13 PM   #1
Registered: Aug 2006
Distribution: Open Suse 10.1, Ubuntu (Feisty Fawn)
Posts: 87

Rep: Reputation: 15
Strange behaviour from kernel thread

Hi all,

i am working on a project with kernel threads. And I get this strange behaviour.

At first, i create the thread directly after the kernel module is loaded. This work perfectly as i create and ends the thread.

But then if i try to create the kernel threads later after the module is loaded, for example by writing the proc file system of the kernel module, the thread later can not be ended by sending signal (with kill_proc() function) as i unload the module.

The thread somehow doesn't receive the signal if i create them from write proc file system (echo "command > /proc/mymodule). But in the first case, i i create them directly as the kernel module loaded, it does receive the signal.

any hints about this problem?

Old 11-07-2007, 10:09 PM   #2
LQ Guru
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 5,986

Rep: Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444Reputation: 1444
Futzed-up the thread-ID somehow?
Old 11-08-2007, 02:32 AM   #3
Registered: Aug 2006
Distribution: Open Suse 10.1, Ubuntu (Feisty Fawn)
Posts: 87

Original Poster
Rep: Reputation: 15
Originally Posted by sundialsvcs View Post
Futzed-up the thread-ID somehow?
How could it be possible? or maybe if i create the threads in write proc file system, the parrent process is not my kernel module? is it possible?

thanks for the hints,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
2in1 problem thread. (nvidia kernel module vs X module, and strange workbug phenom) htedrom Linux - Software 15 10-04-2007 11:55 PM
kernel 2.6.18 modules strange behaviour Strannik Slackware 8 10-28-2006 03:27 AM
Strange Behaviour! joshuarowley LQ Suggestions & Feedback 1 12-08-2005 04:36 PM
Strange behaviour after recompile kernel x13729388 Linux - Newbie 15 03-30-2005 02:45 AM
Strange behaviour with new Kernel sausagejohnson Linux - General 5 04-18-2004 07:21 PM

All times are GMT -5. The time now is 04:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration