[linux-dvb] dvb_register_adapter using kmalloc

Johannes Stezenbach js at linuxtv.org
Sun Mar 13 22:52:14 CET 2005

On Sat, Mar 12, 2005 at 11:51:46PM +0100, Andreas Oberritter wrote:
> I wonder whether there is a reason for letting dvb_register_adapter
> allocate the struct dvb_adapter. I think it is better to embed struct
> dvb_adapter in the hardware's private struct and pass that one to the
> register function instead.

That's how it's handled in the V4 API.

> I think even the 'void *priv' field of struct dvb_adapter could then be
> replaced by the container_of(x) macro.



More information about the linux-dvb mailing list