I think I understood it correctly but I wasn't sure exactly how to do it
so I was just giving you some pointers. Anyway, I'm sorta interested in
this too so I poked around a bit some more. Looks like the easiest
technique is to:
(1) Trap SIGIO signal using signal() system call.
(2) fcntl(f
I think I may have mis-stated the problem, my apologies. I'll try again...
In this case the app is a real-time simulation and the hardware provides a
user interface for entering data and a set of switch states. Most of the
time the driver will interact with the hardware updating displays, states,
Oops. I got the system call names mixed up. But do look at "select" and
"poll" system calls as I think they might be useful to you. As for
setting the non-blocking mode on file descriptors, use "fcntl" and "ioctl"
system calls.
And when I said "block", i meant the "read" system call blocks if n
The app is supposed to block ("freeze") if the data hasn't been read by
the driver. It stays blocked ("frozen") until the data is available.
The app can choose to not block in such situation, by using the "select"
or "poll" system call. If the file descriptor is set to non-blocking
mode, and if
Hi,
Building a driver for a hardware board and things are looking good... Using
the O'Reilly book by Rubini and Corbet as a guide, but have a bit of a
question??
The driver is interrupt driven when the board posts data to the port and
that works fine. Data is retreived and stored in kernel space
Hi Dave,
Looks like you got the info you needed for the Debian install. As far
as a BSD, If you like the Slackware ground-up approach to building a
system I would recommend checking out FreeBSD. One of the things I
really like about Debian is how apt-get handles all the dependencies
for you.
The situation is this:
I have a Mandrake 9.1 system with the stock kernel running on an EPIA
mini-ITX mainboard with an 800MHz VIA CPU (Ezra) and 512 MB of RAM.
Other than the motherboard, PSU, and a pair of cooling fans, the only
things in the box are the mass storage devices:
* /dev/hda