LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-03-2009, 07:30 AM   #1
atmurali
Member
 
Registered: Nov 2007
Location: Kerala
Posts: 42

Rep: Reputation: 15
attribute __force?


Hi,

What is the function of attribute __force declared in include/linux/compiler.h?

I am actually trying to understand how the I/O ports are accessed in linux?

Please help me
 
Old 12-03-2009, 09:56 AM   #2
cladisch
Member
 
Registered: Oct 2008
Location: Earth
Distribution: Slackware
Posts: 228

Rep: Reputation: 54
These and similar attributes are used to check correctness when using the sparse tool. For example, it can warn about code that interchanges little- and big-endian values, or that mixes user space and kernel space pointers.

These attributes have no effect on the 'real' C compiler.
 
1 members found this post helpful.
Old 12-03-2009, 11:58 PM   #3
atmurali
Member
 
Registered: Nov 2007
Location: Kerala
Posts: 42

Original Poster
Rep: Reputation: 15
Oh,
Thanks alot.

Thats why I cant access a kernel space io address using writel( , );
Thank You verymuch.
 
  


Reply



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
update problem "Attribute error object has no attribute 'rsplit' ruse Linux - Newbie 0 08-28-2009 01:46 AM
ldap_add: Undefined attribute type (17) additional info: ojectclass: attribute type vinaytp Linux - Newbie 2 05-28-2009 04:57 AM
HTMLTableRowElement Y attribute? true_atlantis Programming 1 10-16-2007 08:24 PM
attribute steve007 Linux - Newbie 1 06-30-2005 06:41 AM
[C] Attribute portability darklogik_org Programming 2 02-13-2005 09:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration