Polling ? :-(

sameer (sameer@multitech.co.in)
Tue, 16 Jun 1998 10:23:22 +0530


Hi all Linux gurus,

Looks like my preveous plead for advice went to /dev/null
:-( hence i'm reposting it again ,
could someone please enlighten me on the following ... if it's xtremely
silly please do feel free to flame me :-(

Currently I 'm writing a driver for a multi port serial
interface card on 2.0.0 as a module. The card interrupts only when data
is to be received or on detection of any changes in modem signals but
not when data needs to be transmitted :-( This would make it necessary

for a polling routine to be written which would tx data to the ports
which have data pending in their trasmit buffers. The driver supports 64

ports in total, i.e 4 cards of 16 ports each.

What would be the best way to hook up such a polling routine ?
Would it be alright to put it on to the tq_timer task queue, and
maintain it on the queue by the polling routine re-installing itself on
to the queue until signalled that the module is being unregistered. It
would also be necessary to disable interrupts for a while in such a
polling routine when tx is being done, would this be alright if
installedon such a task queue ? Is there any other way of writing such a
polling
routine ?

Thanx a lot in Advance ... happy hacking ...
Regards,
Sameer.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu