how to detect an active serial port on suse 10.3

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
aquarius
Posts: 4
Joined: Tue Sep 22, 2009 2:03 am
Location: Pluto

how to detect an active serial port on suse 10.3

Post by aquarius »

friends,
i am supposed to write an interrupt handler w.r.t to the serial ports. Kindly guide me how to detect an active serial port on suse 10.3 ?
I am here to learn
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: how to detect an active serial port on suse 10.3

Post by Combuster »

You seem to be clueless ("i am supposed to write an interrupt handler", who's giving you the homework)
And/or you're in the wrong forum ("on suse 10.3", this is not a linux forum)
And/or you've not read the proper documentation.

Fix these problems first, please. (This will help)
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
aquarius
Posts: 4
Joined: Tue Sep 22, 2009 2:03 am
Location: Pluto

Re: how to detect an active serial port on suse 10.3

Post by aquarius »

are interrupt handlers not related to os development ? and mentioning suse 10.3 was just an extra statement !!

anyways thanks for bothering !
I am here to learn
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Re: how to detect an active serial port on suse 10.3

Post by Combuster »

aquarius wrote:are interrupt handlers not related to os development ? and mentioning suse 10.3 was just an extra statement !!
That's like "I'm developing for an operating system, so lets post here" :roll:

Seriously, there are drivers for the serial port since like forever. Either you can't use them (and you shouldn't ask here) or you want to (re)write a driver and you better find the people who know everything about linux internals (in which case, you shouldn't ask here).

Or you are still asking the wrong question. At least you failed to ask a smart one.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Brendan
Member
Member
Posts: 8561
Joined: Sat Jan 15, 2005 12:00 am
Location: At his keyboard!
Contact:

Re: how to detect an active serial port on suse 10.3

Post by Brendan »

Hi,
aquarius wrote:i am supposed to write an interrupt handler w.r.t to the serial ports. Kindly guide me how to detect an active serial port on suse 10.3 ?
If these are 2 completely separate questions, then you should ask each question in separate places. For example, ask about writing your own serial port IRQ handler here (after reading the wiki articles on serial ports and maybe some pages about writing interrupt handlers, and perhaps trying to write it and posting your code and explaining what it does/doesn't do and what you think your code should/shouldn't do); and ask about detecting an active serial port on suse 10.3 on some sort of forum that's intended for suse users/developers.

Otherwise, people might not know if you're trying to (for e.g.) write a serial port IRQ handler for the version of the Linux kernel that's used by Suse 10.3; and it wouldn't be any surprise if people ask you to clarify your question (so they can figure out what you actually are trying to do).


Cheers,

Brendan
For all things; perfection is, and will always remain, impossible to achieve in practice. However; by striving for perfection we create things that are as perfect as practically possible. Let the pursuit of perfection be our guide.
aquarius
Posts: 4
Joined: Tue Sep 22, 2009 2:03 am
Location: Pluto

Re: how to detect an active serial port on suse 10.3

Post by aquarius »

@Brendan

thanks, that was enlightning !!
I am here to learn
User avatar
gravaera
Member
Member
Posts: 737
Joined: Tue Jun 02, 2009 4:35 pm
Location: Supporting the cause: Use \tabs to indent code. NOT \x20 spaces.

Re: how to detect an active serial port on suse 10.3

Post by gravaera »

As a bit of a mini step up on the voltage for Brendan' torch, you may want to go to: http://www.linuxquestions.org which is a huge forum with questions on linux, the linux kernel, linux driver development, and other linux related things. I would ask you to kindly search their forums before posting your question, though: it's polite.

As a clarification of how you went wrong: This forum is a place for hobbyist OS developers to find resources. Your question falls out of range because:

1. It is a Driver Development question;
2. It is a Driver Development for Linux question;
3. Most people here don't know much about, or care about, the internals of the Linux kernel. Thus, a question which should require knowledge about the Linux driver model would draw blanks.

All in all, I wish you the best, and hope you can complete your assignment.
-gravaera
17:56 < sortie> Paging is called paging because you need to draw it on pages in your notebook to succeed at it.
aquarius
Posts: 4
Joined: Tue Sep 22, 2009 2:03 am
Location: Pluto

Re: how to detect an active serial port on suse 10.3

Post by aquarius »

@ gravaera,

thanks, for the valuable information !!
I am here to learn
Post Reply