"Joe Veldhuis" <electrob...@gmail.com> wrote
control a piece of hardware using ioctl's on its device node.
I've never tried this from Python but....
#include <linux/dvb/frontend.h>
fd = open("/dev/dvb/adapter1/frontend0", O_RDWR)
Notice the fd - that means file descriptor not file pointer.
So ioctl takes a file descriptor in C and I assume the same
in Python.
So, I wrote the following in Python:
fd = open("/dev/dvb/adapter1/frontend0", "wb")
So I suspect this might need to be
import os
fd = os.open(.....)
But as I say I've never actually used ioctl in Python...
Alan G.
_______________________________________________
Tutor maillist - Tutor@python.org
To unsubscribe or change subscription options:
http://mail.python.org/mailman/listinfo/tutor