LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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

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

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


all:
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:
#ifdef CONFIG_SMP
#define __SMP__
#endif

2. or add it in makefile:
ifdef CONFIG_SMP
CFLAGS +=-D__SMP__ -DSMP
endif

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 /

thanks,
 
Old 08-01-2005, 10:28 PM   #2
crabboy
Moderator
 
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.

http://www.linuxquestions.org/rules.php

http://www.linuxquestions.org/questi...hreadid=348866
 
  


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


All times are GMT -5. The time now is 09:30 PM.

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