LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-13-2006, 12:57 AM   #1
mghiya
LQ Newbie
 
Registered: Feb 2006
Posts: 10

Rep: Reputation: 0
URGENT::System call to find Processor Info


Hello,

I was searching around on my redhat linux box to find the info of the processor in the underlying machine, but did not come across any system call to find this information. The info. that I require to find out is the name of the processor vendor like Intel, AMD, etc. and the model of the processor like Pentium III, Pentium IV, etc.

I was able to find this info in the /proc/cpuinfo file but I need a system call to find this info. Is there any?

Anyone listening...


~Murtaza...
 
Old 02-13-2006, 01:43 AM   #2
jerril
Member
 
Registered: Nov 2005
Location: Ontario, Canada
Distribution: Ubuntu
Posts: 114

Rep: Reputation: 15
I think lshw should do it.

jer
 
Old 02-13-2006, 01:58 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris10, Solaris 11, Mint, OL
Posts: 9,492

Rep: Reputation: 355Reputation: 355Reputation: 355Reputation: 355
There is no system call to do that, this information is only provided through the /proc filesystem under Linux.

Why do you need a system call ?
 
Old 02-13-2006, 03:05 AM   #4
mghiya
LQ Newbie
 
Registered: Feb 2006
Posts: 10

Original Poster
Rep: Reputation: 0
The requirement for my project is to use a system call as fas as possible instaed of firing CLI's. Thats the reason I want a system call to do so.

~Murtaza
 
Old 02-13-2006, 03:16 AM   #5
bulliver
Senior Member
 
Registered: Nov 2002
Location: Edmonton AB, Canada
Distribution: Gentoo x86; Gentoo PPC; Gentoo Sparc64; FreeBSD; OS X; Solaris
Posts: 3,731
Blog Entries: 4

Rep: Reputation: 68
Quote:
The requirement for my project is to use a system call as fas as possible instaed of firing CLI's. Thats the reason I want a system call to do so.
So use 'read' system call to read /proc/cpuinfo
 
  


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
How to find out if my system is i386, i486, or i586? Is there a system info command? mlsbraves Linux - General 6 02-17-2009 04:08 PM
Urgent: Call a C program through Linux shell script nuwandee Programming 14 04-10-2004 07:31 PM
How to get processor info for linux raees Linux - General 2 03-17-2004 06:11 AM
4 processor listings in cpuinfo on dual processor system. atticboy1 Linux - Hardware 2 02-08-2004 06:35 PM
xinetd 100% utilization on one processor on a two processor system red hat 9 garnold Linux - General 0 02-02-2004 01:47 PM


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