Welcome to the most active Linux Forum on the web.
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.


Closed Thread
  Search this Thread
Old 08-01-2005, 12:50 PM   #1
LQ Newbie
Registered: Jul 2005
Posts: 4

Rep: Reputation: 0
how to compile the linux driver to support SMP kernel?

how to compile the linux driver to support SMP kernel?
i found 2 ways:
1. add following macro at the begining of your driver file:
#define __SMP__

2. or add it in makefile:

my question is , is only 1 or only 2 enough ? or both 1 and 2 is necessary?

i am a flesh man to program linux driver. please help me /

Old 08-01-2005, 11:28 PM   #2
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
Please do not post the same thread in more than one forum. Picking the most relevant forum and posting it once there makes it easier for other members to help you and keeps the discussion all in one place.

Closed Thread

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
Compile Kernel with SMP mburoff Linux - Newbie 2 12-11-2005 04:24 AM
how to compile the linux driver to support SMP kernel beast Programming 1 08-01-2005 11:19 AM
Adding SMP support to kernel Shentar Linux - Newbie 1 02-16-2005 12:13 PM
smp support on Linux-2.4.22 kernel Pete M Linux - Newbie 1 10-05-2003 11:23 PM
How to disable SMP support in the Kernel? concoran Linux - General 3 10-23-2001 01:42 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:13 AM.

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