Page 1 of 1

how to detect an active serial port on suse 10.3

Posted: Fri Oct 16, 2009 4:10 am
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 ?

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

Posted: Fri Oct 16, 2009 4:39 am
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)

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

Posted: Fri Oct 16, 2009 4:49 am
by aquarius
are interrupt handlers not related to os development ? and mentioning suse 10.3 was just an extra statement !!

anyways thanks for bothering !

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

Posted: Fri Oct 16, 2009 5:57 am
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.

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

Posted: Fri Oct 16, 2009 6:09 am
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

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

Posted: Fri Oct 16, 2009 6:22 am
by aquarius
@Brendan

thanks, that was enlightning !!

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

Posted: Fri Oct 16, 2009 6:54 am
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

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

Posted: Fri Oct 16, 2009 7:00 am
by aquarius
@ gravaera,

thanks, for the valuable information !!