lkml.org 
[lkml]   [1998]   [Jun]   [13]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSat, 13 Jun 1998 12:58:32 +0530
Fromsameer <>
SubjectHOWTO Polling Routines ?
Hi all Linux gurus,

        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
installed
on 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 12:43    [from the cache]
©2003-2008