Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Jan 2005 19:54:31 +0000
From:      "Street Chaman" <street_chaman@hotmail.com>
To:        freebsd-hackers@freebsd.org
Subject:   Kernel mode programming -precisions
Message-ID:  <BAY15-F6A965C17D8FF205AB06FC998F0@phx.gbl>

next in thread | raw e-mail | index | archive | help
Thanks to everyone who read my question; here some precisions:

Actually, my soft is a kind of interactive filter: it takes a lot of imput 
parameters (from keyboard at the moment, but as soon as i've understood how 
it works, i will increase the number of supported io devices); treats it in 
a particular way and produces an output. This 'particular way' requires a 
lot of clock cycle, so speed is my first problem; (that's part of reason why 
everything is directly written in assembly). I've already buffered input and 
output, but only as far at it was possible: since loop (X) input could 
affect loop (X-1) general data manipulation, and change output, it must be 
detected quickly. The time needed to read/write is still to long. When CPU 
is waiting on some new data, he cannot preform any other operation, and 
freezes data manipultion; that's why I'm looking for a new way to in/output 
the soft...
I've found out in syscall.master the aio_read/write call. Man page says 
operation is asynchronous, so it returns quite immediatly after enqueuing 
the io thread. Could that be a solution ?  Or back to kernel module (by the 
way: is it possible to write on in assembly) ?

regards,

Felix

_________________________________________________________________
MSN Hotmail : antivirus et antispam intégrés 
http://www.msn.fr/newhotmail/Default.asp?Ath=f



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?BAY15-F6A965C17D8FF205AB06FC998F0>