LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-07-2007, 11:13 AM   #1
lbdgwgt
Member
 
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?

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

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

Original Poster
Rep: Reputation: 15
Quote:
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,
 
  


Reply


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 10:55 PM
kernel 2.6.18 modules strange behaviour Strannik Slackware 8 10-28-2006 02:27 AM
Strange Behaviour! joshuarowley LQ Suggestions & Feedback 1 12-08-2005 03:36 PM
Strange behaviour after recompile kernel x13729388 Linux - Newbie 15 03-30-2005 01:45 AM
Strange behaviour with new Kernel sausagejohnson Linux - General 5 04-18-2004 06:21 PM


All times are GMT -5. The time now is 06:52 AM.

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