[linux-dvb] dvb_register_adapter using kmalloc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

Probably...

Johannes



[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux