Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Linux - Kernel This forum is for all discussion relating to the Linux kernel.


  Search this Thread
Old 06-08-2011, 02:04 AM   #1
LQ Newbie
Registered: May 2011
Posts: 2

Rep: Reputation: 0
how to determine that loadable kernel module is multithreaded

I want to find out whether a loadable kernel module is multi-threaded or not. Is there any utility or procedure to determine it?
Old 06-09-2011, 07:39 PM   #2
Senior Member
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 652Reputation: 652Reputation: 652Reputation: 652Reputation: 652Reputation: 652
Disclaimer: Not a pro in this area

A multithreaded binary usually needs to provide some sort of locking mechanism - mutexes, semaphores etc

Try this one .. adjust patterns as neccessary (assumes $module is loaded):
objdump -x $(modinfo $module | grep filename | awk '{ print $2 }') | egrep -i "spin|lock|mutex"
It may be more comprehensive to look/grep through the source for any critical sections.


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
Cannot Load Kernel Loadable MOdule... mohit.saha Linux - Software 3 04-18-2008 11:00 AM
how to insert a loadable module into the kernel.? moog Linux - Newbie 2 01-08-2007 09:37 AM
Help, loadable kernel module . ERBRMN Linux - General 3 10-13-2006 08:34 AM
how to add new loadable module to kernel? Mistreated Linux - Software 7 02-02-2005 11:22 AM
loadable kernel module brajesh Linux - General 2 01-17-2003 01:54 AM > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:04 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