lkml.org 
[lkml]   [1998]   [Jun]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectPolling ? :-(
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

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.138 / U:0.048 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site