On Sat, Sep 11, 2010 at 5:33 AM, Bond <jamesbond.2k.g@xxxxxxxxx> wrote: > I read > I was going through include/linux/kernel.h > encountered following code > > #define container_of(ptr, type, member) ({ \ > const typeof( ((type *)0)->member ) *__mptr = (ptr); \ > > in above code I am not clear with (type *)0 If you want some more details about this macro. http://www.spinics.net/lists/linux-usb-devel/msg11766.html > how is it working any link? > -- Thanks - Manish ================================== [$\*.^ -- I miss being one of them ================================== -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ