LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-15-2010, 07:00 AM   #1
PARIHAR
LQ Newbie
 
Registered: Apr 2010
Posts: 8

Rep: Reputation: 0
serial port programming help


can we use inb() and outb() functions for serial port programming ??
 
Old 04-15-2010, 07:17 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,926

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by PARIHAR View Post
can we use inb() and outb() functions for serial port programming ??
Probably. What happens when you TRY it?
 
Old 04-16-2010, 01:07 AM   #3
PARIHAR
LQ Newbie
 
Registered: Apr 2010
Posts: 8

Original Poster
Rep: Reputation: 0
well exactly we dont know.. but when we use it in our program we r getting segmentation fault.. so we were wondering whether we can use it for serial port programming or not..
 
Old 04-16-2010, 03:32 AM   #4
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
inb() and outb() deal with the serial port registers !

Is it the same code on the following thread you are talking about ?
http://www.linuxquestions.org/questi...3/#post3936249

Last edited by TheIndependentAquarius; 04-16-2010 at 03:42 AM.
 
Old 04-19-2010, 07:19 AM   #5
PARIHAR
LQ Newbie
 
Registered: Apr 2010
Posts: 8

Original Poster
Rep: Reputation: 0
ya.. same code.. we are getting segmentation fault if we use that..
 
Old 04-19-2010, 07:20 AM   #6
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,672
Blog Entries: 29

Rep: Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917Reputation: 917
Did you read the following :
http://linux.die.net/man/2/inb
 
  


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
programming the serial port using c in jaunty raphtor Linux - Newbie 1 07-13-2009 12:08 PM
Books on serial port programming? cwedison Programming 3 01-12-2008 07:09 AM
serial port programming sundaresh Programming 6 07-19-2007 09:32 AM
serial port programming!!! novice_din Programming 4 02-03-2005 09:50 PM
Programming the Serial Port karans Linux - Networking 2 11-03-2003 02:54 AM


All times are GMT -5. The time now is 04:47 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration