Thread (3 messages) flat view 3 messages, 3 authors, 2003-05-06

Linux Kernel generic question (procedure queue)

From: None Atall <hidden>
Date: 2003-05-06 06:44:28

 Hello everybody,
 Is it possible to insert
a specific procedure (among with it's args) to the
kernel scheduler? I know that we can just call
schedule(); when we wait for an asychronus input or
we can even insert an interrupt to the kernel queue,
but is it possible to queue a procedure?
 Just for understanding the problem better, I have
a function write_buff that calls write_byte.
Write_byte
function uses PPC gpio for implementing something like
an SPI interface. When we write a big file (e.x 1M),
the system will not respond to anything until the
transfer is done. I inserted "schedule();" every time
the write_byte is called so that the system will
accually perform some other tasks. So my question is
if I could insert write_byte function to the scheduler
queue in such a way to prevent this problem.

                           Thanks in advance
                                  Dimitrios.

=====
------------------------------------------------------------
-Dhmhtrios Meidanis
-Degree in Mathematics, University of the Aegean.
-Master in Computer Architecture and Digital
 Systems, University of Crete.
 Greece.
------------------------------------------------------------


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help