[linux-dvb] [patch] Add support for different tuning algorithms

Johannes Stezenbach js at linuxtv.org
Wed Nov 16 00:50:40 CET 2005


On Tue, Nov 15, 2005 Andrew de Quincey wrote:
> 
> I assume it would be something like this?
> 
> struct dvb_configuration {
> 	unsigned char tune_mode:1 /* 0=>normal tuning, 1=>frequency scanning */
> };
> 
> #define FE_SET_CONFIGURATION  _IOR('o', 81, struct dvb_configuration)
> 
> And we'd extend dvb_configuration (or whatever) as we need to...

Nah, once we have an ioctl we want to stay binary compatible.
So just an "unsigned int flags", and I would use #defines
for the flag values, not a struct with bit fields, because
I believe this is the preferred coding style for Linux.

Johannes



More information about the linux-dvb mailing list